api-platform/internal/entity/PromoCode.go

17 lines
402 B
Go
Raw Normal View History

2024-11-23 17:28:44 +00:00
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"`
}