api-platform/internal/entity/PromoCode.go
2024-11-24 01:28:44 +08:00

17 lines
402 B
Go

package entity
import (
"gorm.io/gorm"
"time"
)
type PromoCode struct {
Model
Code string `json:"code"`
DiscountType string `json:"discount_type"`
DiscountValue float64 `json:"discount_value"`
ExpirationDate *time.Time `json:"expiration_date"`
IsActive bool `json:"is_active"`
DeletedAt *gorm.DeletedAt `json:"deleted_at"`
}