package entities import ( "time" "github.com/google/uuid" ) type RepositoryAttachment struct { ID uuid.UUID `gorm:"type:uuid;primary_key;default:gen_random_uuid()" json:"id"` FileURL string `gorm:"not null" json:"file_url"` FileName string `gorm:"not null" json:"file_name"` FileType string `gorm:"not null" json:"file_type"` Category string `gorm:"not null" json:"category"` UploadedBy *uuid.UUID `json:"uploaded_by,omitempty"` UploadedAt time.Time `gorm:"autoCreateTime" json:"uploaded_at"` } func (RepositoryAttachment) TableName() string { return "repository_attachments" }