refactor(model):调整数据结构中的微小整型类型。
This commit is contained in:
parent
279fb32f4d
commit
f45716d941
|
@ -10,7 +10,7 @@ type Report struct {
|
||||||
Period time.Time `xorm:"date not null" json:"period"`
|
Period time.Time `xorm:"date not null" json:"period"`
|
||||||
Published bool `xorm:"bool not null default false" json:"published"`
|
Published bool `xorm:"bool not null default false" json:"published"`
|
||||||
PublishedAt *time.Time `xorm:"timestampz" json:"publishedAt"`
|
PublishedAt *time.Time `xorm:"timestampz" json:"publishedAt"`
|
||||||
Withdraw byte `xorm:"smallint not null default 0" json:"withdraw"`
|
Withdraw int8 `xorm:"smallint not null default 0" json:"withdraw"`
|
||||||
LastWithdrawAppliedAt *time.Time `xorm:"timestampz" json:"lastWithdrawAppliedAt"`
|
LastWithdrawAppliedAt *time.Time `xorm:"timestampz" json:"lastWithdrawAppliedAt"`
|
||||||
LastWithdrawAuditAt *time.Time `xorm:"timestampz" json:"lastWithdrawAuditAt"`
|
LastWithdrawAuditAt *time.Time `xorm:"timestampz" json:"lastWithdrawAuditAt"`
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,7 +6,7 @@ type User struct {
|
||||||
Username string `xorm:"varchar(30) not null" json:"username"`
|
Username string `xorm:"varchar(30) not null" json:"username"`
|
||||||
Password string `xorm:"varchar(120) not null" json:"-"`
|
Password string `xorm:"varchar(120) not null" json:"-"`
|
||||||
ResetNeeded bool `xorm:"bool not null" json:"resetNeeded"`
|
ResetNeeded bool `xorm:"bool not null" json:"resetNeeded"`
|
||||||
Type byte `xorm:"smallint not null" json:"type"`
|
Type int8 `xorm:"smallint not null" json:"type"`
|
||||||
Enabled bool `xorm:"bool not null" json:"enabled"`
|
Enabled bool `xorm:"bool not null" json:"enabled"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user