Created
January 25, 2016 13:15
-
-
Save cesarAugusto1994/afc5f836f19453fe342d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE webpdv_log.produto ( | |
id int AUTO_INCREMENT, | |
prdno char(16) NOT NULL, | |
clno int(10) NOT NULL, | |
name varchar(120) NOT NULL, | |
vendno int(11) NOT NULL DEFAULT '0', | |
typeno smallint(6) NOT NULL DEFAULT '0', | |
deptno smallint(6) NOT NULL DEFAULT '0', | |
groupno smallint(6) NOT NULL DEFAULT '0', | |
unidade varchar(2) NOT NULL DEFAULT 'UN', | |
prdno_int int(11) unsigned DEFAULT NULL, | |
id_usuario_alteracao int, | |
data_alteracao DATETIME, | |
PRIMARY KEY (id), | |
KEY w1 (prdno), | |
KEY w2 (clno), | |
KEY w3 (name), | |
KEY w4 (typeno), | |
KEY w5 (vendno) | |
) ENGINE=InnoDB DEFAULT CHARSET=latin1; | |
CREATE TABLE webpdv_log.produto_caracteristica ( | |
id int AUTO_INCREMENT, | |
prdno char(16) NOT NULL, | |
fora_linha tinyint(1) NOT NULL DEFAULT '0', | |
fracionado tinyint(1) NOT NULL DEFAULT '0', | |
estoque_minimo tinyint(1) NOT NULL DEFAULT '0', | |
revenda tinyint(1) NOT NULL DEFAULT '0', | |
imobilizado tinyint(1) NOT NULL DEFAULT '0', | |
uso_consumo tinyint(1) NOT NULL DEFAULT '0', | |
servico tinyint(1) NOT NULL DEFAULT '0', | |
prod_kit tinyint(1) NOT NULL DEFAULT '0', | |
vendido_kit tinyint(1) NOT NULL DEFAULT '0', | |
garantia tinyint(1) NOT NULL DEFAULT '0', | |
sem_estoque tinyint(1) NOT NULL DEFAULT '0', | |
nao_requer_montagem tinyint(1) NOT NULL DEFAULT '0', | |
produto_situacao_mix_id int(11) NOT NULL DEFAULT '0', | |
voltagem char(4) DEFAULT NULL, | |
id_usuario_alteracao int, | |
data_alteracao DATETIME, | |
PRIMARY KEY (id) | |
) ENGINE=InnoDB DEFAULT CHARSET=latin1; | |
CREATE TABLE webpdv_log.produto_campo_livre ( | |
id int AUTO_INCREMENT, | |
prdno char(16) NOT NULL, | |
taxno char(2) DEFAULT NULL, | |
garantia tinyint(4) NOT NULL DEFAULT '0', | |
prazo_medio varchar(20) DEFAULT NULL, | |
campo_livre_3 varchar(20) DEFAULT NULL, | |
campo_livre_4 varchar(20) DEFAULT NULL, | |
id_usuario_alteracao int, | |
data_alteracao DATETIME, | |
PRIMARY KEY (id) | |
) ENGINE=InnoDB DEFAULT CHARSET=latin1; | |
CREATE TABLE webpdv_log.produto_sped ( | |
id int AUTO_INCREMENT, | |
prdno char(16) NOT NULL, | |
ncm int(11) NOT NULL DEFAULT '0', | |
origem tinyint(1) NOT NULL DEFAULT '0', | |
id_usuario_alteracao int, | |
data_alteracao DATETIME, | |
PRIMARY KEY (id) | |
) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment