mirror of
https://github.com/alvierahman90/rabbit.git
synced 2025-10-13 07:54:25 +00:00
start creating server endpoints, database boilerplate
This commit is contained in:
1
migrations/2023-12-22-135650_create_categories/down.sql
Normal file
1
migrations/2023-12-22-135650_create_categories/down.sql
Normal file
@@ -0,0 +1 @@
|
||||
DROP TABLE categories;
|
5
migrations/2023-12-22-135650_create_categories/up.sql
Normal file
5
migrations/2023-12-22-135650_create_categories/up.sql
Normal file
@@ -0,0 +1,5 @@
|
||||
CREATE TABLE categories (
|
||||
id SERIAL PRIMARY KEY,
|
||||
name VARCHAR NOT NULL,
|
||||
user_id SERIAL REFERENCES users(id)
|
||||
);
|
Reference in New Issue
Block a user