seed.go 440 B

123456789101112
  1. package model
  2. import "time"
  3. type ManagedSeed struct {
  4. ID uint `gorm:"primaryKey;autoIncrement" json:"id"`
  5. ChannelName string `gorm:"uniqueIndex;size:255;not null" json:"channel_name"`
  6. Status string `gorm:"type:enum('active','inactive');default:'active'" json:"status"`
  7. Note string `gorm:"size:500" json:"note"`
  8. CreatedAt time.Time `json:"created_at"`
  9. UpdatedAt time.Time `json:"updated_at"`
  10. }