feat: add a project model
This commit is contained in:
2
migrations/2024-08-16-221326_create_projects/down.sql
Normal file
2
migrations/2024-08-16-221326_create_projects/down.sql
Normal file
@ -0,0 +1,2 @@
|
||||
-- This file should undo anything in `up.sql`
|
||||
DROP TABLE IF EXISTS "projects";
|
6
migrations/2024-08-16-221326_create_projects/up.sql
Normal file
6
migrations/2024-08-16-221326_create_projects/up.sql
Normal file
@ -0,0 +1,6 @@
|
||||
-- Your SQL goes here
|
||||
CREATE TABLE "projects"(
|
||||
"id" SERIAL NOT NULL PRIMARY KEY,
|
||||
"title" TEXT NOT NULL
|
||||
);
|
||||
|
Reference in New Issue
Block a user