type
Database Table
title
users
description
The allowlist — one row per person permitted to sign in, carrying their role.
tags
data, auth, roles
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

Read from the live database, not from a migration file:

CREATE TABLE users (
	id          INTEGER PRIMARY KEY AUTOINCREMENT,
	provider    TEXT NOT NULL DEFAULT 'github',
	provider_id TEXT NOT NULL DEFAULT '',
	login       TEXT NOT NULL,
	email       TEXT NOT NULL DEFAULT '',
	name        TEXT NOT NULL DEFAULT '',
	avatar_url  TEXT NOT NULL DEFAULT '',
	role        TEXT NOT NULL DEFAULT 'member',
	created_at  TEXT NOT NULL,
	last_login  TEXT NOT NULL DEFAULT '',
	UNIQUE(provider, login)
);

Semantics

Roles

Role May
master everything, including user administration
admin user administration
member CRM data and chat
bot the machine principal for MCP calls; cannot be granted by an agent

Invariants

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