19 lines
363 B
Go
19 lines
363 B
Go
package models
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/google/uuid"
|
|
"gorm.io/gorm"
|
|
)
|
|
|
|
type File struct {
|
|
ID uuid.UUID `gorm:"primarykey" json:"id"`
|
|
Filename string
|
|
ContentType string
|
|
Size int
|
|
QuestID uuid.UUID
|
|
CreatedAt time.Time `json:"-"`
|
|
UpdatedAt time.Time `json:"-"`
|
|
DeletedAt gorm.DeletedAt `gorm:"index" json:"-"`
|
|
}
|