Skip to content

Commit 6dcaa34

Browse files
committed
fix: add subject ID length to group setting schema instead
1 parent 7e27538 commit 6dcaa34

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/api/prisma/schema.prisma

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ type GroupSettings {
6868
defaultIdentificationMethod SubjectIdentificationMethod
6969
idValidationRegex String?
7070
idValidationRegexErrorMessage ErrorMessage?
71+
subjectIdDisplayLength Int?
7172
}
7273

7374
model Group {
@@ -82,8 +83,7 @@ model Group {
8283
settings GroupSettings
8384
sessions Session[]
8485
subjects Subject[] @relation(fields: [subjectIds], references: [id])
85-
subjectIds String[]
86-
subjectDisplayLength String?
86+
subjectIds String[]
8787
type GroupType
8888
userIds String[] @db.ObjectId
8989
users User[] @relation(fields: [userIds], references: [id])

0 commit comments

Comments
 (0)