1
0
mirror of https://github.com/mattermost/focalboard.git synced 2024-12-18 09:35:25 +02:00
focalboard/server/model/user.go

25 lines
953 B
Go
Raw Normal View History

2020-10-28 15:35:41 +02:00
package model
type User struct {
ID string `json:"id"`
Username string `json:"username"`
Email string `json:"email"`
Password string `json:"-"`
MfaSecret string `json:"-"`
AuthService string `json:"-"`
AuthData string `json:"-"`
Props map[string]interface{} `json:"props"`
CreateAt int64 `json:"create_at,omitempty"`
UpdateAt int64 `json:"update_at,omitempty"`
DeleteAt int64 `json:"delete_at"`
}
2020-12-02 22:12:14 +02:00
type Session struct {
2020-12-04 12:28:35 +02:00
ID string `json:"id"`
Token string `json:"token"`
UserID string `json:"user_id"`
Props map[string]interface{} `json:"props"`
CreateAt int64 `json:"create_at,omitempty"`
UpdateAt int64 `json:"update_at,omitempty"`
2020-12-02 22:12:14 +02:00
}