@zodic/shared 0.0.355 → 0.0.357

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.
@@ -5,7 +5,7 @@ import { buildLLMMessages } from '../../utils/buildMessages';
5
5
  import { Api } from '../api';
6
6
 
7
7
  export class AppContext {
8
- private _drizzle?: ReturnType<typeof drizzle>;
8
+ private _drizzle?: ReturnType<typeof drizzle<typeof schema>>;
9
9
 
10
10
  constructor(public env: BackendBindings) {}
11
11
 
@@ -0,0 +1,16 @@
1
+ CREATE TABLE `cosmic_mirror_images` (
2
+ `id` text PRIMARY KEY NOT NULL,
3
+ `user_artifact_id` text NOT NULL,
4
+ `leonardo_id` text NOT NULL,
5
+ `url` text NOT NULL,
6
+ `width` integer NOT NULL,
7
+ `height` integer NOT NULL,
8
+ `generation_type` text NOT NULL,
9
+ `timestamp` integer NOT NULL,
10
+ `created_at` integer DEFAULT CURRENT_TIMESTAMP NOT NULL,
11
+ `updated_at` integer DEFAULT CURRENT_TIMESTAMP NOT NULL,
12
+ FOREIGN KEY (`user_artifact_id`) REFERENCES `user_artifacts`(`id`) ON UPDATE no action ON DELETE cascade
13
+ );
14
+ --> statement-breakpoint
15
+ CREATE INDEX `cosmic_mirror_images_user_artifact_idx` ON `cosmic_mirror_images` (`user_artifact_id`);--> statement-breakpoint
16
+ CREATE INDEX `cosmic_mirror_images_type_idx` ON `cosmic_mirror_images` (`generation_type`);