Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • W Wiki
  • Project information
    • Project information
    • Activity
    • Labels
    • Planning hierarchy
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Excedentes
  • Wiki
  • Wiki
  • Banco de Dados

Banco de Dados · Changes

Page history
Update Banco de Dados authored Apr 04, 2024 by Adriana Anacleto Serpa's avatar Adriana Anacleto Serpa
Hide whitespace changes
Inline Side-by-side
Banco-de-Dados.md
View page @ e842fb74
...@@ -28,9 +28,9 @@ Optamos por criar um banco de dados relacional, tendo em vista que o banco possu ...@@ -28,9 +28,9 @@ Optamos por criar um banco de dados relacional, tendo em vista que o banco possu
### Modelo ER ### Modelo ER
![image](uploads/ea84f928452d2ec3574ec18ef00ca6e0/image.png) ![image](uploads/2dbad2c28570b026c46d7e174d910646/image.png)
Para ver com mais detalhes sobre este modelo, clique [aqui](https://dbdiagram.io/d/65f1b311b1f3d4062cd5d3b0) Para ver com mais detalhes sobre este modelo, clique [aqui](https://dbdiagram.io/d/Copy-of-Untitled-Diagram-660c745903593b6b61017b26)
## Scripts de criação das tabelas ## Scripts de criação das tabelas
...@@ -42,6 +42,7 @@ Table clientes { ...@@ -42,6 +42,7 @@ Table clientes {
cpf_cnpj varchar2 [not null, primary key] cpf_cnpj varchar2 [not null, primary key]
email varchar2 [not null] email varchar2 [not null]
senha varchar2 [not null] senha varchar2 [not null]
createdAt date [not null]
} }
``` ```
...@@ -51,6 +52,7 @@ Table pedidos { ...@@ -51,6 +52,7 @@ Table pedidos {
id_cliente integer [not null] id_cliente integer [not null]
valor_total double [not null] valor_total double [not null]
data date [not null] data date [not null]
createdAt date [not null]
} }
``` ```
...@@ -67,6 +69,8 @@ Table alimentos { ...@@ -67,6 +69,8 @@ Table alimentos {
categoria varchar2 [not null] categoria varchar2 [not null]
foto varchar2 foto varchar2
cod_barras varchar2 cod_barras varchar2
createdAt date [not null]
deleted bool
} }
``` ```
...@@ -78,6 +82,7 @@ Table item_pedido { ...@@ -78,6 +82,7 @@ Table item_pedido {
id_empresa integer [not null] id_empresa integer [not null]
quantidade integer [not null] quantidade integer [not null]
preco_unitario double [not null] preco_unitario double [not null]
createdAt date [not null]
} }
``` ```
...@@ -90,6 +95,7 @@ Table empresas { ...@@ -90,6 +95,7 @@ Table empresas {
senha varchar2 [not null] senha varchar2 [not null]
horario_comercial varchar2 [not null] horario_comercial varchar2 [not null]
id_endereco integer [not null] id_endereco integer [not null]
createdAt date [not null]
} }
``` ```
...@@ -104,6 +110,7 @@ Table enderecos { ...@@ -104,6 +110,7 @@ Table enderecos {
cep varchar2 [not null] cep varchar2 [not null]
latitude double [not null] latitude double [not null]
longitude double [not null] longitude double [not null]
createdAt date [not null]
} }
``` ```
......
Clone repository
  • Banco de Dados
  • arquitetura
  • codigo
  • configuracao
  • design_mockups
  • escopo
  • gerencia
  • Home
  • materiais_de_estudo
  • processo
  • requisitos
  • sprints