You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

10 lines
373 B

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`);