- Created annotation_types table with name, display_name, color, category, icon - Implemented CRUD API endpoints for annotation types management - Built annotation types management UI page at /annotation-types - Updated Toolbox component to dynamically load and display annotation types - Updated CandleChart component to use dynamic annotation types for markers - Added seed functionality for default types (break_up, break_down, line) - Cleaned up duplicate migration files
12 lines
No EOL
385 B
SQL
12 lines
No EOL
385 B
SQL
CREATE TABLE `annotation_types` (
|
|
`id` integer PRIMARY KEY AUTOINCREMENT NOT NULL,
|
|
`name` text NOT NULL,
|
|
`display_name` text NOT NULL,
|
|
`color` text NOT NULL,
|
|
`category` text NOT NULL,
|
|
`icon` text,
|
|
`is_active` integer DEFAULT 1 NOT NULL,
|
|
`created_at` integer NOT NULL
|
|
);
|
|
--> statement-breakpoint
|
|
CREATE UNIQUE INDEX `annotation_types_name_unique` ON `annotation_types` (`name`); |