Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

chore: drop unused example table (#1490)

Marc Klingen6d3f1cf6c14f
diff --git a/packages/shared/prisma/generated/types.ts b/packages/shared/prisma/generated/types.ts
index d0758fc315..0ee238dd87 100644
--- a/packages/shared/prisma/generated/types.ts
+++ b/packages/shared/prisma/generated/types.ts
@@ -134,11 +134,6 @@ export type Events = {
url: string | null;
method: string | null;
};
-export type Example = {
- id: string;
- created_at: Generated<Timestamp>;
- updated_at: Timestamp;
-};
export type Membership = {
project_id: string;
user_id: string;
@@ -327,7 +322,6 @@ export type DB = {
dataset_runs: DatasetRuns;
datasets: Dataset;
events: Events;
- Example: Example;
membership_invitations: MembershipInvitation;
memberships: Membership;
models: Model;
diff --git a/packages/shared/prisma/migrations/20240325211959_remove_example_table/migration.sql b/packages/shared/prisma/migrations/20240325211959_remove_example_table/migration.sql
new file mode 100644
index 0000000000..cf93cd3749
--- /dev/null
+++ b/packages/shared/prisma/migrations/20240325211959_remove_example_table/migration.sql
@@ -0,0 +1,8 @@
+/*
+ Warnings:
+
+ - You are about to drop the `Example` table. If the table is not empty, all the data it contains will be lost.
+
+*/
+-- DropTable
+DROP TABLE "Example";
diff --git a/packages/shared/prisma/schema.prisma b/packages/shared/prisma/schema.prisma
index 9521ec40cb..db9595f134 100644
--- a/packages/shared/prisma/schema.prisma
+++ b/packages/shared/prisma/schema.prisma
@@ -32,12 +32,6 @@ generator kysely {
// enumFileName = "enums.ts"
}
-model Example {
- id String @id @default(cuid())
- createdAt DateTime @default(now()) @map("created_at")
- updatedAt DateTime @updatedAt @map("updated_at")
-}
-
// Necessary for Next auth
model Account {
id String @id @default(cuid())