Make user avatar field nullable.

This commit is contained in:
Kailash Nadh 2024-05-30 23:38:14 +05:30
parent 4997c10b97
commit 313b2af6cf

View file

@ -158,7 +158,7 @@ type User struct {
Name string `db:"name" json:"name"`
Type string `db:"type" json:"type"`
Status string `db:"status" json:"status"`
Avatar string `db:"-" json:"avatar"`
Avatar null.String `db:"-" json:"avatar"`
Permissions map[string]struct{} `db:"-" json:"-"`
LoggedInAt null.Time `db:"loggedin_at" json:"loggedin_at"`