#50 [card] pronoun cards - db schema
This commit is contained in:
parent
bc6bc2695f
commit
5de503c8cd
|
@ -0,0 +1,21 @@
|
|||
-- Up
|
||||
|
||||
CREATE TABLE profiles (
|
||||
id TEXT NOT NULL PRIMARY KEY,
|
||||
userId TEXT NOT NULL,
|
||||
locale TEXT NOT NULL,
|
||||
names TEXT NOT NULL,
|
||||
pronouns TEXT NOT NULL,
|
||||
description TEXT NOT NULL,
|
||||
birthday TEXT,
|
||||
links TEXT NOT NULL,
|
||||
flags TEXT NOT NULL,
|
||||
words TEXT NOT NULL,
|
||||
active INTEGER NOT NULL,
|
||||
FOREIGN KEY(userId) REFERENCES users(id),
|
||||
UNIQUE ("userId", "locale")
|
||||
);
|
||||
|
||||
-- Down
|
||||
|
||||
DROP TABLE "profiles";
|
Reference in New Issue