mirror of
https://github.com/Dictionarry-Hub/schema.git
synced 2026-05-03 18:24:17 +02:00
working progress
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
CREATE TABLE profiles (
|
||||
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
name TEXT NOT NULL UNIQUE,
|
||||
description TEXT
|
||||
);
|
||||
|
||||
CREATE TABLE profile_items (
|
||||
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
profile_id INTEGER NOT NULL,
|
||||
quality_name TEXT NOT NULL,
|
||||
allowed BOOLEAN NOT NULL DEFAULT 1,
|
||||
position INTEGER NOT NULL,
|
||||
FOREIGN KEY (profile_id) REFERENCES profiles(id) ON DELETE CASCADE,
|
||||
UNIQUE(profile_id, quality_name)
|
||||
);
|
||||
Reference in New Issue
Block a user