Set up the database schema with Drizzle #27
Labels
No labels
backend
beginner friendly
bug
chore
documentation
enhancement
frontend
priority/high
priority/low
priority/medium
size/L
size/M
size/S
size/XL
size/XS
stage/backlog
stage/done
stage/in progress
stage/ready
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
ScottyLabs/housing#27
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Overall Objective
We need a PostgreSQL database with all tables created before any backend feature can be built. This issue sets up Drizzle ORM in Deno, connects it to Postgres, and runs the initial migration to create all tables.
This will be done after the team has come together to discuss further about the initial tables needed. However, we'll be able to update, add, and remove tables if needed later, but setup would be required for us to continue with the backend.
Suggested Approach
You'll likely need to learn how postgres and drizzle orm work to do this. Ask for help from Yiyoung or your tech lead. Generally this will be using Docker, Dizzle ORM, and Deno if you need a start with looking things up and trying to understand everything. The general instruction/process should be the following.
Additionally, once everything seems to be working you might want to add docs for others to start the db with.
Help & Resources