tuxmartin

node type

Mar 6th, 2016
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 1.00 KB | None | 0 0
  1. CREATE TABLE IF NOT EXISTS `node_types` (
  2.   `id` int(11) NOT NULL AUTO_INCREMENT,
  3.   `type` char(3) COLLATE utf8_czech_ci NOT NULL,
  4.   `title` varchar(50) COLLATE utf8_czech_ci NOT NULL,
  5.   `description` text COLLATE utf8_czech_ci,
  6.   `readonly` tinyint(1) NOT NULL,
  7.   `writeonly` tinyint(1) NOT NULL,
  8.   `delay` tinyint(1) NOT NULL,
  9.   `data_width` int(11) NOT NULL COMMENT 'sirka v bitech',
  10.   `data_count` int(11) NOT NULL,
  11.   PRIMARY KEY (`id`)
  12. ) ENGINE=InnoDB  DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci AUTO_INCREMENT=30 ;
  13.  
  14. --
  15. -- Vypisuji data pro tabulku `node_types`
  16. --
  17.  
  18. INSERT INTO `node_types` (`id`, `type`, `title`, `description`, `readonly`, `writeonly`, `delay`, `data_width`, `data_count`) VALUES
  19. (15, '1', 'DV_BUTTON', 'Stisk', 1, 0, 0, 1, 1),
  20. (16, '2', 'DV_SWITCH', 'ON/OFF', 1, 0, 0, 1, 1),
  21. (17, '3', 'DV_LIGHT', 'ON/OFF', 1, 1, 0, 1, 1),
  22. (20, '6', 'DV_THERMOMETER', 'Teplota', 1, 0, 0, 8, 1),
  23. (21, '7', 'DV_PIEZZO', 'Delka pip.', 0, 1, 0, 1, 1),
  24. (29, '11', 'DV_FADER', 'Fader', 1, 0, 0, 8, 1);
Advertisement
Add Comment
Please, Sign In to add comment