Compare commits
No commits in common. "2d15133555106ff8f6fe311ebd6652a683267455" and "bc44d01ed4982b484e4f9fcc8867371b875e7e0e" have entirely different histories.
2d15133555
...
bc44d01ed4
2 changed files with 0 additions and 13 deletions
|
|
@ -1,13 +0,0 @@
|
|||
CREATE TABLE IF NOT EXISTS user_sessions (
|
||||
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
|
||||
user_id TEXT NOT NULL,
|
||||
bot_id TEXT NOT NULL,
|
||||
answer_mode TEXT NOT NULL DEFAULT 'direct',
|
||||
context JSONB NOT NULL DEFAULT '{}',
|
||||
current_tool TEXT,
|
||||
created_at TIMESTAMPTZ NOT NULL DEFAULT NOW(),
|
||||
updated_at TIMESTAMPTZ NOT NULL DEFAULT NOW(),
|
||||
UNIQUE(user_id, bot_id)
|
||||
);
|
||||
|
||||
CREATE INDEX IF NOT EXISTS idx_user_sessions_user_bot ON user_sessions(user_id, bot_id);
|
||||
0
test.rs
0
test.rs
Loading…
Add table
Reference in a new issue