Replies: 3 comments 1 reply
-
Phase 1 : Gestion de la DB
Phase 2 : Logique data
Phase 3 : Liste V2 & Template
|
Beta Was this translation helpful? Give feedback.
-
|
Putting the diagram here :) Also you mentioned a |
Beta Was this translation helpful? Give feedback.
-
|
Linked discussion : #514 |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
Redesign of Backend Architecture: Team and Item Management in a Modular Database
Current Context
The current application allows:
1. An authenticated user with specific permissions to create a team.
2. Generation of forms within a team to collect data.
3. Usage of these forms to populate a database.
The current architecture relies on the following tables:
• teams: Manages teams.
• fields: Defines form fields (per team).
• refugees (outdated name, should be replaced with items): Stores data entries submitted through the forms.
• field_refugee: Links form data to entries in the refugees table.
Current Limitations
Proposed New Architecture
To address current needs, the database and backend will be redesigned to:
1. Handle multiple item types within the same team.
2. Enable relationships between these items.
3. Introduce a global/local inheritance mechanism to share types and functionalities across teams.
New Database Structure
General Principles
Team Creation
When a team is created:
1. An entry is added to the teams table in the global schema.
2. A specific schema is created for the team, containing:
• A table for each item type.
• A table for relationships between items.
• Customizable copies of inherited global data (e.g., lists, item types).
New Table Organization
Global Schema
Team-Specific Schema
Data Example
Global Schema
id name
1 Team 1
2 Team 2
id name
1 Person
2 Event
Team-Specific Schema (for Team 1)
id name type associated_list item_type_id
1 Name string NULL 1
2 Age number NULL 1
3 Country list Countries 1
4 Date date NULL 2
id name age country
1 John 31 France
id date
1 12/12/2024
Inheritance and Customization
Architecture Advantages
Beta Was this translation helpful? Give feedback.
All reactions