wolfrecorder.sql 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. -- clean WolfRecorder MySQL dump.
  2. CREATE DATABASE wr;
  3. USE wr;
  4. CREATE TABLE IF NOT EXISTS `weblogs` (
  5. `id` int(11) NOT NULL auto_increment,
  6. `date` datetime NOT NULL,
  7. `admin` varchar(45) default NULL,
  8. `ip` varchar(64) default NULL,
  9. `event` varchar(255) default NULL,
  10. PRIMARY KEY (`id`),
  11. KEY `date` (`date`)
  12. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;
  13. CREATE TABLE IF NOT EXISTS `storages` (
  14. `id` int(11) NOT NULL auto_increment,
  15. `path` varchar(200) NOT NULL,
  16. `name` varchar(64) NOT NULL,
  17. PRIMARY KEY (`id`)
  18. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;
  19. CREATE TABLE IF NOT EXISTS `models` (
  20. `id` int(11) NOT NULL auto_increment,
  21. `modelname` varchar(255) NOT NULL,
  22. `template` varchar(64) NOT NULL,
  23. PRIMARY KEY (`id`)
  24. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;
  25. CREATE TABLE IF NOT EXISTS `cameras` (
  26. `id` int(11) NOT NULL auto_increment,
  27. `modelid` INT(11) NOT NULL,
  28. `ip` varchar(64) NOT NULL,
  29. `login` varchar(128) NOT NULL,
  30. `password` varchar(128) NOT NULL,
  31. `active` tinyint(2) NOT NULL DEFAULT 0,
  32. `storageid` INT(11) NOT NULL,
  33. `channel` varchar(64) NOT NULL,
  34. `comment` varchar(255) DEFAULT NULL,
  35. PRIMARY KEY (`id`)
  36. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;
  37. CREATE TABLE `lair` (
  38. `id` int(11) NOT NULL auto_increment,
  39. `key` VARCHAR( 40 ) NOT NULL ,
  40. `value` VARCHAR ( 255 ) NULL,
  41. PRIMARY KEY (`id`)
  42. ) ENGINE = MYISAM CHARSET=utf8 AUTO_INCREMENT=1;
  43. CREATE TABLE IF NOT EXISTS `schedule` (
  44. `id` int(11) NOT NULL auto_increment,
  45. `date` datetime NOT NULL,
  46. `user` varchar(128) NOT NULL,
  47. `channel` varchar(64) NOT NULL,
  48. `datetimefrom` datetime NOT NULL,
  49. `datetimeto` datetime NOT NULL,
  50. `sizeforecast` BIGINT(20) NOT NULL,
  51. `done` tinyint(2) NOT NULL DEFAULT 0,
  52. `finishdate` datetime DEFAULT NULL,
  53. PRIMARY KEY (`id`),
  54. KEY `user` (`user`),
  55. KEY `done` (`done`)
  56. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;
  57. CREATE TABLE IF NOT EXISTS `acl` (
  58. `id` int(11) NOT NULL auto_increment,
  59. `user` varchar(128) NOT NULL,
  60. `cameraid` INT(11) NOT NULL,
  61. `channel` varchar(64) NOT NULL,
  62. PRIMARY KEY (`id`)
  63. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;
  64. -- 0.0.8 update
  65. ALTER TABLE `lair` CHANGE `value` `value` LONGTEXT NULL DEFAULT NULL;
  66. -- 0.0.9 update
  67. CREATE TABLE IF NOT EXISTS `custtpls` (
  68. `id` int(11) NOT NULL auto_increment,
  69. `name` varchar(64) NOT NULL,
  70. `proto` varchar(10) NOT NULL,
  71. `main` varchar(255) NOT NULL,
  72. `sub` varchar(255) NOT NULL,
  73. `rtspport` INT(11) NOT NULL,
  74. `sound` tinyint(2) NOT NULL DEFAULT 0,
  75. `ptz` tinyint(2) NOT NULL DEFAULT 0,
  76. PRIMARY KEY (`id`)
  77. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;
  78. -- 0.1.0 update
  79. CREATE TABLE IF NOT EXISTS `camopts` (
  80. `id` int(11) NOT NULL auto_increment,
  81. `cameraid` INT(11) NOT NULL,
  82. `rtspport` INT(11) DEFAULT NULL,
  83. `keepsubalive` tinyint(2) NOT NULL DEFAULT 0,
  84. `order` INT(11) DEFAULT NULL,
  85. PRIMARY KEY (`id`),
  86. KEY `cameraid` (`cameraid`)
  87. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;