@zodic/shared 0.0.24 → 0.0.25
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,15 @@
|
|
|
1
|
+
CREATE TABLE `astro_aspects` (
|
|
2
|
+
`id` text PRIMARY KEY NOT NULL,
|
|
3
|
+
`user_id` text NOT NULL,
|
|
4
|
+
`aspecting_planet` text NOT NULL,
|
|
5
|
+
`aspected_planet` text NOT NULL,
|
|
6
|
+
`aspecting_planet_id` integer NOT NULL,
|
|
7
|
+
`aspected_planet_id` integer NOT NULL,
|
|
8
|
+
`type` text NOT NULL,
|
|
9
|
+
`orb` real NOT NULL,
|
|
10
|
+
`diff` real NOT NULL,
|
|
11
|
+
`created_at` integer DEFAULT CURRENT_TIMESTAMP,
|
|
12
|
+
FOREIGN KEY (`user_id`) REFERENCES `users`(`id`) ON UPDATE no action ON DELETE cascade
|
|
13
|
+
);
|
|
14
|
+
--> statement-breakpoint
|
|
15
|
+
CREATE INDEX `astro_aspects_user_id_idx` ON `astro_aspects` (`user_id`);
|