Shipment Group tbl

From UG

Jump to: navigation, search



DROP TABLE IF EXISTS `tblShipmentGroup`;

CREATE TABLE `tblShipmentGroup` (
  `Id` INTEGER(10) NOT NULL AUTO_INCREMENT,
  `TransportModeId` INTEGER(10) NOT NULL,
  `ClientCompanyId` INTEGER(10) NOT NULL,
  `MasterId` INTEGER(10) DEFAULT NULL,
  PRIMARY KEY (`Id`),
  KEY `TransportModeId` (`TransportModeId`),
  KEY `ClientCompanyId` (`ClientCompanyId`),
  KEY `tblShipmentGroup_fk2` (`MasterId`),
  CONSTRAINT `tblShipmentGroup_fk` FOREIGN KEY (`TransportModeId`) REFERENCES `tblTransportMode` (`Id`) ON UPDATE CASCADE,
  CONSTRAINT `tblShipmentGroup_fk1` FOREIGN KEY (`ClientCompanyId`) REFERENCES `tblClientCompany` (`Id`) ON UPDATE CASCADE,
  CONSTRAINT `tblShipmentGroup_fk2` FOREIGN KEY (`MasterId`) REFERENCES `tblMasterOcean` (`Id`)
)ENGINE=InnoDB
AUTO_INCREMENT=5635 CHARACTER SET 'latin1' COLLATE 'latin1_swedish_ci'
COMMENT='InnoDB free: 9216 kB; (`TransportModeId`) REFER `cybertrax/t';

Personal tools