package model import "time" type License struct { Base ShopID uint64 `gorm:"not null;index" json:"shop_id"` LicenseKey string `gorm:"size:255;uniqueIndex" json:"license_key"` DeviceID string `gorm:"size:255" json:"device_id"` Type string `gorm:"type:enum('trial','monthly','annual','lifetime');default:'trial'" json:"type"` ExpiresAt *time.Time `json:"expires_at"` IsActive bool `gorm:"default:true" json:"is_active"` Features JSON `gorm:"type:json" json:"features,omitempty"` ActivatedAt *time.Time `json:"activated_at"` }