Files
tap/drizzle/0000_curvy_paibok.sql
T

9 lines
287 B
SQL
Raw Normal View History

CREATE TABLE `demands` (
`id` text PRIMARY KEY NOT NULL,
`owner_id` text NOT NULL,
`payload` text NOT NULL,
`revision` integer DEFAULT 1 NOT NULL,
`updated_at` text NOT NULL
);
--> statement-breakpoint
CREATE INDEX `idx_demands_owner_updated` ON `demands` (`owner_id`,`updated_at`);