Advertisement
rubylearner

available app timeslots

Nov 18th, 2015
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. CREATE TABLE `avail_apps` (
  2. `id` int(11) NOT NULL AUTO_INCREMENT,
  3. `date_av` date NOT NULL,
  4. `time_av` time DEFAULT NULL,
  5. PRIMARY KEY (`id`,`date_av`)
  6. ) ENGINE=InnoDB AUTO_INCREMENT=7135 DEFAULT CHARSET=utf8
  7.  
  8.  
  9. CREATE TABLE `store_open` (
  10. `id` int(11) NOT NULL AUTO_INCREMENT,
  11. `b_user_ID` mediumint(11) unsigned DEFAULT NULL,//service provider ID...foreign key
  12. `open_time` time DEFAULT NULL,//morning session open
  13. `close_time` time DEFAULT NULL,
  14. `open_time_b` time DEFAULT NULL,//evening session open
  15. `close_time_b` time DEFAULT NULL,
  16. `day` varchar(12) DEFAULT NULL,//weekdays
  17. `model_ID` int(11) DEFAULT NULL,//backbone model
  18. PRIMARY KEY (`id`),
  19. KEY `b_user_ID` (`b_user_ID`),
  20. CONSTRAINT `busers_reference` FOREIGN KEY (`b_user_ID`) REFERENCES `business_users` (`crID`) ON DELETE CASCADE ON UPDATE CASCADE
  21. ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement