@zodic/shared 0.0.290 → 0.0.292
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
CREATE TABLE `archetypes_data` (
|
|
2
|
+
`id` text PRIMARY KEY NOT NULL,
|
|
3
|
+
`language` text NOT NULL,
|
|
4
|
+
`gender` text,
|
|
5
|
+
`combination` text NOT NULL,
|
|
6
|
+
`archetype_index` text NOT NULL,
|
|
7
|
+
`name` text NOT NULL,
|
|
8
|
+
`essence_line` text NOT NULL,
|
|
9
|
+
`description` text NOT NULL,
|
|
10
|
+
`content` text DEFAULT '[]' NOT NULL,
|
|
11
|
+
`virtues` text DEFAULT '[]' NOT NULL,
|
|
12
|
+
`leonardo_prompt` text,
|
|
13
|
+
`status` text DEFAULT 'idle',
|
|
14
|
+
`created_at` integer DEFAULT CURRENT_TIMESTAMP,
|
|
15
|
+
`updated_at` integer DEFAULT CURRENT_TIMESTAMP
|
|
16
|
+
);
|
|
17
|
+
--> statement-breakpoint
|
|
18
|
+
CREATE INDEX `archetypes_data_language_idx` ON `archetypes_data` (`language`);--> statement-breakpoint
|
|
19
|
+
CREATE INDEX `archetypes_data_combination_idx` ON `archetypes_data` (`combination`);--> statement-breakpoint
|
|
20
|
+
CREATE INDEX `archetypes_data_archetype_index_idx` ON `archetypes_data` (`archetype_index`);--> statement-breakpoint
|
|
21
|
+
CREATE INDEX `archetypes_data_gender_idx` ON `archetypes_data` (`gender`);--> statement-breakpoint
|
|
22
|
+
ALTER TABLE `user_artifacts` ADD `archetype_data_id` text REFERENCES archetypes_data(id);--> statement-breakpoint
|
|
23
|
+
CREATE INDEX `user_artifacts_archetype_data_id_idx` ON `user_artifacts` (`archetype_data_id`);
|