#50 [card] pronoun cards - db schema

This commit is contained in:
Avris 2020-10-16 14:43:47 +02:00
parent bc6bc2695f
commit 5de503c8cd
1 changed files with 21 additions and 0 deletions

View File

@ -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";