photoprism/file.go

18 lines
336 B
Go
Raw Normal View History

2018-07-18 15:17:56 +02:00
package photoprism
import (
"github.com/jinzhu/gorm"
)
type File struct {
gorm.Model
2018-08-07 20:17:14 +02:00
PhotoID uint
Filename string
FileType string `gorm:"type:varchar(30)"`
MimeType string `gorm:"type:varchar(50)"`
Width int
Height int
AspectRatio float64
Hash string `gorm:"type:varchar(100);unique_index"`
2018-07-18 15:17:56 +02:00
}