package model

import (
	"gorm.io/plugin/soft_delete"
)

// 增值套餐
type ValueAddBundleProfile struct {
	Id                  int32   `gorm:"column:id;type:int(11);primary_key;AUTO_INCREMENT" json:"id"`
	UUID                string  `json:"uuid" gorm:"column:uuid;type:varchar(1024);comment:增值套餐UUID"`
	Num                 int32   `json:"num" gorm:"column:num;type:int;comment:视频数量"`
	OriginalPrice       float32 `json:"originalPrice" gorm:"column:original_price;type:decimal(12,2);comment:原单价"`
	DiscountPrice       float32 `json:"discountPrice" gorm:"column:discount_price;type:decimal(12,2);comment:优惠单价"`
	SavedAmount         float32 `json:"savedAmount" gorm:"column:saved_amount;type:decimal(12,2);comment:节省金额"`
	TotalPrice          float32 `json:"totalPrice" gorm:"column:total_price;type:decimal(12,2);comment:套餐总价"`
	DiscountPriceStatus bool    `json:"discountPriceStatus" gorm:"column:discount_price_status;default:false;comment:优惠单价状态(true:等于 false:约等于)"`
	Choose              bool    `json:"choose" gorm:"column:choose;default:false;comment:可选条数(true:可以 false:不可以)"`
	Type                int32   `json:"type" gorm:"column:type;type:int;comment:类型 1:固定套餐 2:自定义套餐"`
	CreatedAt           int64   `gorm:"column:created_at;autoCreateTime"`
	UpdatedAt           int32   `gorm:"column:updated_at;autoCreateTime"`
	DeletedAt           soft_delete.DeletedAt
}

//type ValueAddBundleRecord struct {
//	gorm.Model
//	UUID              string  `json:"uuid" gorm:"column:uuid;type:varchar(1024);comment:增值套餐UUID"`
//	OriginalPrice     float32 `json:"originalPrice" gorm:"column:original_price;type:decimal(12,2);comment:原单价"`
//	ValueAddBundleNum int     `json:"valueAddBundleNum" gorm:"column:value_add_bundle_num;type:int;comment:增值套餐数量"`
//	DiscountPrice     float32 `json:"discountPrice" gorm:"column:discount_price;type:decimal(12,2);comment:优惠单价"`
//	SavedAmount       float32 `json:"savedAmount" gorm:"column:saved_amount;type:decimal(12,2);comment:节省金额"`
//	TotalPrice        float32 `json:"totalPrice" gorm:"column:total_price;type:decimal(12,2);comment:增值套餐总价"`
//}