| 123456789101112131415161718192021222324252627282930313233 |
- package model
- import (
- "time"
- "gorm.io/datatypes"
- )
- // MerchantArchived stores archived merchants.
- type MerchantArchived struct {
- ID uint `gorm:"primaryKey;autoIncrement" json:"id"`
- OriginalID uint `json:"original_id"`
- TgUsername string `gorm:"size:255;index" json:"tg_username"`
- TgLink string `gorm:"size:500" json:"tg_link"`
- MerchantName string `gorm:"size:500" json:"merchant_name"`
- Website string `gorm:"size:2048" json:"website"`
- Email string `gorm:"size:255" json:"email"`
- Phone string `gorm:"size:100" json:"phone"`
- SourceCount int `gorm:"default:1" json:"source_count"`
- AllSources datatypes.JSON `gorm:"type:json" json:"all_sources"`
- IndustryTag string `gorm:"size:100" json:"industry_tag"`
- Level string `gorm:"size:10" json:"level"`
- Status string `gorm:"size:20" json:"status"`
- FollowStatus string `gorm:"size:20" json:"follow_status"`
- AssignedTo string `gorm:"size:50" json:"assigned_to"`
- Remark string `gorm:"type:text" json:"remark"`
- IsAlive bool `json:"is_alive"`
- ArchiveReason string `gorm:"size:100" json:"archive_reason"`
- ArchivedAt time.Time `gorm:"index" json:"archived_at"`
- CreatedAt time.Time `json:"created_at"`
- }
- func (MerchantArchived) TableName() string { return "merchants_archived" }
|