Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

0004_minor_peter_quill.sql 839 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
  1. CREATE TABLE `evals_to_tags` (
  2. `eval_id` text NOT NULL,
  3. `tag_id` text NOT NULL,
  4. PRIMARY KEY(`eval_id`, `tag_id`),
  5. FOREIGN KEY (`eval_id`) REFERENCES `evals`(`id`) ON UPDATE no action ON DELETE no action,
  6. FOREIGN KEY (`tag_id`) REFERENCES `tags`(`id`) ON UPDATE no action ON DELETE no action
  7. );
  8. --> statement-breakpoint
  9. CREATE TABLE `tags` (
  10. `id` text PRIMARY KEY NOT NULL,
  11. `name` text NOT NULL,
  12. `value` text NOT NULL
  13. );
  14. --> statement-breakpoint
  15. DROP INDEX IF EXISTS `evals_tags_idx`;--> statement-breakpoint
  16. CREATE INDEX `evals_to_tags_eval_id_idx` ON `evals_to_tags` (`eval_id`);--> statement-breakpoint
  17. CREATE INDEX `evals_to_tags_tag_id_idx` ON `evals_to_tags` (`tag_id`);--> statement-breakpoint
  18. CREATE UNIQUE INDEX `tags_name_unique` ON `tags` (`name`);--> statement-breakpoint
  19. CREATE INDEX `tags_name_idx` ON `tags` (`name`);
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...