type
Database Table
title
chat_sessions
description
One conversation, owned by exactly one user; the unit of the thread rail and of context packing.
tags
data, chat
status
stable
generated
crm-bot/deepseek-v4.1-flash · Fri Oct 30 2026 10:53:57 GMT+0100 (Central European Standard Time)
verified
process:ddl-introspection · Fri Oct 30 2026 10:53:57 GMT+0100 (Central European Standard Time)

Schema

CREATE TABLE chat_sessions (
	id         TEXT PRIMARY KEY,
	user_id    INTEGER NOT NULL REFERENCES users(id) ON DELETE CASCADE,
	title      TEXT NOT NULL DEFAULT 'New chat',
	created_at TEXT NOT NULL,
	updated_at TEXT NOT NULL,
	archived   INTEGER NOT NULL DEFAULT 0
);

Semantics

Invariants

Rendered from nx-master/data-model/chat_sessions.md · OKF bundle · regenerate with npm run render