ALTER TABLE MODELORELAF MODIFY IDDSRESPONFAT VARCHAR2(2)
/ 

ALTER TABLE MODELORELAF ADD CONSTRAINT CKC_IDDSRESPONFAT_MODRELAF CHECK (IDDSRESPONFAT IN ('0','1','2','3','4','5'))
/

ALTER TABLE MODELORELAF MODIFY IDDSENDERECOFAT VARCHAR2(2)
/

ALTER TABLE MODELORELAF ADD CONSTRAINT CKC_IDDSENDERECOFAT_MODRELAF CHECK (IDDSENDERECOFAT IN ('0','1','2','3','4','5','6','7','8','9','10'))
/

ALTER TABLE MODELORELAF MODIFY IDNRINSJURFAT VARCHAR2(2)
/

ALTER TABLE MODELORELAF ADD CONSTRAINT CKC_IDNRINSJURFAT_MODRELAF CHECK (IDNRINSJURFAT IN ('0','1','2'))
/ 

ALTER TABLE MODELORELAF MODIFY IDDSRESPONCOB VARCHAR2(2)
/

ALTER TABLE MODELORELAF ADD CONSTRAINT CKC_IDDSRESPONCOB_MODRELAF CHECK (IDDSRESPONCOB IN ('0','1','2','3','4'))
/

ALTER TABLE MODELORELAF MODIFY IDDSENDERECOCOB VARCHAR2(2)
/

ALTER TABLE MODELORELAF ADD CONSTRAINT CKC_IDDSENDERECOCOB_MODRELAF CHECK (IDDSENDERECOCOB IN ('0','1','2','3','4','5','6','7','8','9','10'))
/

ALTER TABLE MODELORELAF MODIFY IDNRINSJURCOB VARCHAR2(2)
/

ALTER TABLE MODELORELAF ADD CONSTRAINT CKC_IDNRINSJURCOB_MODRELAF CHECK (IDNRINSJURCOB IN ('0','1','2'))
/

ALTER TABLE MODELORELAF MODIFY IDDSENDERECOENTR VARCHAR2(2)
/

ALTER TABLE MODELORELAF ADD CONSTRAINT CKC_IDDSENDERECOENTR_MODRELAF CHECK (IDDSENDERECOENTR IN ('0','1','2','3','4','5','6','7','8','9','10'))
/

ALTER TABLE MODELORELAF MODIFY IDCNPJENTR VARCHAR2(2)
/

ALTER TABLE MODELORELAF ADD CONSTRAINT CKC_IDCNPJENTR_MODRELAF CHECK (IDCNPJENTR IN ('0','1','2'))
/

ALTER TABLE MODELORELAF DROP CONSTRAINT FKCMP00597FILIAL
/

ALTER TABLE MODELORELAF DROP COLUMN CDFILIAL