keyword.go 513 B

12345678910111213
  1. package model
  2. import "time"
  3. // Keyword is the unified table for search keywords and seed channels.
  4. // Seeds use industry_tag = "seed", their keyword field holds the channel name.
  5. type Keyword struct {
  6. ID uint `gorm:"primaryKey;autoIncrement" json:"id"`
  7. Keyword string `gorm:"uniqueIndex;size:255;not null" json:"keyword"`
  8. IndustryTag string `gorm:"size:100" json:"industry_tag"`
  9. Enabled bool `gorm:"default:true" json:"enabled"`
  10. CreatedAt time.Time `json:"created_at"`
  11. }