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-135844_create_series/down.sql
Normal file
1
migrations/2023-12-22-135844_create_series/down.sql
Normal file
@@ -0,0 +1 @@
|
||||
DROP TABLE series;
|
7
migrations/2023-12-22-135844_create_series/up.sql
Normal file
7
migrations/2023-12-22-135844_create_series/up.sql
Normal file
@@ -0,0 +1,7 @@
|
||||
CREATE TABLE series (
|
||||
id SERIAL PRIMARY KEY,
|
||||
name VARCHAR NOT NULL,
|
||||
repeat INTEGER NOT NULL,
|
||||
good BOOLEAN NOT NULL,
|
||||
category_id SERIAL REFERENCES categories(id)
|
||||
);
|
Reference in New Issue
Block a user