Files
TakuyaYagam1 13f936bee9 chore: import MCTF services
- Added all seven issued service trees without omissions.
- Preserved the supplied runtime configuration, binaries, and assets.
2026-11-29 12:25:29 +03:00

13 lines
518 B
SQL
Executable File

create schema if not exists chat;
create table if not exists chat.check_session (
id uuid primary key default gen_random_uuid(),
reading_id bigint not null references billing.reading (id) on delete cascade,
round integer not null default 1 check (round between 1 and 10),
challenge integer check (challenge between 0 and 2),
data text[],
complete boolean not null default false
);
create index if not exists check_session_reading_idx on chat.check_session (reading_id);