wri	CREATE TABLE `wri` (
  `IDX` int(11) NOT NULL auto_increment,
  `tipo_doc` int(5) default NULL,
  `documento` char(22) default NULL,
  `dcm` char(6) default NULL,
  `data` date default NULL,
  `familia` char(16) default NULL,
  `val_iliquido` double default NULL,
  `val_desconto` double default NULL,
  `val_sujeito` double default NULL,
  `iva` double default NULL,
  `val_iva` double default NULL,
  `val_total` double default NULL,
  PRIMARY KEY  (`IDX`),
  UNIQUE KEY `wri_1` (`tipo_doc`,`documento`,`dcm`,`data`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1	;
