channel.go 670 B

1234567891011121314151617
  1. package main
  2. import "time"
  3. type SemChannel struct {
  4. CreatedAt time.Time `gorm:"column:created_at" json:"created_at" db:"created_at"`
  5. UpdatedAt time.Time `gorm:"column:updated_at" json:"updated_at" db:"updated_at"`
  6. DeletedAt time.Time `gorm:"column:deleted_at" json:"deleted_at" db:"deleted_at"`
  7. ID int `gorm:"column:id;primary_key" json:"id" db:"id"`
  8. ChannelName string `gorm:"column:channel_name" json:"channel_name" db:"channel_name"`
  9. Status int `gorm:"column:status" json:"status" db:"status"`
  10. }
  11. // TableName sets the insert table name for this struct type
  12. func (s *SemChannel) TableName() string {
  13. return "sem_channel"
  14. }