feat: add invites table
This commit is contained in:
parent
6a60834396
commit
773f4ca977
1 changed files with 5 additions and 0 deletions
|
@ -134,6 +134,11 @@ async fn main() -> Result<(), Error> {
|
|||
user_uuid uuid NOT NULL REFERENCES users(uuid),
|
||||
message varchar(4000) NOT NULL
|
||||
);
|
||||
CREATE TABLE IF NOT EXISTS 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)
|
||||
);
|
||||
"#,
|
||||
)
|
||||
.execute(&pool)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue