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.
 
 
 
 

9 lines
332 B

CREATE TABLE `ideas` (
`id` integer PRIMARY KEY AUTOINCREMENT NOT NULL,
`author` text(30) NOT NULL,
`content` text NOT NULL,
`color` text(30),
`created_at` integer DEFAULT (cast((julianday('now') - 2440587.5)*86400000 as integer)) NOT NULL
);
--> statement-breakpoint
CREATE INDEX `idx_idea_created` ON `ideas` (`created_at`);