Set up a database for the chosen framework’s ORM, allowing configuration for any database but defaulting to Postgres. Follow migrations, models, and service patterns to ensure a robust and flexible database setup.
Acceptance Criteria
Database Configuration:
Set up the database for the chosen framework’s ORM.
The setup should allow configuration for any database, with Postgres as the default.
Follow migrations, models, and service patterns.
Validation:
Create the following tables and constraints:
Users: A user has one profile.
Profiles: A user has one profile.
Organisations: A user belongs to many organisations. An organisation has many users.
Description
Set up a database for the chosen framework’s ORM, allowing configuration for any database but defaulting to Postgres. Follow migrations, models, and service patterns to ensure a robust and flexible database setup.
Acceptance Criteria
Database Configuration:
Validation:
Example Data
Tables and Constraints:
Table Seeding:
Example Endpoints
[GET] api/v1/users/user_one_id
[GET] api/v1/users/user_two_id
Implementation
chore/database-setup
from the base branch.Expected Outcome
Testing
Notes