21 lines
1.0 KiB
SQL
21 lines
1.0 KiB
SQL
use vn;
|
|
|
|
CREATE TABLE `vn`.`mrwService` (
|
|
`agencyModeCodeFk` varchar(45) COLLATE utf8mb3_unicode_ci NOT NULL,
|
|
`clientType` int(11) unsigned NOT NULL,
|
|
`serviceType` int(11) unsigned DEFAULT NULL,
|
|
PRIMARY KEY (`agencyModeCodeFk`),
|
|
CONSTRAINT `mrwService_agencyModeCodeFk` FOREIGN KEY (`agencyModeCodeFk`) REFERENCES `agencyMode` (`code`)ON DELETE CASCADE ON UPDATE CASCADE
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Configuración de los servicios de MRW';
|
|
|
|
CREATE TABLE `vn`.`mrwServiceWeekday` (
|
|
`agencyModeCodeFk` VARCHAR(45) NOT NULL,
|
|
`weekdays` SET('mon','tue','wed','thu','fri','sat','sun') NOT NULL,
|
|
`serviceType` INT(11) UNSIGNED NOT NULL,
|
|
`params` VARCHAR(255) NULL DEFAULT NULL,
|
|
PRIMARY KEY (`agencyModeCodeFk`),
|
|
CONSTRAINT `mrwServiceWeekday_agencyModeCodeFk` FOREIGN KEY (agencyModeCodeFk)
|
|
REFERENCES `vn`.`agencyMode` (`code`) ON DELETE CASCADE
|
|
ON UPDATE CASCADE)
|
|
COMMENT = 'Configuración de los servicios en relación con el día de la semana para MRW';
|