@PHOLHAD
CREATE TABLE "PHCPRC" 
(
  "CODEMP"	 VARCHAR(4) NOT NULL,
  "CODCAD"	 VARCHAR(10) NOT NULL,
  "SEQUEN"       VARCHAR(4) NOT NULL, 
  "ANOMES"	 VARCHAR(8),
  "CODPRC"	 VARCHAR(4),
  "NOMPRC"	 VARCHAR(40),
  "QUAPRC"	 VARCHAR(15),
  "VALPRC"	 VARCHAR(15),
  "OBSPRC"	 VARCHAR(40),
  "DATPAR"	 VARCHAR(10),
  "QUAPAR"       VARCHAR(10), 
  "REATIP"	 VARCHAR(2),
 PRIMARY KEY ("CODEMP", "CODCAD", "SEQUEN")
);
@EXECSQL

CREATE TABLE "PHMGPS3" 
(
  "CODEMP"	 VARCHAR(4) NOT NULL,
  "CODNIV"	 VARCHAR(2) NOT NULL,
  "ANOMES"	 VARCHAR(8) NOT NULL,
  "CODFOL"	 VARCHAR(2) NOT NULL,
  "CODTOM"	 VARCHAR(4) NOT NULL,
  "CODREC"       VARCHAR(4),
  "PERSUB"	 VARCHAR(10),
  "RECBRU"	 VARCHAR(15),
  "RECDES"	 VARCHAR(15),
  "PRODES"	 VARCHAR(10),
  "PERDES"	 VARCHAR(10),
  "OBSERV"	 VARCHAR(50),
  "EMITIU"	 VARCHAR(2),
  "NOMUSU"	 VARCHAR(10),
  "DATEMI"	 VARCHAR(10),
  "HOREMI"	 VARCHAR(5),
  "VENCTO"	 VARCHAR(10),
  "PERMUL"	 VARCHAR(10),
  "PERJUR"	 VARCHAR(10),
 PRIMARY KEY ("CODEMP", "CODNIV", "ANOMES", "CODFOL", "CODTOM")
);
@EXECSQL

