Skip to content

Commit

Permalink
attempt to fix db
Browse files Browse the repository at this point in the history
  • Loading branch information
emilwidlund committed May 21, 2024
1 parent b7413d1 commit 82b3d59
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/web/prisma/migrations/20240521103532_clear/migration.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-- CreateSchema
CREATE SCHEMA IF NOT EXISTS "auth";
9 changes: 9 additions & 0 deletions apps/web/prisma/schema.prisma
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
generator client {
provider = "prisma-client-js"
previewFeatures = ["multiSchema"]
}

datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
schemas = ["auth", "public"]
}

model Connection {
Expand All @@ -15,6 +17,7 @@ model Connection {
to Input @relation(fields: [toId], references: [id], onDelete: Cascade)
@@map("connections")
@@schema("public")
}

model NodePosition {
Expand All @@ -24,6 +27,7 @@ model NodePosition {
node Node @relation(fields: [nodeId], references: [id], onDelete: Cascade)
@@map("node_positions")
@@schema("public")
}

model Node {
Expand All @@ -42,6 +46,7 @@ model Node {
outputs Output[]
@@map("nodes")
@@schema("public")
}

model Input {
Expand All @@ -55,6 +60,7 @@ model Input {
node Node? @relation(fields: [nodeId], references: [id], onDelete: Cascade)
@@map("inputs")
@@schema("public")
}

model Output {
Expand All @@ -67,6 +73,7 @@ model Output {
node Node? @relation(fields: [nodeId], references: [id], onDelete: Cascade)
@@map("outputs")
@@schema("public")
}

enum NodeType {
Expand Down Expand Up @@ -122,4 +129,6 @@ enum NodeType {
RENDERER_3D
OSCILLATOR
IMAGE_EDIT_AI
@@schema("public")
}

0 comments on commit 82b3d59

Please sign in to comment.