package entity

import (
	"time"
)

type AiChatFiles struct {
	ID            uint       `json:"id" gorm:"primaryKey;type:int4;autoIncrement"`
	MessageId     uint       `json:"message_id" gorm:"type:int4"`
	UploadID      *string    `json:"upload_id" gorm:"type:varchar"`
	Type		  string 	 `json:"type" gorm:"type:varchar"`
	FilePath      *string    `json:"file_path" gorm:"type:varchar"`
	FileUrl       *string    `json:"file_url" gorm:"type:varchar"`
	FileName      *string    `json:"file_name" gorm:"type:varchar"`
	FileThumbnail *string    `json:"file_thumbnail" gorm:"type:varchar"`
	FileAlt       *string    `json:"file_alt" gorm:"type:varchar"`	
	Size          *string    `json:"size" gorm:"type:varchar"`
	FileType	  *string    `json:"file_type" gorm:"type:varchar"`
	IsActive      bool       `json:"is_active" gorm:"type:bool;default:true"`
	CreatedAt     time.Time  `json:"created_at" gorm:"default:now()"`
	UpdatedAt     time.Time  `json:"updated_at" gorm:"default:now()"`
}
