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
  • Amparo
  • wiki
  • Wiki
  • banco_dados

banco_dados · Changes

Page history
Update banco_dados authored Sep 30, 2023 by Luis Felipe Copetti Rossi's avatar Luis Felipe Copetti Rossi
Show whitespace changes
Inline Side-by-side
banco_dados.md
View page @ 8c3eb690
......@@ -75,8 +75,117 @@ TBD
### Schemas
TBD
#### Postgrees
TBD
\ No newline at end of file
## Table User
- `id` (uuid, primary key)
- `email` (text unique, not null)
- `password` (text not null)
- `salt` (text not null)
- `name` (text not null)
- `cellphone` (text not null)
- `profile_picture` (text)
- `is_anonymous` (boolean)
## Table Doctor
- `id` (uuid, unique, primary key)
- `crm` (text unique, not null)
- `uf` (text not null)
- `id` (uuid, foreign key referencing User)
## Table HealthPlan
- `id` (uuid, primary key)
- `name` (text not null)
- `health_plan_image` (text)
## Table DoctorHealthPlan
- `id` (uuid, primary key)
- `id_doctor` (uuid)
- `id_health_plan` (uuid)
- Foreign key (`id_doctor`) references Doctor (`id`)
- Foreign key (`id_health_plan`) references HealthPlan (`id`)
## Table Patient
- `id` (uuid, unique, primary key)
- `cpf` (text)
- Foreign key (`id`) references User (`id`)
## Table Information
- `id` (uuid, primary key)
- `title` (text)
- `link` (text)
- `image` (text)
- `description` (text)
- `id_doctor` (uuid, not null)
- Foreign key (`id_doctor`) references Doctor (`id`)
## Table DoctorPatient
- `id` (uuid, primary key)
- `id_doctor` (uuid)
- `id_patient` (uuid)
- Foreign key (`id_doctor`) references Doctor (`id`)
- Foreign key (`id_patient`) references Patient (`id`)
## Table Appointment
- `id` (uuid, primary key)
- `id_doctor` (uuid)
- `id_patient` (uuid)
- `appointment_date` (timestamp not null)
- Foreign key (`id_doctor`) references Doctor (`id`)
- Foreign key (`id_patient`) references Patient (`id`)
## Table Medicine
- `id` (uuid, primary key)
- `name` (text not null)
- `leaflet` (text)
## Table Dosage
- `id` (uuid, primary key)
- `id_patient` (uuid)
- `id_medicine` (uuid)
- `quantity` (text not null)
- `initial_hour` (timestamp)
- `frequency` (timestamp)
- `final_date` (timestamp)
- Foreign key (`id_patient`) references Patient (`id`)
- Foreign key (`id_medicine`) references Medicine (`id`)
## Table Incompatibility
- `id` (uuid, primary key)
- `id_medicine` (uuid)
- `id_medicine_inc` (uuid)
- `severity` (text)
- `description` (text)
- Foreign key (`id_medicine`) references Medicine (`id`)
- Foreign key (`id_medicine_inc`) references Medicine (`id`)
## Table Exam
- `id` (uuid, primary key)
- `description` (text)
- `exam_date` (timestamp not null)
- `is_done` (boolean)
- `id_patient` (uuid)
- Foreign key (`id_patient`) references Patient (`id`)
## Table Post
- `id` (uuid, primary key)
- `content` (text)
- `creation_date` (timestamp not null)
- `id_patient` (uuid)
- `is_main` (boolean not null)
- `id_post` (uuid)
- Foreign key (`id_post`) references Post (`id`)
- Foreign key (`id_patient`) references Patient (`id`)
## Table Vote
- `id` (uuid, primary key)
- `is_like` (boolean not null)
- `id_post` (uuid not null)
- `id_patient` (uuid)
- Foreign key (`id_patient`) references Patient (`id`)
- Foreign key (`id_post`) references Post (`id`)
#### PostgreSQL
O PostgreSQL, frequentemente chamado de Postgres, é um sistema de gerenciamento de banco de dados relacional de código aberto amplamente respeitado e utilizado em todo o mundo. Ele se destaca por sua flexibilidade, confiabilidade e capacidade de lidar com uma ampla gama de cargas de trabalho de bancos de dados.
Uma das características distintivas do PostgreSQL é sua extensibilidade. Ele permite que os desenvolvedores estendam suas capacidades incorporando novos tipos de dados, funções e operadores personalizados diretamente no banco de dados. Isso significa que você pode adaptar o PostgreSQL para atender às necessidades específicas do seu projeto, tornando-o adequado para uma variedade de cenários de aplicativos.
Clone repository
  • arquitetura
  • banco_dados
  • codigo
  • configuracao
  • design_mockups
  • escopo
  • Home
  • processo
  • qualidade
  • utilizacao