// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.

package model

import (
	"time"
)

const TableNameChannel = "channels"

// Channel mapped from table <channels>
type Channel struct {
	ID        int64        `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
	Name      string       `gorm:"column:name;not null" json:"name"`
	Flag      string       `gorm:"column:flag;not null" json:"flag"`
	State     ChannelState `gorm:"column:state;not null" json:"state"`
	CreatedAt time.Time    `gorm:"column:created_at;not null" json:"created_at"`
	UpdatedAt time.Time    `gorm:"column:updated_at;not null" json:"updated_at"`
}

// TableName Channel's table name
func (*Channel) TableName() string {
	return TableNameChannel
}
