1.1.0.sql 963 B

123456789101112131415161718192021222324252627
  1. CREATE TABLE IF NOT EXISTS `filestorage` (
  2. `id` INT(11) NOT NULL AUTO_INCREMENT,
  3. `scope` VARCHAR(255) NOT NULL,
  4. `item` VARCHAR(255) NOT NULL,
  5. `date` datetime NOT NULL,
  6. `admin` VARCHAR(40) NOT NULL,
  7. `filename` VARCHAR(255) NOT NULL,
  8. PRIMARY KEY (`id`),
  9. KEY `scope` (`scope`),
  10. KEY `item` (`item`),
  11. KEY `date` (`date`)
  12. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
  13. CREATE TABLE IF NOT EXISTS `swcash` (
  14. `id` int(11) NOT NULL AUTO_INCREMENT,
  15. `switchid` int(11) NOT NULL,
  16. `placecontract` varchar(200) DEFAULT NULL,
  17. `placeprice` double NOT NULL DEFAULT '0',
  18. `powercontract` varchar(200) DEFAULT NULL,
  19. `powerprice` double NOT NULL DEFAULT '0',
  20. `transportcontract` varchar(200) DEFAULT NULL,
  21. `transportprice` double NOT NULL DEFAULT '0',
  22. `switchprice` double NOT NULL DEFAULT '0',
  23. `switchdate` date DEFAULT NULL,
  24. PRIMARY KEY (`id`),
  25. KEY `switchid` (`switchid`)
  26. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;