package entity type Peer struct { Name *string `gorm:"column:name;default:''" json:"name"` Remark *string `gorm:"column:remark;default:''" json:"remark"` AuthId *string `gorm:"column:auth_id;default:''" json:"authId"` SecretDigest *string `gorm:"column:secret_digest;default:''" json:"secretDigest"` SecretEncrypted *string `gorm:"column:secret_ciphertext;default:''" json:"-"` QuotaBytes *int64 `gorm:"column:quota_bytes;default:0" json:"quotaBytes"` DownloadBytes *int64 `gorm:"column:download_bytes;default:0" json:"downloadBytes"` UploadBytes *int64 `gorm:"column:upload_bytes;default:0" json:"uploadBytes"` ExpiresAt *int64 `gorm:"column:expires_at;default:0" json:"expiresAt"` MaxDevices *int64 `gorm:"column:max_devices;default:3" json:"maxDevices"` Disabled *int64 `gorm:"column:disabled;default:0" json:"disabled"` BannedUntil *int64 `gorm:"column:banned_until;default:0" json:"bannedUntil"` LastConnectionAt *int64 `gorm:"column:last_connection_at;default:0" json:"lastConnectionAt"` BaseEntity `gorm:"embedded"` } func (Peer) TableName() string { return "peer" }