ALTER TABLE FLUXPRODREC ADD CONSTRAINT FKCOC00744SETOR FOREIGN KEY (PAI_CDSETOR, NRORG) REFERENCES SETOR (CDSETOR, NRORG)
/
ALTER TABLE FLUXPRODREC ADD CONSTRAINT FKCOC00745CATEGORIAPROD FOREIGN KEY (PAI_NRCATEGORIAPROD, NRORG) REFERENCES CATEGORIAPROD (NRCATEGORIAPROD, NRORG)
/
ALTER TABLE FLUXPRODREC ADD CONSTRAINT FKCOC00746CATEGORIAPROD FOREIGN KEY (PAI_NRSUBCATEGORIAPROD, NRORG) REFERENCES CATEGORIAPROD (NRCATEGORIAPROD, NRORG)
/
ALTER TABLE FLUXPRODREC ADD CONSTRAINT FKCOC00747SETOR FOREIGN KEY (ROOT_CDSETOR, NRORG) REFERENCES SETOR (CDSETOR, NRORG)
/
ALTER TABLE FLUXPRODREC ADD CONSTRAINT FKCOC00748CATEGORIAPROD FOREIGN KEY (ROOT_NRCATEGORIAPROD, NRORG) REFERENCES CATEGORIAPROD (NRCATEGORIAPROD, NRORG)
/
ALTER TABLE FLUXPRODREC ADD CONSTRAINT FKCOC00749CATEGORIAPROD FOREIGN KEY (ROOT_NRSUBCATEGORIAPROD, NRORG) REFERENCES CATEGORIAPROD (NRCATEGORIAPROD, NRORG)
/
ALTER TABLE FLUXPRODREC ADD CONSTRAINT CKC_IDSCATPRNTDPND_FLUXPRODREC CHECK (IDSUBCATPARENTDEPENDENT   IN ('0', '1'))
/
ALTER TABLE FLUXPRODREC ADD CONSTRAINT CKC_IDSTRPRNTDEPND_FLUXPRODREC CHECK (IDSTRPARENTDEPENDENT IN ('0', '1'))
/
ALTER TABLE FLUXPRODREC ADD CONSTRAINT CKC_IDCATPRNTDEPND_FLUXPRODREC CHECK (IDCATPARENTDEPENDENT  IN ('0', '1'))
/
ALTER TABLE FLUXPRODREC ADD CONSTRAINT CKC_IDSCATROOTDPND_FLUXPRODREC CHECK (IDSUBCATROOTDEPENDENT   IN ('0', '1'))
/
ALTER TABLE FLUXPRODREC ADD CONSTRAINT CKC_IDCATROOTDEPND_FLUXPRODREC CHECK (IDCATROOTDEPENDENT  IN ('0', '1'))
/
ALTER TABLE FLUXPRODREC ADD CONSTRAINT CKC_IDSTRROOTDEPND_FLUXPRODREC CHECK (IDSTRROOTDEPENDENT IN ('0', '1'))