feat: able to set initial quota for new user (close #22)

This commit is contained in:
JustSong
2023-04-26 21:40:56 +08:00
parent 8c305dc1bc
commit b9cc5dfa3f
6 changed files with 59 additions and 1 deletions

View File

@@ -25,6 +25,7 @@ func createRootAccountIfNeed() error {
Role: common.RoleRootUser,
Status: common.UserStatusEnabled,
DisplayName: "Root User",
AccessToken: common.GetUUID(),
}
DB.Create(&rootUser)
}