mirror of
https://github.com/harness/drone.git
synced 2025-05-17 09:30:00 +08:00
Update user.go
fix migration database issue using zeroisnull
This commit is contained in:
parent
64aeeff3ae
commit
452beba83d
@ -20,7 +20,7 @@ type User struct {
|
|||||||
Created int64 `meddler:"user_created" json:"created_at"`
|
Created int64 `meddler:"user_created" json:"created_at"`
|
||||||
Updated int64 `meddler:"user_updated" json:"updated_at"`
|
Updated int64 `meddler:"user_updated" json:"updated_at"`
|
||||||
Synced int64 `meddler:"user_synced" json:"synced_at"`
|
Synced int64 `meddler:"user_synced" json:"synced_at"`
|
||||||
TokenExpiry int64 `meddler:"user_access_expires" json:"-"`
|
TokenExpiry int64 `meddler:"user_access_expires,zeroisnull" json:"-"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewUser(remote, login, email string) *User {
|
func NewUser(remote, login, email string) *User {
|
||||||
|
Loading…
Reference in New Issue
Block a user