feat(qa): add synthesis conversations with source retention (#52)
This commit is contained in:
@ -0,0 +1,9 @@
|
||||
-- Admission history intentionally survives conversation/source deletion. It
|
||||
-- contains opaque identifiers and timestamps only, never questions or answers.
|
||||
CREATE TABLE summary_qa_provider_calls (
|
||||
user_id UUID NOT NULL REFERENCES users(id) ON DELETE CASCADE,
|
||||
turn_id UUID NOT NULL,
|
||||
started_at TIMESTAMPTZ NOT NULL,
|
||||
PRIMARY KEY(user_id,turn_id)
|
||||
);
|
||||
CREATE INDEX summary_qa_provider_calls_window_idx ON summary_qa_provider_calls(user_id,started_at DESC);
|
||||
Reference in New Issue
Block a user