package model import "time" // Channel stores discovered Telegram channels. type Channel struct { ID uint `gorm:"primaryKey;autoIncrement" json:"id"` Username string `gorm:"uniqueIndex;size:255;not null" json:"username"` ChannelID int64 `gorm:"default:0" json:"channel_id"` // cached TG entity ID AccessHash int64 `gorm:"default:0" json:"access_hash"` // cached TG access hash Status string `gorm:"size:20;default:'pending';index" json:"status"` // pending / scraped / failed / skipped LastMessageID int `gorm:"default:0" json:"last_message_id"` MerchantsFound int `gorm:"default:0" json:"merchants_found"` Source string `gorm:"size:50;not null;index" json:"source"` // seed / snowball / search / github CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` }