package subscribedomain

import (
	subscribeplan "legalgo-BE-go/internal/domain/subscribe_plan"
	"time"
)

type Subscribe struct {
	ID              string     `json:"id"`
	SubscribePlanID string     `json:"subscribe_plan_id"`
	StartDate       time.Time  `json:"start_date"`
	EndDate         *time.Time `json:"end_date"`
	Status          int8       `json:"status"`
	AutoRenew       bool       `json:"auto_renew"`
	UpdatedAt       time.Time  `json:"updated_at"`

	SubscribePlan subscribeplan.SubscribePlan `gorm:"foreignKey:SubscribePlanID" json:"subscribe_plan"`
}
