Skip to content

Commit 07ff7b7

Browse files
Merge pull request #58 from NYCU-SDC/chore/CORE-161-description-of-username-and-name
[CORE-161] Change Description Of Name And Username
2 parents 9124430 + 2f86b49 commit 07ff7b7

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/user/models.tsp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,13 @@ namespace CoreSystem.User {
77
@doc("The user's unique identifier.")
88
id: uuid;
99

10+
@minLength(4)
11+
@maxLength(15)
12+
@pattern("^\\w+$")
1013
@doc("The user's username, can change, but must be unique across the system.")
1114
username: string;
1215

13-
@minLength(4)
1416
@maxLength(15)
15-
@pattern("^\\w+$")
1617
@doc("The user's nickname.")
1718
name: string;
1819

@@ -24,6 +25,9 @@ namespace CoreSystem.User {
2425

2526
@doc("Global role of the user.")
2627
roles: Role[];
28+
29+
@doc("The user is onboareded or not")
30+
is_onboarded: boolean;
2731
}
2832

2933
model OnboardingRequest {

0 commit comments

Comments
 (0)