From 5de503c8cd8e0d8336f76e02e1290f64676ec6e3 Mon Sep 17 00:00:00 2001 From: Avris Date: Fri, 16 Oct 2020 14:43:47 +0200 Subject: [PATCH] #50 [card] pronoun cards - db schema --- migrations/004-profiles.sql | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 migrations/004-profiles.sql diff --git a/migrations/004-profiles.sql b/migrations/004-profiles.sql new file mode 100644 index 00000000..c6e7dd9e --- /dev/null +++ b/migrations/004-profiles.sql @@ -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";