added default schema
gitea/salix/dev This commit looks good Details

This commit is contained in:
Joan Sanchez 2019-10-04 14:27:55 +02:00
parent 71d8fb6b66
commit 95b96bb91f
1 changed files with 4 additions and 3 deletions

View File

@ -1,5 +1,6 @@
USE `vn`;
CREATE TABLE vn.`zoneWarehouse` ( CREATE TABLE `vn`.`zoneWarehouse` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT, `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`zoneFk` int(11) NOT NULL, `zoneFk` int(11) NOT NULL,
`warehouseFk` smallint(6) unsigned NOT NULL, `warehouseFk` smallint(6) unsigned NOT NULL,
@ -10,7 +11,7 @@ CREATE TABLE vn.`zoneWarehouse` (
CONSTRAINT `zoneWarehouse_ibfk_2` FOREIGN KEY (`warehouseFk`) REFERENCES `vn2008`.`warehouse` (`id`) CONSTRAINT `zoneWarehouse_ibfk_2` FOREIGN KEY (`warehouseFk`) REFERENCES `vn2008`.`warehouse` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8; ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8;
CREATE TABLE vn.`zoneEvent` ( CREATE TABLE `vn`.`zoneEvent` (
`id` int(11) NOT NULL AUTO_INCREMENT, `id` int(11) NOT NULL AUTO_INCREMENT,
`zoneFk` int(11) NOT NULL, `zoneFk` int(11) NOT NULL,
`from` date DEFAULT NULL, `from` date DEFAULT NULL,
@ -25,7 +26,7 @@ CREATE TABLE vn.`zoneEvent` (
CONSTRAINT `zoneEvent_ibfk_1` FOREIGN KEY (`zoneFk`) REFERENCES `zone` (`id`) ON DELETE CASCADE ON UPDATE CASCADE CONSTRAINT `zoneEvent_ibfk_1` FOREIGN KEY (`zoneFk`) REFERENCES `zone` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=31 DEFAULT CHARSET=utf8; ) ENGINE=InnoDB AUTO_INCREMENT=31 DEFAULT CHARSET=utf8;
CREATE TABLE vn.`zoneExclusion` ( CREATE TABLE `vn`.`zoneExclusion` (
`id` int(11) NOT NULL AUTO_INCREMENT, `id` int(11) NOT NULL AUTO_INCREMENT,
`zoneFk` int(11) NOT NULL, `zoneFk` int(11) NOT NULL,
`day` date NOT NULL, `day` date NOT NULL,