package subscribeplandomain

import "time"

type SubscribePlan struct {
	ID        string    `json:"id"`
	Code      string    `json:"code"`
	Name      string    `json:"name"`
	Length    int       `json:"length"`
	Price     float32   `json:"price"`
	Status    int8      `json:"status"`
	CreatedAt time.Time `json:"created_at"`
	UpdatedAt time.Time `json:"updated_at"`
}

type SubscribePlanUpdate struct {
	Code      string    `json:"code" validate:"required"`
	Name      string    `json:"name" validate:"required"`
	Length    int       `json:"length"`
	Price     float32   `json:"price"`
	Status    int8      `json:"status"`
	UpdatedAt time.Time `json:"updated_at"`
}

type SubscribePlanReq struct {
	Code   string  `json:"code" validate:"required"`
	Name   string  `json:"name" validate:"required"`
	Status int8    `json:"status"`
	Length int     `json:"length"`
	Price  float32 `json:"price"`
}
