feat: expand profiles and weapon configuration
This commit is contained in:
+14
-5
@@ -164,6 +164,14 @@ CREATE TABLE IF NOT EXISTS comments (
|
||||
);
|
||||
CREATE INDEX IF NOT EXISTS comments_thread_status_created_idx ON comments(thread_id, status, created_at DESC);
|
||||
CREATE INDEX IF NOT EXISTS comments_author_status_created_idx ON comments(author_id, status, created_at DESC);
|
||||
CREATE TABLE IF NOT EXISTS comment_thread_follows (
|
||||
user_id TEXT NOT NULL REFERENCES users(id) ON DELETE CASCADE,
|
||||
root_comment_id TEXT NOT NULL REFERENCES comments(id) ON DELETE CASCADE,
|
||||
created_at TEXT NOT NULL,
|
||||
PRIMARY KEY(user_id, root_comment_id)
|
||||
);
|
||||
CREATE INDEX IF NOT EXISTS comment_thread_follows_root_idx
|
||||
ON comment_thread_follows(root_comment_id, user_id);
|
||||
CREATE TABLE IF NOT EXISTS community_moderation_settings (
|
||||
id TEXT PRIMARY KEY CHECK(id='primary'),
|
||||
automated_enabled INTEGER NOT NULL DEFAULT 0 CHECK(automated_enabled IN (0,1)),
|
||||
@@ -859,14 +867,15 @@ CREATE TABLE IF NOT EXISTS weapon_augmentation_effects (
|
||||
UNIQUE(weapon_id, sort_order),
|
||||
UNIQUE(weapon_id, stat_attribute_id)
|
||||
);
|
||||
CREATE TABLE IF NOT EXISTS weapon_base_attribute_bonuses (
|
||||
CREATE TABLE IF NOT EXISTS weapon_category_attribute_bonuses (
|
||||
id TEXT PRIMARY KEY,
|
||||
weapon_id TEXT NOT NULL REFERENCES weapons(id) ON DELETE CASCADE,
|
||||
weapon_category TEXT NOT NULL CHECK(weapon_category IN ('Shotgun','Rifle','MMR','AR','LMG','SMG')),
|
||||
stat_attribute_id TEXT NOT NULL REFERENCES stat_attributes(id),
|
||||
value REAL NOT NULL CHECK(value > 0),
|
||||
sort_order INTEGER NOT NULL CHECK(sort_order >= 1),
|
||||
UNIQUE(weapon_id, stat_attribute_id),
|
||||
UNIQUE(weapon_id, sort_order)
|
||||
sort_order INTEGER NOT NULL CHECK(sort_order BETWEEN 1 AND 3),
|
||||
updated_at TEXT NOT NULL,
|
||||
UNIQUE(weapon_category, stat_attribute_id),
|
||||
UNIQUE(weapon_category, sort_order)
|
||||
);
|
||||
CREATE TABLE IF NOT EXISTS os_protocols (
|
||||
id TEXT PRIMARY KEY,
|
||||
|
||||
Reference in New Issue
Block a user