// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.

package model

import (
	"time"
)

const TableNameDouyinProductRewards = "douyin_product_rewards"

// DouyinProductRewards 抖店商品奖励规则
type DouyinProductRewards struct {
	ID            int64     `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
	ProductID     string    `gorm:"column:product_id;not null;comment:抖店商品ID" json:"product_id"`          // 抖店商品ID
	ProductName   string    `gorm:"column:product_name;not null;comment:商品名称" json:"product_name"`        // 商品名称
	ActivityID    int64     `gorm:"column:activity_id;comment:关联直播活动ID" json:"activity_id"`               // 关联直播活动ID (可选)
	RewardType    string    `gorm:"column:reward_type;not null;comment:奖励类型" json:"reward_type"`          // 奖励类型
	RewardPayload string    `gorm:"column:reward_payload;comment:奖励参数JSON" json:"reward_payload"`         // 奖励参数JSON
	Quantity      int32     `gorm:"column:quantity;not null;default:1;comment:发放数量" json:"quantity"`      // 发放数量
	Status        int32     `gorm:"column:status;not null;default:1;comment:状态: 1=启用 0=禁用" json:"status"` // 状态: 1=启用 0=禁用
	CreatedAt     time.Time `gorm:"column:created_at;default:CURRENT_TIMESTAMP(3)" json:"created_at"`
	UpdatedAt     time.Time `gorm:"column:updated_at;default:CURRENT_TIMESTAMP(3)" json:"updated_at"`
}

// TableName DouyinProductRewards's table name
func (*DouyinProductRewards) TableName() string {
	return TableNameDouyinProductRewards
}
