Files
TREK/server/src/db/kysely/AssistantThreads.table.ts
T
Maurice 51ed038374 feat(assistant): a chat can be about a journey and its book
Threads carry a journey scope next to the trip scope, with journey rights
(outsider 404, viewers without write tools, addon off), its own routes and a
book context, and the client keys chats by trip or journey.
2026-10-22 21:34:15 +00:00

14 lines
477 B
TypeScript

// Generated by scripts/generate-db-types.ts from the migrated schema. Do not edit by hand:
// change the migration, then run `npm run gen:db-types`.
import type { InsertOptional } from './columns';
export interface AssistantThreadsTable {
id: InsertOptional<number>;
user_id: number;
trip_id: InsertOptional<number | null>;
journey_id: InsertOptional<number | null>;
title: string;
created_at: InsertOptional<string>;
last_message_at: InsertOptional<string>;
}