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              string            `json:"status" validate:"safe_content"`
	SubscriptionModel   SubscriptionModel `gorm:"foreignKey:SubscriptionModelID" json:"subscription_model"`
	ParentMembershipID  int64             `json:"parent_member_id" validate:"omitempty,omitnil,number"`
	SubscriptionModelID int64             `json:"subsription_model_id"`
	ID                  int64             `json:"id"`
	UserID              int64             `json:"user_id"`
}
