merchant_raw.go 890 B

123456789101112131415161718
  1. package model
  2. import "time"
  3. type MerchantRaw struct {
  4. ID uint `gorm:"primaryKey;autoIncrement" json:"id"`
  5. MerchantName string `gorm:"size:500" json:"merchant_name"`
  6. TgUsername string `gorm:"size:255;index" json:"tg_username"`
  7. Website string `gorm:"size:2048" json:"website"`
  8. Email string `gorm:"size:255" json:"email"`
  9. Phone string `gorm:"size:100" json:"phone"`
  10. Industry string `gorm:"size:100" json:"industry"`
  11. SourceType string `gorm:"type:enum('tg_scrape','web_crawl','github');not null" json:"source_type"`
  12. SourceID string `gorm:"size:500" json:"source_id"`
  13. OriginalMessage string `gorm:"type:text" json:"original_message"`
  14. Status string `gorm:"type:enum('raw','glm_parsed');default:'raw';index" json:"status"`
  15. CreatedAt time.Time `json:"created_at"`
  16. }