Documentation Base de Données
Bases de données supportées
- PostgreSQL (Production)
- H2 (Développement)
Schéma de la base de données
erDiagram
organization ||--o{ establishment : has
organization ||--o| address : has
establishment ||--o| address : has
establishment ||--o{ company_information : has
establishment ||--o{ establishment_activities : has
organization {
string id PK
string name
string picture
string address_id FK
string status
boolean is_deleted
boolean is_active
}
establishment {
string id PK
string parent_organism
string name
string picture
string supporting_documents_id
string legal_status
string address_id FK
string status
boolean is_deleted
boolean is_active
}
address {
string id PK
string number
string route
string zip_postal
string city
string country
string complement
string stage
boolean is_deleted
}
company_information {
string id PK
string name
string value
boolean is_deleted
}
establishment_activities {
string establishment_id FK
string activity
}
Tables
organization
| Colonne |
Type |
Description |
Index |
| id |
UUID |
Identifiant unique |
Primary Key |
| name |
VARCHAR |
Nom de l'organisation |
- |
| picture |
VARCHAR |
URL de l'image |
- |
| address_id |
UUID |
Référence à l'adresse |
Foreign Key |
| status |
VARCHAR |
État de l'organisation |
- |
| is_deleted |
BOOLEAN |
Marqueur de suppression |
- |
| is_active |
BOOLEAN |
État d'activation |
- |
establishment
| Colonne |
Type |
Description |
Index |
| id |
UUID |
Identifiant unique |
Primary Key |
| parent_organism |
VARCHAR |
Organisme parent |
- |
| name |
VARCHAR |
Nom de l'établissement |
- |
| picture |
VARCHAR |
URL de l'image |
- |
| supporting_documents_id |
VARCHAR |
ID des documents justificatifs |
- |
| legal_status |
VARCHAR |
Statut juridique |
- |
| address_id |
UUID |
Référence à l'adresse |
Foreign Key |
| status |
VARCHAR |
État de l'établissement |
- |
| is_deleted |
BOOLEAN |
Marqueur de suppression |
- |
| is_active |
BOOLEAN |
État d'activation |
- |
address
| Colonne |
Type |
Description |
Index |
| id |
UUID |
Identifiant unique |
Primary Key |
| number |
VARCHAR |
Numéro de rue |
- |
| route |
VARCHAR |
Nom de la rue |
- |
| zip_postal |
VARCHAR |
Code postal |
- |
| city |
VARCHAR |
Ville |
- |
| country |
VARCHAR |
Pays |
- |
| complement |
VARCHAR |
Complément d'adresse |
- |
| stage |
VARCHAR |
Étage |
- |
| is_deleted |
BOOLEAN |
Marqueur de suppression |
- |
| Colonne |
Type |
Description |
Index |
| id |
UUID |
Identifiant unique |
Primary Key |
| name |
VARCHAR |
Nom de l'attribut |
- |
| value |
VARCHAR |
Valeur de l'attribut |
- |
| is_deleted |
BOOLEAN |
Marqueur de suppression |
- |
establishment_activities
| Colonne |
Type |
Description |
Index |
| establishment_id |
UUID |
Référence à l'établissement |
Foreign Key |
| activity |
VARCHAR |
Type d'activité |
- |