ALTER TABLE CLIENTE ADD IDUTGRFXVENDADIC VARCHAR2(1) DEFAULT 'N' NOT NULL
	 CONSTRAINT CLIENTE_IDUTGRFXVENDADIC CHECK (IDUTGRFXVENDADIC IN ('N', 'S'))
/ 

CREATE TABLE VENDADICCLIE
(
    CDCLIENTE           VARCHAR2(21)           NOT NULL,
    CDVENDEDOR          VARCHAR2(4)            NOT NULL,
    VRPECOMVEN          FLOAT                  NULL    ,
    CONSTRAINT PK_VENDADICCLIE PRIMARY KEY (CDCLIENTE, CDVENDEDOR),
	NRORG             NUMBER 	      DEFAULT         SYS_CONTEXT('nrorg_ctx','nrorg') NOT NULL,
    IDATIVO           VARCHAR2(1)     DEFAULT 'S' NOT NULL
      CONSTRAINT CKC_IDATIVO_VENDADICCLIE CHECK (IDATIVO IN ('S','N')),
    DTINCLUSAO        DATE                  			NULL,
    DTULTATU          DATE                  			NULL,
    NRORGINCLUSAO     NUMBER          DEFAULT SYS_CONTEXT('nrorg_ctx','nrorg')		NULL,
    CDOPERINCLUSAO    VARCHAR2(12)    DEFAULT '1' 		NULL,
    NRORGULTATU       NUMBER          DEFAULT SYS_CONTEXT('nrorg_ctx','nrorg')		NULL,
    CDOPERULTATU      VARCHAR2(12)    DEFAULT '1'
)
/