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

18 lines
619 B
Go
Raw Normal View History

2025-11-15 17:43:23 +00:00
package entity
import (
"time"
)
type Galleries struct {
ID uint `json:"id" gorm:"primaryKey;type:int4;autoIncrement"`
Title string `json:"title" gorm:"type:varchar"`
Description *string `json:"description" gorm:"type:text"`
ThumbnailPath *string `json:"thumbnail_path" gorm:"type:varchar"`
2026-01-20 01:08:14 +00:00
StatusId *int `json:"status_id" gorm:"type:int4;default:1"`
2025-11-15 17:43:23 +00:00
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()"`
}