Very large changes related to database and its interface

This commit is contained in:
Imbus 2024-03-20 21:51:36 +01:00
parent a51d984229
commit ec138163c6
5 changed files with 179 additions and 148 deletions

View file

@ -14,9 +14,12 @@ type NewProject struct {
Description string `json:"description"`
}
// Used to change the role of a user in a project.
// If name is identical to the name contained in the token, the role can be changed.
// If the name is different, only a project manager can change the role.
type RoleChange struct {
UserName string `json:"username"`
Role string `json:"role" tstype:"'project_manager' | 'user'"`
Username string `json:"username"`
Projectname string `json:"projectname"`
}