Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*==============================================================*/
- /* Table: LISTA_DE_PRODUTOS */
- /*==============================================================*/
- create table LISTA_DE_PRODUTOS (
- IDPRODUTO numeric identity,
- PRECO money null,
- DESIGNACAO varchar(50) null,
- ALCOOLICO bit null,
- constraint PK_LISTA_DE_PRODUTOS primary key nonclustered (IDPRODUTO)
- ----------
- /*==============================================================*/
- /* Table: ITENS */
- /*==============================================================*/
- create table ITENS (
- IDTRANSACAO numeric not null,
- IDITEN numeric identity,
- IDPRODUTO numeric not null,
- QUANTIDADE decimal(10,2) null,
- constraint PK_ITENS primary key nonclustered (IDTRANSACAO, IDITEN)
- ---------
- /*==============================================================*/
- /* Table: TRANSACOES */
- /*==============================================================*/
- create table TRANSACOES (
- IDTRANSACAO numeric identity,
- IDPULSEIRA numeric not null,
- IDPOS numeric not null,
- IDLOJA numeric not null,
- VALOR_TOTAL money null,
- DATA_DA_TRANSACCAO datetime null,
- constraint PK_TRANSACOES primary key nonclustered (IDTRANSACAO)
- ------------
- /*==============================================================*/
- /* Table: LOJAS_PRODUTOS */
- /*==============================================================*/
- create table LOJAS_PRODUTOS (
- IDLOJA numeric not null,
- IDPRODUTO numeric not null,
- STOCK_DISPONIVEL float null,
- constraint PK_LOJAS_PRODUTOS primary key (IDLOJA, IDPRODUTO)
Add Comment
Please, Sign In to add comment