@zodic/shared 0.0.250 → 0.0.251

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,28 @@
1
+ CREATE TABLE `astro_description_templates` (
2
+ `id` text PRIMARY KEY NOT NULL,
3
+ `entity_type` text NOT NULL,
4
+ `name` text NOT NULL,
5
+ `en_name` text,
6
+ `pt_name` text,
7
+ `en_description` text NOT NULL,
8
+ `pt_description` text NOT NULL,
9
+ `created_at` integer DEFAULT CURRENT_TIMESTAMP,
10
+ `updated_at` integer DEFAULT CURRENT_TIMESTAMP
11
+ );
12
+ --> statement-breakpoint
13
+ CREATE INDEX `astro_description_templates_type_name_idx` ON `astro_description_templates` (`entity_type`,`name`);--> statement-breakpoint
14
+ ALTER TABLE `aspect_reports` ADD `description_template_id` text REFERENCES astro_description_templates(id);--> statement-breakpoint
15
+ CREATE INDEX `aspect_reports_description_template_idx` ON `aspect_reports` (`description_template_id`);--> statement-breakpoint
16
+ ALTER TABLE `aspect_reports` DROP COLUMN `en_description`;--> statement-breakpoint
17
+ ALTER TABLE `aspect_reports` DROP COLUMN `pt_description`;--> statement-breakpoint
18
+ ALTER TABLE `astro_feature_reports` ADD `description_template_id` text REFERENCES astro_description_templates(id);--> statement-breakpoint
19
+ CREATE INDEX `astro_feature_reports_description_template_idx` ON `astro_feature_reports` (`description_template_id`);--> statement-breakpoint
20
+ ALTER TABLE `astro_feature_reports` DROP COLUMN `en_description`;--> statement-breakpoint
21
+ ALTER TABLE `astro_feature_reports` DROP COLUMN `pt_description`;--> statement-breakpoint
22
+ ALTER TABLE `astro_reports` ADD `description_template_id` text REFERENCES astro_description_templates(id);--> statement-breakpoint
23
+ ALTER TABLE `astro_reports` DROP COLUMN `en_description`;--> statement-breakpoint
24
+ ALTER TABLE `astro_reports` DROP COLUMN `pt_description`;--> statement-breakpoint
25
+ ALTER TABLE `house_reports` ADD `description_template_id` text REFERENCES astro_description_templates(id);--> statement-breakpoint
26
+ CREATE INDEX `house_reports_description_template_idx` ON `house_reports` (`description_template_id`);--> statement-breakpoint
27
+ ALTER TABLE `house_reports` DROP COLUMN `en_description`;--> statement-breakpoint
28
+ ALTER TABLE `house_reports` DROP COLUMN `pt_description`;