mirror of
https://gitee.com/gokins/gokins.git
synced 2024-12-01 18:58:35 +08:00
18 lines
587 B
Go
18 lines
587 B
Go
package model
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
type TUser struct {
|
|
Id string `xorm:"not null pk VARCHAR(64)" json:"id"`
|
|
Aid int64 `xorm:"not null pk autoincr BIGINT(20)" json:"aid"`
|
|
Name string `xorm:"VARCHAR(100)" json:"name"`
|
|
Pass string `xorm:"VARCHAR(255)" json:"pass"`
|
|
Nick string `xorm:"VARCHAR(100)" json:"nick"`
|
|
Avatar string `xorm:"VARCHAR(500)" json:"avatar"`
|
|
Created time.Time `xorm:"DATETIME" json:"created"`
|
|
LoginTime time.Time `xorm:"DATETIME" json:"loginTime"`
|
|
Active int `xorm:"default 0 INT(1)" json:"active"`
|
|
}
|