@PHOLHAD
CREATE TABLE "PHMTRS"
(
  "TIPTRS"       VARCHAR(2) NOT NULL,
  "CODIGO"       VARCHAR(4) NOT NULL,
  "ANOMES"       VARCHAR(8) NOT NULL,
  "CODFOL"       VARCHAR(2) NOT NULL,
  "TABVER"       VARCHAR(4) NOT NULL,
  "CODVER"	 VARCHAR(4) NOT NULL,
  "NOMVER"       VARCHAR(50),
  "TIPVER"       VARCHAR(2),
  "ROTINA"       VARCHAR(6),
  "VERREF"	 VARCHAR(4),
  "IDENT1"	 VARCHAR(10),
  "IDENT2"	 VARCHAR(10),
  "IDENT3"	 VARCHAR(10),
  "PERCEN"	 VARCHAR(15),
  "BASQUA"	 VARCHAR(40),
  "BASPRE"	 VARCHAR(40),
  "BASVAL"	 VARCHAR(40),
  "VLRQTD"	 VARCHAR(15),
  "BASSEL"	 VARCHAR(30),
  "OPESEL"	 VARCHAR(2),
  "RSTSEL"	 VARCHAR(15),
  "TIPLIM"	 VARCHAR(2),
  "LIMMIN"	 VARCHAR(15),
  "LIMMAX"	 VARCHAR(15),
  "TRACEN"	 VARCHAR(2),
  "TIPINF"	 VARCHAR(2),
  "PORSIT"	 VARCHAR(20),
  "CALFOL"	 VARCHAR(20),
  "CALGRU"	 VARCHAR(20),
  "CALSIN"	 VARCHAR(30),
  "CALSIT"	 VARCHAR(20),
  "CALVIN"	 VARCHAR(20),
  "CALCAT"	 VARCHAR(20),
  "CALTUR"	 VARCHAR(20),
  "CALPER"	 VARCHAR(20),
  "VARACU"	 VARCHAR(4),
  "PROADM"	 VARCHAR(2),
  "PROMES"	 VARCHAR(2),
  "CMPPRO"	 VARCHAR(7),
  "PRODEM"	 VARCHAR(2),
  "INCBAS"	 VARCHAR(300),
  "INCCMP"	 VARCHAR(300),
  "INCACU"	 VARCHAR(300),
  "ORDCAL"	 VARCHAR(6),
  "DEDIRF"	 VARCHAR(2),
  "DEDIRS"	 VARCHAR(2),
  "DEDIRD"	 VARCHAR(2),
  "DEDATI"	 VARCHAR(2),
  "CUSTOS"	 VARCHAR(2),
  "CALMES"	 VARCHAR(20),
 PRIMARY KEY ("TIPTRS", "CODIGO", "ANOMES", "CODFOL", "TABVER", "CODVER")
);
@EXESQL

