-- generated by export_tables.php on 2025-12-02 16:02:03
-- source: ip.sysfar.com.br/gtsyscon_gtsys -> table: gtsys_historicoitem_uf4

create table gtsys_historicoitem_uf4
(
  `codigo` int(11) NOT NULL AUTO_INCREMENT,
  `codigo_item` int(11) NOT NULL,
  `descricao` text,
  `DATA` date DEFAULT NULL,
  `hora` time DEFAULT NULL,
  PRIMARY KEY (`codigo`),
  CONSTRAINT `gtsys_historicoitem_uf4_ibfk_1` FOREIGN KEY (`codigo_item`) REFERENCES `gtsys_itens` (`codigo`)
)ENGINE=InnoDB AUTO_INCREMENT=45 DEFAULT CHARSET=utf8;

create index codigo
    on gtsys_historicoitem_uf4 (codigo);

create index codigo_item
    on gtsys_historicoitem_uf4 (codigo_item);

