affluence/migrations/2023-05-15-142901_create_users/up.sql

12 lines
304 B
MySQL
Raw Normal View History

2023-05-15 17:38:13 +02:00
-- Your SQL goes here
CREATE TABLE users (
2023-05-16 15:47:13 +02:00
id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
discord_id UNSIGNED BIG INT NOT NULL,
guild_id UNSIGNED BIG INT NOT NULL,
2023-05-15 17:38:13 +02:00
email TEXT UNIQUE NOT NULL,
first_name TEXT NOT NULL,
2023-05-16 15:47:13 +02:00
last_name TEXT NOT NULL,
UNIQUE(discord_id, guild_id)
2023-05-15 17:38:13 +02:00
);