package models

import "time"

type ReportType struct {
	ID uint `gorm:"primaryKey;autoIncrement" json:"id"`
	ReportImage string `gorm:"column:reportImage;type:varchar(255);not null" json:"reportImage"`
	Title string `gorm:"column:title;type:varchar(255);not null" json:"title"`
	Description *string `gorm:"column:description;type:longtext" json:"description,omitempty"`
	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,omitempty"`
	UpdatedAt *time.Time `gorm:"column:updated_at" json:"updated_at,omitempty"`
}

func (ReportType) TableName() string {
	return "report_types"
}