14 lines
413 B
SQL
14 lines
413 B
SQL
CREATE TABLE memory_facts (
|
|
id SERIAL PRIMARY KEY,
|
|
user_id INTEGER NOT NULL REFERENCES users(id),
|
|
content TEXT NOT NULL,
|
|
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
|
|
);
|
|
|
|
CREATE TABLE conversation_summaries (
|
|
conversation_id INTEGER PRIMARY KEY REFERENCES conversations(id),
|
|
summary TEXT NOT NULL,
|
|
embedding vector(768) NOT NULL,
|
|
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
|
|
);
|