CREATE TABLE LIQMANUALCUSTOM(
	CDFILIAL  	  	  VARCHAR2(04) NOT NULL,
	NRPEDIDO  	  	  VARCHAR2(10) NOT NULL,
	NRITEMPED 	  	  VARCHAR2(10),
	CDPRODUTO 	  	  VARCHAR2(10),
	NRLOTEESTQ 	  	  VARCHAR2(20),
	NRSUBLOTE 	  	  VARCHAR2(04),
	QTLIQITEM  	  	  FLOAT,
	CDALMOXARIFE 	  VARCHAR2(06),
	CDLOCALESTOQ 	  VARCHAR2(06),
    NRORG             NUMBER 	      DEFAULT SYS_CONTEXT('nrorg_ctx','nrorg') 		NOT NULL,
    IDATIVO           VARCHAR2(1)     DEFAULT 'S'					NOT NULL,
    DTINCLUSAO        DATE            DEFAULT SYSDATE,
    DTULTATU          DATE            DEFAULT SYSDATE,
    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',
		CONSTRAINT CKC_IDATIVO_LIQMANUAL CHECK (IDATIVO IN ('S','N')),
		CONSTRAINT PK_LIQMANUALCUSTOM PRIMARY KEY (CDFILIAL, NRPEDIDO, NRITEMPED, NRLOTEESTQ, NRSUBLOTE)
)
/