Skip to content

Commit 8abadf5

Browse files
committed
feat(Internationalization): add type model
1 parent 74e469a commit 8abadf5

File tree

3 files changed

+1107
-0
lines changed

3 files changed

+1107
-0
lines changed

datamodel.prisma

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,3 +111,21 @@ type ActivityAttendance {
111111
updatedAt: DateTime! @updatedAt
112112
createdAt: DateTime! @createdAt
113113
}
114+
115+
enum LanguageCode {
116+
VI,
117+
EN
118+
}
119+
120+
type TranslationText {
121+
id: ID! @id
122+
lang: LanguageCode!
123+
text: String!
124+
localization: Internationalization! @relation(name: "LocalizationTranslation")
125+
}
126+
127+
type Internationalization {
128+
id: ID! @id
129+
key: String! @unique
130+
translationTexts: [TranslationText!]! @relation(link: "TABLE", name: "InternationalizationTranslation")
131+
}

0 commit comments

Comments
 (0)