Guest User

Untitled

a guest
Dec 10th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.10 KB | None | 0 0
  1. /*==============================================================*/
  2. /* Table: LISTA_DE_PRODUTOS */
  3. /*==============================================================*/
  4. create table LISTA_DE_PRODUTOS (
  5. IDPRODUTO numeric identity,
  6. PRECO money null,
  7. DESIGNACAO varchar(50) null,
  8. ALCOOLICO bit null,
  9. constraint PK_LISTA_DE_PRODUTOS primary key nonclustered (IDPRODUTO)
  10.  
  11.  
  12.  
  13.  
  14.  
  15. ----------
  16.  
  17.  
  18.  
  19.  
  20. /*==============================================================*/
  21. /* Table: ITENS */
  22. /*==============================================================*/
  23. create table ITENS (
  24. IDTRANSACAO numeric not null,
  25. IDITEN numeric identity,
  26. IDPRODUTO numeric not null,
  27. QUANTIDADE decimal(10,2) null,
  28. constraint PK_ITENS primary key nonclustered (IDTRANSACAO, IDITEN)
  29.  
  30.  
  31.  
  32.  
  33. ---------
  34.  
  35.  
  36.  
  37. /*==============================================================*/
  38. /* Table: TRANSACOES */
  39. /*==============================================================*/
  40. create table TRANSACOES (
  41. IDTRANSACAO numeric identity,
  42. IDPULSEIRA numeric not null,
  43. IDPOS numeric not null,
  44. IDLOJA numeric not null,
  45. VALOR_TOTAL money null,
  46. DATA_DA_TRANSACCAO datetime null,
  47. constraint PK_TRANSACOES primary key nonclustered (IDTRANSACAO)
  48.  
  49.  
  50.  
  51.  
  52. ------------
  53.  
  54.  
  55.  
  56. /*==============================================================*/
  57. /* Table: LOJAS_PRODUTOS */
  58. /*==============================================================*/
  59. create table LOJAS_PRODUTOS (
  60. IDLOJA numeric not null,
  61. IDPRODUTO numeric not null,
  62. STOCK_DISPONIVEL float null,
  63. constraint PK_LOJAS_PRODUTOS primary key (IDLOJA, IDPRODUTO)
Add Comment
Please, Sign In to add comment