Fix issue creating syndicates, accepted should not be set when creating.

This commit is contained in:
2025-04-04 11:10:15 +01:00
parent 02300c69d8
commit 292db01011
2 changed files with 4 additions and 4 deletions

View File

@@ -192,7 +192,7 @@ CREATE TABLE IF NOT EXISTS syndicate_members (
syndicate_id INTEGER NOT NULL,
user_id INTEGER NOT NULL,
role TEXT DEFAULT 'member', -- owner, manager, member
status TEXT DEFAULT 'active', -- pending, accepted, kicked
status TEXT DEFAULT 'active',
joined_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
FOREIGN KEY (syndicate_id) REFERENCES syndicates(id),
FOREIGN KEY (user_id) REFERENCES users(id)
@@ -204,7 +204,7 @@ CREATE TABLE IF NOT EXISTS syndicate_invites (
syndicate_id INTEGER NOT NULL,
invited_user_id INTEGER NOT NULL,
sent_by_user_id INTEGER NOT NULL,
status TEXT DEFAULT 'pending', -- 'pending', 'accepted', 'declined'
status TEXT DEFAULT 'pending',
created_at DATETIME DEFAULT CURRENT_TIMESTAMP,
FOREIGN KEY(syndicate_id) REFERENCES syndicates(id),
FOREIGN KEY(invited_user_id) REFERENCES users(id)