CREATE TABLE ESO_TPLOTATRIBUT
(
  NRTPLOTATRIBUT		NUMBER			NOT NULL,
  DSTPLOTATRIBUT		VARCHAR2(700)		NOT NULL, 
  CDTPINSCLOTTRI		VARCHAR2(50)		NULL,
  CDESOCIAL		VARCHAR2(2)		NOT NULL,
  NRORG                       		NUMBER              		DEFAULT 1 NOT NULL,
  IDATIVO			VARCHAR2(1)		DEFAULT 'S' NOT NULL
		CONSTRAINT CKC_IDATIVO_TPLOTATRIBUT CHECK (IDATIVO IN ('N','S')),  
  DTINCLUSAO		DATE			DEFAULT SYSDATE NOT NULL,
  DTULTATU		DATE			NULL,
  NRORGINCLUSAO		NUMBER(22)		DEFAULT 1 NULL ,
  CDOPERINCLUSAO		VARCHAR2(12)		DEFAULT '1' NULL ,
  NRORGULTATU		NUMBER(22)		DEFAULT 1 NULL ,
  CDOPERULTATU		VARCHAR2(12)		DEFAULT '1' NULL ,
	CONSTRAINT PK_ESO_TPLOTATRIBUT PRIMARY KEY (NRTPLOTATRIBUT)
)