feat: starting db abstractions
This commit is contained in:
parent
303e3ffd4e
commit
0b10885015
6 changed files with 119 additions and 44 deletions
|
|
@ -1,7 +1,11 @@
|
|||
-- Your SQL goes here
|
||||
CREATE TABLE users (
|
||||
discord_id UNSIGNED BIG INT PRIMARY KEY NOT NULL,
|
||||
id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
|
||||
discord_id UNSIGNED BIG INT NOT NULL,
|
||||
guild_id UNSIGNED BIG INT NOT NULL,
|
||||
email TEXT UNIQUE NOT NULL,
|
||||
first_name TEXT NOT NULL,
|
||||
last_name TEXT NOT NULL
|
||||
last_name TEXT NOT NULL,
|
||||
|
||||
UNIQUE(discord_id, guild_id)
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue