type
Database Table
title
messages
description
One turn — user or assistant — inside a thread. The transcript is ours, not the agent's.
tags
data, chat, context
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 messages (
	id          INTEGER PRIMARY KEY AUTOINCREMENT,
	session_key TEXT NOT NULL,
	role        TEXT NOT NULL,
	content     TEXT NOT NULL,
	created_at  TEXT NOT NULL
);

Semantics

Ordering

id ascending is chronological for a thread; created_at exists for display and for the "when" label, not for ordering.

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