File tree 3 files changed +693
-131
lines changed 3 files changed +693
-131
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ type User {
12
12
type Profile {
13
13
id : ID ! @id
14
14
oldId : ID ! @unique
15
- fullName : String !
15
+ fullName : String !
16
16
gender : Boolean !
17
17
email : String
18
18
facebookId : String
@@ -112,20 +112,22 @@ type ActivityAttendance {
112
112
createdAt : DateTime ! @createdAt
113
113
}
114
114
115
- enum LanguageCode {
116
- VI ,
117
- EN
115
+ type Language {
116
+ id : ID ! @id
117
+ code : String ! @unique
118
+ name : String !
119
+ translation : [Translation!] @relation (name : " TranslationLanguage " )
118
120
}
119
121
120
122
type Translation {
121
- id : ID ! @id
122
- lang : LanguageCode !
123
- text : String !
124
- localization : Localization ! @relation (name : " LocalizationTranslation " )
123
+ id : ID ! @id
124
+ text : String !
125
+ language : Language @relation ( link : TABLE , name : " TranslationLanguage " )
126
+ localization : Localization @relation (link : TABLE , name : " TranslationLocalization " )
125
127
}
126
128
127
129
type Localization {
128
- id : ID ! @id
129
- key : String ! @unique
130
- translations : [Translation!]! @relation (link : " TABLE " , name : " LocalizationTranslation " )
131
- }
130
+ id : ID ! @id
131
+ key : String ! @unique
132
+ translations : [Translation!] @relation (name : " TranslationLocalization " )
133
+ }
You can’t perform that action at this time.
0 commit comments