feat: expand profiles and weapon configuration
Validate and deploy production / validate (push) Successful in 26s
Validate and deploy staging / validate (push) Successful in 25s
Validate and deploy production / deploy (push) Failing after 1m10s
Validate and deploy staging / deploy (push) Failing after 8s

This commit is contained in:
JB
2026-07-28 00:11:40 -04:00
parent 0b3be3587b
commit a434cbe60c
37 changed files with 2209 additions and 800 deletions
+14 -5
View File
@@ -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,