keyword.go 389 B

1234567891011
  1. package model
  2. import "time"
  3. type ManagedKeyword struct {
  4. ID uint `gorm:"primaryKey;autoIncrement" json:"id"`
  5. Keyword string `gorm:"uniqueIndex;size:255;not null" json:"keyword"`
  6. Category string `gorm:"size:100" json:"category"`
  7. Status string `gorm:"type:enum('active','inactive');default:'active'" json:"status"`
  8. CreatedAt time.Time `json:"created_at"`
  9. }