Skip to content

Commit

Permalink
fix(Localization): change model relation
Browse files Browse the repository at this point in the history
  • Loading branch information
nampdn committed May 11, 2019
1 parent 8abadf5 commit 852318b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions datamodel.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -117,15 +117,15 @@ enum LanguageCode {
EN
}

type TranslationText {
type Translation {
id: ID! @id
lang: LanguageCode!
text: String!
localization: Internationalization! @relation(name: "LocalizationTranslation")
localization: Localization! @relation(name: "LocalizationTranslation")
}

type Internationalization {
type Localization {
id: ID! @id
key: String! @unique
translationTexts: [TranslationText!]! @relation(link: "TABLE", name: "InternationalizationTranslation")
translations: [TranslationText!]! @relation(link: "TABLE", name: "LocalizationTranslation")
}

0 comments on commit 852318b

Please sign in to comment.