18 lines
673 B
Go
18 lines
673 B
Go
|
|
package models
|
|||
|
|
|
|||
|
|
import (
|
|||
|
|
"git.apinb.com/bsm-sdk/core/database"
|
|||
|
|
"time"
|
|||
|
|
)
|
|||
|
|
|
|||
|
|
// FinReconciliation 对应 fin_reconciliation,保存渠道对账记录。
|
|||
|
|
type FinReconciliation struct {
|
|||
|
|
Entity
|
|||
|
|
Channel string `gorm:"column:channel;type:varchar(32);not null;index" json:"channel"`
|
|||
|
|
BillDate time.Time `gorm:"column:bill_date;type:date;not null" json:"bill_date"`
|
|||
|
|
DifferenceAmount int64 `gorm:"column:difference_amount;not null;default:0" json:"difference_amount"`
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
func init() { database.AppendMigrate(&FinReconciliation{}) }
|
|||
|
|
func (table *FinReconciliation) TableName() string { return "fin_reconciliation" }
|