package models

import "time"

type Banner struct {
	ID           uint      `gorm:"primaryKey" json:"id"`
	BannerImage  string    `json:"bannerImage"`
	FromDate     time.Time `json:"fromDate"`
	ToDate       time.Time `json:"toDate"`
	BannerTypeID uint      `json:"bannerTypeId"`
	IsActive     bool      `json:"isActive"`
	IsDelete     bool      `json:"isDelete"`
	CreatedBy    uint      `json:"createdBy"`
	ModifiedBy   uint      `json:"modifiedBy"`
	CreatedAt     time.Time `gorm:"column:created_at" json:"createdAt"`
	UpdatedAt     time.Time `gorm:"column:updated_at" json:"updatedAt"`
	BannerType string `gorm:"-" json:"bannerType"`
}

func (Banner) TableName() string {
	return "banners"
}