Skip to content

Commit

Permalink
fix prisma schema validation
Browse files Browse the repository at this point in the history
  • Loading branch information
ykaiboussiSO committed Jan 15, 2025
1 parent 8655b68 commit 75a4906
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions cmd/e2e/prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,24 @@ model domain_collection_results {
updated_at DateTime? @db.Timestamptz(6)
}

/// This table is a partition table and requires additional setup for migrations. Visit https://pris.ly/d/partition-tables for more info.
model edge {
id BigInt @default(autoincrement())
graph_id BigInt
start_id BigInt
end_id BigInt
kind_id Int @db.SmallInt
properties Json
graph graph @relation(fields: [graph_id], references: [id], onDelete: Cascade, onUpdate: NoAction)
@@id([id, graph_id])
@@unique([graph_id, start_id, end_id, kind_id])
@@index([end_id], map: "edge_end_id_index")
@@index([graph_id], map: "edge_graph_id_index")
@@index([kind_id], map: "edge_kind_index")
@@index([start_id], map: "edge_start_id_index")
}

model feature_flags {
id Int @id @default(autoincrement())
created_at DateTime? @db.Timestamptz(6)
Expand Down Expand Up @@ -312,6 +330,13 @@ model file_upload_jobs {
@@index([updated_at], map: "idx_file_upload_jobs_updated_at")
}

model graph {
id BigInt @id @default(autoincrement())
name String @unique @db.VarChar(256)
edge edge[]
node node[]
}

model ingest_tasks {
file_name String?
request_guid String?
Expand All @@ -330,6 +355,11 @@ model installations {
updated_at DateTime? @db.Timestamptz(6)
}

model kind {
id Int @id @default(autoincrement()) @db.SmallInt
name String @unique @db.VarChar(256)
}

model migrations {
id Int @id @default(autoincrement())
updated_at DateTime? @db.Timestamptz(6)
Expand All @@ -338,6 +368,19 @@ model migrations {
patch Int?
}

/// This table is a partition table and requires additional setup for migrations. Visit https://pris.ly/d/partition-tables for more info.
model node {
id BigInt @default(autoincrement())
graph_id BigInt
kind_ids Int[] @db.SmallInt
properties Json
graph graph @relation(fields: [graph_id], references: [id], onDelete: Cascade, onUpdate: NoAction)
@@id([id, graph_id])
@@index([graph_id], map: "node_graph_id_index")
@@index([kind_ids], map: "node_kind_ids_index", type: Gin)
}

model oidc_providers {
id Int @id @default(autoincrement())
client_id String
Expand Down

0 comments on commit 75a4906

Please sign in to comment.