9 lines
1.8 KiB
SQL
9 lines
1.8 KiB
SQL
ALTER TABLE HR_Department ADD CONSTRAINT Activity_HRDepartment FOREIGN KEY (C_Activity_ID) REFERENCES C_Activity;
|
|
ALTER TABLE HR_Movement ADD CONSTRAINT ADOrgTrx_HRMovement FOREIGN KEY (AD_OrgTrx_ID) REFERENCES AD_Org;
|
|
ALTER TABLE HR_Movement ADD CONSTRAINT CCampaign_HRMovement FOREIGN KEY (C_Campaign_ID) REFERENCES C_Campaign;
|
|
ALTER TABLE HR_Movement ADD CONSTRAINT User1_HRMovement FOREIGN KEY (User1_ID) REFERENCES C_ElementValue;
|
|
ALTER TABLE HR_Movement ADD CONSTRAINT User2_HRMovement FOREIGN KEY (User2_ID) REFERENCES C_ElementValue;
|
|
ALTER TABLE HR_Movement ADD CONSTRAINT CProject_HRMovement FOREIGN KEY (C_Project_ID) REFERENCES C_Project;
|
|
ALTER TABLE HR_Movement ADD CONSTRAINT CProjectPhase_HRMovement FOREIGN KEY (C_ProjectPhase_ID) REFERENCES C_ProjectPhase;
|
|
ALTER TABLE HR_Movement ADD CONSTRAINT CProjectTask_HRMovement FOREIGN KEY (C_ProjectTask_ID) REFERENCES C_ProjectTask;
|
|
ALTER TABLE HR_Movement ADD CONSTRAINT PPOrderNode_HRMovement FOREIGN KEY (PP_Order_Node_ID) REFERENCES PP_Order_Node; |