The Docker build was failing because drizzle/ was in .gitignore, so migration files (meta/_journal.json) were never committed. Generated initial migration from schema. Co-authored-by: Shelley <shelley@exe.dev>
19 lines
No EOL
533 B
SQL
19 lines
No EOL
533 B
SQL
CREATE TABLE `annotations` (
|
|
`id` integer PRIMARY KEY AUTOINCREMENT NOT NULL,
|
|
`timestamp` integer NOT NULL,
|
|
`label_type` text NOT NULL,
|
|
`geometry` text,
|
|
`color` text DEFAULT '#3b82f6',
|
|
`created_at` integer NOT NULL
|
|
);
|
|
--> statement-breakpoint
|
|
CREATE TABLE `candles` (
|
|
`id` integer PRIMARY KEY AUTOINCREMENT NOT NULL,
|
|
`time` integer NOT NULL,
|
|
`open` real NOT NULL,
|
|
`high` real NOT NULL,
|
|
`low` real NOT NULL,
|
|
`close` real NOT NULL
|
|
);
|
|
--> statement-breakpoint
|
|
CREATE UNIQUE INDEX `candles_time_unique` ON `candles` (`time`); |