diff --git a/model/report.go b/model/report.go index 3a47c13..192dd99 100644 --- a/model/report.go +++ b/model/report.go @@ -10,7 +10,7 @@ type Report struct { Period time.Time `xorm:"date not null" json:"period"` Published bool `xorm:"bool not null default false" json:"published"` 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"` LastWithdrawAuditAt *time.Time `xorm:"timestampz" json:"lastWithdrawAuditAt"` } diff --git a/model/user.go b/model/user.go index 4328ce7..6436146 100644 --- a/model/user.go +++ b/model/user.go @@ -6,7 +6,7 @@ type User struct { Username string `xorm:"varchar(30) not null" json:"username"` Password string `xorm:"varchar(120) not null" json:"-"` 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"` }