--
-- WARNING: This file was automatically generated by BX CodeGenerator
--

																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																											--
if not exists (select 1 from sysobjects where name = 'BxFK_BXPLMSEMPPRINTER_BXPPrnCd_BXPLMSPRINTER_Code' and xtype = 'F') ALTER TABLE [@BXPLMSEMPPRINTER] ADD CONSTRAINT BxFK_BXPLMSEMPPRINTER_BXPPrnCd_BXPLMSPRINTER_Code FOREIGN KEY (U_BXPPrnCd) REFERENCES [@BXPLMSPRINTER](Code);
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																												--
if not exists (select 1 from sysobjects where name = 'BxFK_BXPLMSMOBTAL_BXPEnCd_BXPLMSMOBTEN_Code' and xtype = 'F') ALTER TABLE [@BXPLMSMOBTAL] ADD CONSTRAINT BxFK_BXPLMSMOBTAL_BXPEnCd_BXPLMSMOBTEN_Code FOREIGN KEY (U_BXPEnCd) REFERENCES [@BXPLMSMOBTEN](Code);
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																						--
if not exists (select 1 from sysobjects where name = 'BxFK_BXPLMSMOBTEN_BXPLnCod_BXPLMSMOBTLN_Code' and xtype = 'F') ALTER TABLE [@BXPLMSMOBTEN] ADD CONSTRAINT BxFK_BXPLMSMOBTEN_BXPLnCod_BXPLMSMOBTLN_Code FOREIGN KEY (U_BXPLnCod) REFERENCES [@BXPLMSMOBTLN](Code);
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																												--
if not exists (select 1 from sysobjects where name = 'BxFK_BXPLMSMOBTLN_BXPHdCd_BXPLMSMOBTHD_Code' and xtype = 'F') ALTER TABLE [@BXPLMSMOBTLN] ADD CONSTRAINT BxFK_BXPLMSMOBTLN_BXPHdCd_BXPLMSMOBTHD_Code FOREIGN KEY (U_BXPHdCd) REFERENCES [@BXPLMSMOBTHD](Code);
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																											--
if not exists (select 1 from sysobjects where name = 'BxFK_BXPLMSPRINTLAYOUT_BXPLayCd_BXPLMSPRINTLAYSET_Code' and xtype = 'F') ALTER TABLE [@BXPLMSPRINTLAYOUT] ADD CONSTRAINT BxFK_BXPLMSPRINTLAYOUT_BXPLayCd_BXPLMSPRINTLAYSET_Code FOREIGN KEY (U_BXPLayCd) REFERENCES [@BXPLMSPRINTLAYSET](Code);
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																													--
if not exists (select 1 from sysobjects where name = 'BxFK_BXPLMSPRINTLAYOUT_BXPPrnCd_BXPLMSPRINTER_Code' and xtype = 'F') ALTER TABLE [@BXPLMSPRINTLAYOUT] ADD CONSTRAINT BxFK_BXPLMSPRINTLAYOUT_BXPPrnCd_BXPLMSPRINTER_Code FOREIGN KEY (U_BXPPrnCd) REFERENCES [@BXPLMSPRINTER](Code);
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																