Skip to content

Commit

Permalink
update: prisma schema file
Browse files Browse the repository at this point in the history
  • Loading branch information
siwonpada committed Dec 30, 2024
1 parent a4f8cff commit c86bef9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ ENV TZ=Asia/Seoul
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && \
apk update && \
apk add build-base libheif vips-dev vips -q && \
apk add --no-cache openssl-1.1
apk add --no-cache openssl

COPY --from=builder /app ./

Expand Down
15 changes: 8 additions & 7 deletions prisma/schema.prisma
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
generator client {
provider = "prisma-client-js"
provider = "prisma-client-js"
binaryTargets = ["native", "linux-musl-openssl-3.0.x"]
}

generator dbml {
Expand Down Expand Up @@ -106,12 +107,12 @@ model Group {
}

model UserGroup {
userUuid String @map("user_uuid") @db.Uuid
User User @relation(fields: [userUuid], references: [uuid])
groupUuid String @map("group_uuid") @db.Uuid
Group Group @relation(fields: [groupUuid], references: [uuid], onDelete: Cascade)
createdAt DateTime @default(now()) @map("created_at")
visibility Visibility @map("visibility") @default(Private)
userUuid String @map("user_uuid") @db.Uuid
User User @relation(fields: [userUuid], references: [uuid])
groupUuid String @map("group_uuid") @db.Uuid
Group Group @relation(fields: [groupUuid], references: [uuid], onDelete: Cascade)
createdAt DateTime @default(now()) @map("created_at")
visibility Visibility @default(Private) @map("visibility")
@@id([userUuid, groupUuid])
@@map("user_group")
Expand Down

0 comments on commit c86bef9

Please sign in to comment.