feat: refs#8174 simSupplier
gitea/salix/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Juanjo Breso 2024-10-29 12:13:25 +01:00
parent 6c40934f74
commit f1370d6960
1 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,19 @@
CREATE TABLE IF NOT EXISTS `vn`.`simSupplier` (
`id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
`line` int(9) unsigned DEFAULT NULL,
`ext` int(10) unsigned DEFAULT NULL,
`pin` int(4) unsigned DEFAULT NULL,
`sim` VARCHAR(25),
`puk` int(10) unsigned DEFAULT NULL,
`statusWeb` varchar(50) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `sim_UNIQUE` (`sim`)
) ENGINE=InnoDB AUTO_INCREMENT=1
DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
ALTER TABLE `deviceProductionUser`
MODIFY `simSerialNumber` VARCHAR(25);
ALTER TABLE vn.deviceProductionUser ADD CONSTRAINT deviceProductionUser_simSupplier_FK
FOREIGN KEY (simSerialNumber) REFERENCES vn.simSupplier(sim);