1.2.7.sql 818 B

12345678910111213141516171819202122232425
  1. CREATE TABLE IF NOT EXISTS `olt_qinq` (
  2. `id` int(11) NOT NULL AUTO_INCREMENT,
  3. `swid` int(11) NOT NULL,
  4. `port` int(4) NOT NULL,
  5. `svlan_id` int(11) NOT NULL,
  6. `cvlan` int(4) NOT NULL,
  7. PRIMARY KEY (`id`),
  8. KEY `svlan_id` (`svlan_id`),
  9. KEY `cvlan` (`cvlan`)
  10. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;
  11. CREATE TABLE IF NOT EXISTS `op_sms_notifications` (
  12. `id` int(11) NOT NULL AUTO_INCREMENT,
  13. `payment_id` int(11) NOT NULL,
  14. `date` datetime NOT NULL,
  15. `login` varchar(255) NOT NULL,
  16. `balance` double NOT NULL DEFAULT 0,
  17. `summ` double NOT NULL DEFAULT 0,
  18. `processed` tinyint(1) UNSIGNED DEFAULT 0,
  19. PRIMARY KEY (`id`),
  20. UNIQUE KEY `payment_id` (`payment_id`),
  21. KEY `login` (`login`),
  22. KEY `date` (`date`),
  23. KEY `summ` (`summ`)
  24. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;