feat: add annotation types management system
- 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
This commit is contained in:
parent
50229e2ccf
commit
974d9f5598
13 changed files with 942 additions and 79 deletions
12
drizzle/0001_sticky_shinko_yamashiro.sql
Normal file
12
drizzle/0001_sticky_shinko_yamashiro.sql
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
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`);
|
||||
Loading…
Add table
Add a link
Reference in a new issue