package models import ( "time" ) type SubscriptionModel struct { ID uint `json:"id" gorm:"primaryKey"` CreatedAt time.Time UpdatedAt time.Time Name string `gorm:"uniqueIndex:idx_subscriptions_name" json:"name" binding:"required,safe_content"` Details string `json:"details" binding:"safe_content"` Conditions string `json:"conditions" binding:"safe_content"` RequiredMembershipField string `json:"required_membership_field" binding:"safe_content"` MonthlyFee float32 `json:"monthly_fee"` HourlyRate float32 `json:"hourly_rate"` IncludedPerYear int16 `json:"included_hours_per_year"` IncludedPerMonth int16 `json:"included_hours_per_month"` }