0.9.3.sql 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. ALTER TABLE `ukv_users` ADD `tariffnmid` INT NULL AFTER `tariffid`;
  2. ALTER TABLE `sms_history` ADD `smssrvid` INT(11) NOT NULL DEFAULT 0 AFTER `id`;
  3. ALTER TABLE `sms_history` ADD INDEX(`smssrvid`);
  4. CREATE TABLE IF NOT EXISTS `sms_services` (
  5. `id` int(11) NOT NULL AUTO_INCREMENT,
  6. `name` varchar(255) NOT NULL,
  7. `login` varchar(255) NOT NULL,
  8. `passwd` varchar(255) NOT NULL,
  9. `url_addr` varchar(255) NOT NULL,
  10. `api_key` varchar(255) NOT NULL,
  11. `alpha_name` varchar(40) NOT NULL,
  12. `default_service` tinyint(1) UNSIGNED DEFAULT 0,
  13. `api_file_name` varchar(255) NOT NULL DEFAULT '',
  14. PRIMARY KEY (`id`),
  15. UNIQUE KEY (`name`)
  16. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;
  17. CREATE TABLE IF NOT EXISTS `sms_services_relations` (
  18. `id` int(11) NOT NULL AUTO_INCREMENT,
  19. `sms_srv_id` int(11) NOT NULL,
  20. `user_login` varchar(255) DEFAULT NULL,
  21. `employee_id` varchar(255) DEFAULT NULL,
  22. PRIMARY KEY (`id`),
  23. UNIQUE KEY (`user_login`),
  24. UNIQUE KEY (`employee_id`)
  25. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;
  26. CREATE TABLE IF NOT EXISTS `switches_qinq` (
  27. `switchid` int(11) NOT NULL,
  28. `svlan` int(11) NOT NULL,
  29. `cvlan` int(11) NOT NULL,
  30. PRIMARY KEY (`switchid`)
  31. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  32. CREATE TABLE IF NOT EXISTS `bankstamd` (
  33. `id` int(11) NOT NULL AUTO_INCREMENT,
  34. `date` datetime NOT NULL,
  35. `hash` varchar(255) NOT NULL,
  36. `filename` varchar(255) DEFAULT NULL,
  37. `admin` varchar(255) NOT NULL,
  38. `contract` varchar(255) DEFAULT NULL,
  39. `summ` varchar(42) NOT NULL,
  40. `address` varchar(255) DEFAULT NULL,
  41. `realname` varchar(255) DEFAULT NULL,
  42. `notes` varchar(255) DEFAULT NULL,
  43. `pdate` varchar(42) DEFAULT NULL,
  44. `ptime` varchar(42) DEFAULT NULL,
  45. `processed` tinyint(4) NOT NULL,
  46. PRIMARY KEY (`id`)
  47. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;