2024-01-20 21:37:49 +03:00
|
|
|
package models
|
|
|
|
|
2024-01-28 22:19:41 +03:00
|
|
|
import (
|
|
|
|
"time"
|
|
|
|
|
|
|
|
"github.com/google/uuid"
|
|
|
|
"gorm.io/gorm"
|
|
|
|
)
|
2024-01-20 21:37:49 +03:00
|
|
|
|
2024-01-28 22:19:41 +03:00
|
|
|
type File struct {
|
|
|
|
ID uuid.UUID `gorm:"primarykey" json:"id"`
|
2024-01-20 21:37:49 +03:00
|
|
|
Filename string
|
|
|
|
ContentType string
|
|
|
|
Size int
|
2024-04-29 23:01:24 +03:00
|
|
|
QuestID uuid.UUID
|
2024-01-28 22:19:41 +03:00
|
|
|
CreatedAt time.Time `json:"-"`
|
|
|
|
UpdatedAt time.Time `json:"-"`
|
|
|
|
DeletedAt gorm.DeletedAt `gorm:"index" json:"-"`
|
2024-01-20 21:37:49 +03:00
|
|
|
}
|