Paul Pan
d42ee0ce54
1. merge woj-runner scripts into woj-server 2. add woj-runner app 3. refactor submission status problem ... 4. jwt middleware update Co-authored-by: cxy004 <cxy004@qq.com> Co-authored-by: wzt <w.zhongtao@qq.com>
15 lines
383 B
Go
15 lines
383 B
Go
package model
|
|
|
|
import (
|
|
"gorm.io/gorm"
|
|
)
|
|
|
|
type User struct {
|
|
gorm.Model `json:"meta"`
|
|
UserName string `json:"user_name" gorm:"not null;uniqueIndex"`
|
|
NickName string `json:"nick_name" gorm:"not null"`
|
|
Role Role `json:"role" gorm:"not null"`
|
|
Password []byte `json:"-" gorm:"not null"`
|
|
IsEnabled bool `json:"is_enabled" gorm:"not null;index"`
|
|
}
|