package models

import "time"

type AstrotalkInNews struct {
	ID uint `gorm:"primaryKey;autoIncrement" json:"id"`
	NewsDate time.Time `gorm:"column:newsDate;type:datetime;not null" json:"newsDate"`
	Channel string `gorm:"column:channel;type:varchar(255);not null" json:"channel"`
	Link string `gorm:"column:link;type:varchar(255);not null" json:"link"`
	BannerImage string `gorm:"column:bannerImage;type:varchar(255);not null" json:"bannerImage"`
	Description string `gorm:"column:description;type:longtext;not null" json:"description"`
	IsActive bool `gorm:"column:isActive;default:true" json:"isActive"`
	IsDelete bool `gorm:"column:isDelete;default:false" json:"isDelete"`
	CreatedAt *time.Time `gorm:"column:created_at" json:"created_at"`
	UpdatedAt *time.Time `gorm:"column:updated_at" json:"updated_at"`
	CreatedBy int `gorm:"column:createdBy;not null" json:"createdBy"`
	ModifiedBy int `gorm:"column:modifiedBy;not null" json:"modifiedBy"`
}

func (AstrotalkInNews) TableName() string {
	return "astrotalk_in_news"
}