CREATE TABLE llx_rete_comprobante_det (
  rowid int(11) NOT NULL AUTO_INCREMENT,
  fk_comprobante_rowid int(11) NOT NULL DEFAULT 0,
  asiento varchar(255) DEFAULT NULL,
  cuenta varchar(50) NOT NULL,
  debe double NOT NULL DEFAULT 0,
  haber double NOT NULL DEFAULT 0,
  code varchar(15) DEFAULT NULL,
  PRIMARY KEY (rowid)
)
ENGINE = INNODB;