Skip to content

Commit

Permalink
🗃️ rename some relations according to the pr comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Thibaud Brault committed Jun 8, 2023
1 parent 44ff092 commit e9bbb48
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions server/prisma/datamodel.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ type Flag {
type Tag {
id: ID! @unique @id

label: Subject @relation(name: "Tags", link: TABLE)
label: Subject @relation(name: "TagSubject", link: TABLE)

node: ZNode! @relation(name: "NodeTags")
user: User! @relation(name: "UserTags", link: TABLE)
Expand All @@ -81,11 +81,11 @@ type Subject {
id: ID! @unique @id

name: String!
tags: [Tag!]! @relation(name: "Tags", onDelete: CASCADE)
tags: [Tag!]! @relation(name: "TagSubject", onDelete: CASCADE)
specialists: [User!]! @relation(name: "UserSpecialties", link: TABLE)

order: Int!
category: TagCategory! @relation(name: "SubjectsCategory", link: TABLE)
category: TagCategory! @relation(name: "SubjectCategory", link: TABLE)

createdAt: DateTime! @createdAt
updatedAt: DateTime! @updatedAt
Expand All @@ -95,7 +95,7 @@ type TagCategory {
id: ID! @unique @id

name: String!
labels: [Subject!]! @relation(name: "SubjectsCategory", onDelete: CASCADE)
labels: [Subject!]! @relation(name: "SubjectCategory", onDelete: CASCADE)

order: Int!
configuration: Configuration! @relation(name: "ConfigurationTags", link: TABLE)
Expand Down

0 comments on commit e9bbb48

Please sign in to comment.