CREATE TABLE `chat_messages` (
	`id` integer PRIMARY KEY AUTOINCREMENT NOT NULL,
	`nickname` text(20) NOT NULL,
	`content` text NOT NULL,
	`created_at` integer DEFAULT (cast((julianday('now') - 2440587.5)*86400000 as integer)) NOT NULL,
	`client_id` text,
	`user_id` integer
);
--> statement-breakpoint
CREATE INDEX `idx_chat_msg_created` ON `chat_messages` (`created_at`);