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

0015_zippy_wallop.sql 1.1 KB

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
20
21
22
23
24
25
26
27
28
29
  1. CREATE TABLE `spans` (
  2. `id` text PRIMARY KEY NOT NULL,
  3. `trace_id` text NOT NULL,
  4. `span_id` text NOT NULL,
  5. `parent_span_id` text,
  6. `name` text NOT NULL,
  7. `start_time` integer NOT NULL,
  8. `end_time` integer,
  9. `attributes` text,
  10. `status_code` integer,
  11. `status_message` text,
  12. FOREIGN KEY (`trace_id`) REFERENCES `traces`(`trace_id`) ON UPDATE no action ON DELETE no action
  13. );
  14. --> statement-breakpoint
  15. CREATE INDEX `spans_trace_id_idx` ON `spans` (`trace_id`);--> statement-breakpoint
  16. CREATE INDEX `spans_span_id_idx` ON `spans` (`span_id`);--> statement-breakpoint
  17. CREATE TABLE `traces` (
  18. `id` text PRIMARY KEY NOT NULL,
  19. `trace_id` text NOT NULL,
  20. `evaluation_id` text NOT NULL,
  21. `test_case_id` text NOT NULL,
  22. `created_at` integer DEFAULT CURRENT_TIMESTAMP NOT NULL,
  23. `metadata` text,
  24. FOREIGN KEY (`evaluation_id`) REFERENCES `evals`(`id`) ON UPDATE no action ON DELETE no action
  25. );
  26. --> statement-breakpoint
  27. CREATE UNIQUE INDEX `traces_trace_id_unique` ON `traces` (`trace_id`);--> statement-breakpoint
  28. CREATE INDEX `traces_evaluation_idx` ON `traces` (`evaluation_id`);--> statement-breakpoint
  29. CREATE INDEX `traces_trace_id_idx` ON `traces` (`trace_id`);
Tip!

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

Comments

Loading...