- Миграция на монорепозиторий (apps/frontend, apps/chat-service, etc.) - Discover: проверка SearxNG, понятное empty state при ненастроенном поиске - searxng.ts: валидация URL, проверка JSON-ответа, авто-добавление http:// - docker/searxng-config: настройки для JSON API SearxNG Co-authored-by: Cursor <cursoragent@cursor.com>
17 lines
394 B
SQL
17 lines
394 B
SQL
CREATE TABLE IF NOT EXISTS `chats` (
|
|
`id` text PRIMARY KEY NOT NULL,
|
|
`title` text NOT NULL,
|
|
`createdAt` text NOT NULL,
|
|
`focusMode` text NOT NULL,
|
|
`files` text DEFAULT '[]'
|
|
);
|
|
--> statement-breakpoint
|
|
CREATE TABLE IF NOT EXISTS `messages` (
|
|
`id` integer PRIMARY KEY NOT NULL,
|
|
`content` text NOT NULL,
|
|
`chatId` text NOT NULL,
|
|
`messageId` text NOT NULL,
|
|
`type` text,
|
|
`metadata` text
|
|
);
|