jaecoo-be/app/database/entity/gallery_files.entity.go

17 lines
545 B
Go
Raw Permalink Normal View History

2025-11-15 17:43:23 +00:00
package entity
import (
"time"
)
type GalleryFiles struct {
ID uint `json:"id" gorm:"primaryKey;type:int4;autoIncrement"`
GalleryID uint `json:"gallery_id" gorm:"type:int4"`
Title *string `json:"title" gorm:"type:varchar"`
ImagePath *string `json:"image_path" 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()"`
}