Customisations for nico.

This commit is contained in:
2026-09-15 19:40:13 +10:00
parent d4440a4eea
commit 78c77afe88
4 changed files with 28 additions and 5 deletions
+5 -3
View File
@@ -14,6 +14,7 @@ class UserAuth(RowModel):
_timestamp TIMESTAMPTZ NOT NULL DEFAULT NOW()
);
"""
_schema_ = 'nico'
_tablename_ = 'user_auth'
_cache_ = {}
@@ -36,6 +37,7 @@ class BotChannel(RowModel):
_timestamp TIMESTAMPTZ NOT NULL DEFAULT NOW()
);
"""
_schema_ = 'nico'
_tablename_ = 'bot_channels'
_cache_ = {}
@@ -73,10 +75,10 @@ class BotData(Registry):
bot_channels = BotChannel.table
"""
CREATE TABLE user_auth_scopes(
userid TEXT NOT NULL REFERENCES user_auth(userid) ON DELETE CASCADE,
CREATE TABLE nico_user_auth_scopes(
userid TEXT NOT NULL REFERENCES nico.user_auth(userid) ON DELETE CASCADE,
scope TEXT NOT NULL
);
"""
user_auth_scopes = Table('user_auth_scopes')
user_auth_scopes = Table('user_auth_scopes', schema='nico')