Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Wiki Wiki
  • Project information
    • Project information
    • Activity
    • Labels
    • Planning hierarchy
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 32
    • Issues 32
    • 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
  • O Turismo Rural em São Francisco de Paula
  • WikiWiki
  • Wiki
  • Banco de Dados

Banco de Dados · Changes

Page history
Update Banco de Dados authored Jun 23, 2024 by Matheus Fernandes da Rosa's avatar Matheus Fernandes da Rosa
Show whitespace changes
Inline Side-by-side
Banco-de-Dados.md
View page @ 3e4f3f27
......@@ -13,7 +13,112 @@
---
# Diagrama Lógico do Banco de Dados
![image](uploads/7a61cee876f98665328d053cfa319cea/image.png)
```mermaid
classDiagram
class Experience {
- String cnpj
- String name
- String email
- String phone
- String description
- Image image
- Boolean isFeatured
- JSON socialNetwork
- Address address
- Tag tags
- Category category
- Profile profile
}
class Spot {
- Integer id
- WorkingDay[] workingDay
}
class Event {
- Integer id
- String details
- String time
}
class WorkingDay {
- Integer id
- String day
- String openingHour
- String closingHour
}
class Tag {
- Integer id
- String name
- Category category
}
class Category {
- Integer categoryId;
- String name;
- Tag[] tags;
}
class Address {
- Integer id
- String street
- Integer number
- String zipCode
}
class Profile {
- Integer id;
- String name;
- String email;
- String cpf;
- String phone;
- String password;
}
class Route {
- Integer id
- String name
- String description
- RouteType routeType
- Experience[] experienceList
}
class RouteType {
- Integer id
- String name
- String description
}
class Image {
- Integer id
- String url;
}
class SocialNetwork {
- Integer id
- String tiktok
- String youtube
- String facebook
- String otherSocialNetwork
}
Experience "0..*" <--> "0..*" Category
Experience "1" <--> "1" Address
Experience "0..*" <--> "0..*" Tag : Tags_Experience
Experience "1" <--> "1" SocialNetwork
Experience <|-- Spot : Inheritance
Experience <|-- Event : Inheritance
Experience "0..*" <--> "1" Profile
Experience "0..n" <--> "1" Image
Experience "0..*" <--> "1..*" Route
Route "1..*" <--> "1" RouteType
Category "0..*" <--> "0..1" Tag : Tags_Category
Spot "1" <--> "1" WorkingDay
```
# Dados salvos client-side (cache do navegador)
- Preferências do usuário
......@@ -31,4 +136,4 @@
}`
# Arquivo do Diagrama
[Diagrama-BD-TurismoRural.asta](uploads/f7bfc68d4af7cf9476b3340640af521f/Diagrama-BD-TurismoRural.asta)
\ No newline at end of file
[Diagrama-BD-TurismoRural.asta](uploads/dfc9ccabe42af804a8bd59aba9fc0352/Diagrama-BD-TurismoRural.asta)
\ No newline at end of file
Clone repository

Home

Documentação do Projeto

Escopo

Processo

Gerência

Design

Sprints

Documentação Técnica

Arquitetura

Banco de Dados

Analytics