Spaces:
Sleeping
Sleeping
Download drizzle/0002_simple_reavers.sql from CosmicMagnetar/opentriage-api: direct link, hf CLI and curl.
- Browser
- Download file 819 Bytes
-
https://huggingface.co/spaces/CosmicMagnetar/opentriage-api/resolve/main/drizzle/0002_simple_reavers.sql
- Command line
-
hf download hf://spaces/CosmicMagnetar/opentriage-api/drizzle/0002_simple_reavers.sql
-
curl -L -o 0002_simple_reavers.sql https://huggingface.co/spaces/CosmicMagnetar/opentriage-api/resolve/main/drizzle/0002_simple_reavers.sql
819 Bytes
| CREATE TABLE `private_resources` ( | |
| `id` text PRIMARY KEY NOT NULL, | |
| `issue_id` text NOT NULL, | |
| `repo_owner` text NOT NULL, | |
| `pr_author` text NOT NULL, | |
| `resource_type` text NOT NULL, | |
| `title` text NOT NULL, | |
| `content` text NOT NULL, | |
| `description` text, | |
| `language` text, | |
| `shared_by` text NOT NULL, | |
| `shared_by_id` text NOT NULL, | |
| `created_at` text NOT NULL, | |
| `updated_at` text NOT NULL, | |
| FOREIGN KEY (`issue_id`) REFERENCES `issues`(`id`) ON UPDATE no action ON DELETE cascade, | |
| FOREIGN KEY (`shared_by_id`) REFERENCES `users`(`id`) ON UPDATE no action ON DELETE no action | |
| ); | |
| --> statement-breakpoint | |
| ALTER TABLE `repositories` ADD `added_by_user` integer DEFAULT false;--> statement-breakpoint | |
| ALTER TABLE `repositories` ADD `etag` text;--> statement-breakpoint | |
| ALTER TABLE `repositories` ADD `last_synced_at` text; |