feat: use diesel-cli instead of hand writing tables
after reading the documentation, crazy right? I figured out i was making my life hard, this makes my life easy again
This commit is contained in:
parent
f1d5b4316e
commit
a6d35b0ba2
24 changed files with 323 additions and 206 deletions
2
migrations/2025-05-21-194207_create_invites/down.sql
Normal file
2
migrations/2025-05-21-194207_create_invites/down.sql
Normal file
|
@ -0,0 +1,2 @@
|
|||
-- This file should undo anything in `up.sql`
|
||||
DROP TABLE invites;
|
6
migrations/2025-05-21-194207_create_invites/up.sql
Normal file
6
migrations/2025-05-21-194207_create_invites/up.sql
Normal file
|
@ -0,0 +1,6 @@
|
|||
-- Your SQL goes here
|
||||
CREATE TABLE invites (
|
||||
id varchar(32) PRIMARY KEY NOT NULL,
|
||||
guild_uuid uuid NOT NULL REFERENCES guilds(uuid) ON DELETE CASCADE,
|
||||
user_uuid uuid NOT NULL REFERENCES users(uuid)
|
||||
);
|
Loading…
Add table
Add a link
Reference in a new issue