enhance(charge):服务延期记录序号改为自增长。

This commit is contained in:
徐涛
2022-08-15 18:31:55 +08:00
parent 0d8a743283
commit d1806d8cc6
2 changed files with 15 additions and 16 deletions

View File

@@ -8,7 +8,7 @@ import (
type UserCharge struct {
Created `xorm:"extends"`
Seq int64 `xorm:"bigint pk not null" json:"seq"`
Seq int64 `xorm:"bigint pk not null autoincr" json:"seq"`
UserId string `xorm:"varchar(120) not null" json:"userId"`
Fee decimal.NullDecimal `xorm:"numeric(12,2)" json:"fee"`
Discount decimal.NullDecimal `xorm:"numeric(5,4)" json:"discount"`