38 lines
1.3 KiB
Go
38 lines
1.3 KiB
Go
package model
|
|
|
|
import "time"
|
|
|
|
// DouyinRewardLogs 抖店发奖日志
|
|
// 手动维护的模型,未通过 gorm gen 生成
|
|
// Table name: douyin_reward_logs
|
|
// Columns:
|
|
// - id BIGINT PK
|
|
// - shop_order_id VARCHAR
|
|
// - douyin_user_id VARCHAR
|
|
// - local_user_id BIGINT
|
|
// - douyin_product_id VARCHAR
|
|
// - prize_id BIGINT
|
|
// - source VARCHAR
|
|
// - status VARCHAR
|
|
// - message VARCHAR
|
|
// - extra JSON
|
|
// - created_at DATETIME
|
|
|
|
type DouyinRewardLogs struct {
|
|
ID int64 `gorm:"column:id;primaryKey;autoIncrement" json:"id"`
|
|
ShopOrderID string `gorm:"column:shop_order_id" json:"shop_order_id"`
|
|
DouyinUserID string `gorm:"column:douyin_user_id" json:"douyin_user_id"`
|
|
LocalUserID int64 `gorm:"column:local_user_id" json:"local_user_id"`
|
|
DouyinProductID string `gorm:"column:douyin_product_id" json:"douyin_product_id"`
|
|
PrizeID int64 `gorm:"column:prize_id" json:"prize_id"`
|
|
Source string `gorm:"column:source" json:"source"`
|
|
Status string `gorm:"column:status" json:"status"`
|
|
Message string `gorm:"column:message" json:"message"`
|
|
Extra string `gorm:"column:extra" json:"extra"`
|
|
CreatedAt time.Time `gorm:"column:created_at" json:"created_at"`
|
|
}
|
|
|
|
func (*DouyinRewardLogs) TableName() string {
|
|
return "douyin_reward_logs"
|
|
}
|