package models

import "time"

type Membership struct {
	CreatedAt           time.Time
	UpdatedAt           time.Time
	StartDate           time.Time         `json:"start_date"`
	EndDate             time.Time         `json:"end_date"`
	Status              int8              `json:"status" binding:"number,safe_content"`
	SubscriptionModel   SubscriptionModel `gorm:"foreignKey:SubscriptionModelID" json:"subscription_model"`
	SubscriptionModelID uint              `json:"subsription_model_id"`
	ParentMembershipID  uint              `json:"parent_member_id" binding:"omitempty,omitnil,number"`
	ID                  uint              `json:"id"`
}
