mirror of
https://github.com/photoprism/photoprism.git
synced 2025-10-05 16:57:17 +08:00
55 lines
978 B
Go
55 lines
978 B
Go
package entity
|
|
|
|
import (
|
|
"github.com/photoprism/photoprism/pkg/media"
|
|
)
|
|
|
|
// Defaults.
|
|
const (
|
|
Unknown = ""
|
|
UnknownTitle = ""
|
|
UnknownYear = -1
|
|
UnknownMonth = -1
|
|
UnknownDay = -1
|
|
UnknownID = "zz"
|
|
UnknownSlug = "-"
|
|
)
|
|
|
|
// Media types.
|
|
const (
|
|
MediaUnknown = ""
|
|
MediaAnimated = string(media.Animated)
|
|
MediaAudio = string(media.Audio)
|
|
MediaDocument = string(media.Document)
|
|
MediaImage = string(media.Image)
|
|
MediaLive = string(media.Live)
|
|
MediaRaw = string(media.Raw)
|
|
MediaSidecar = string(media.Sidecar)
|
|
MediaVector = string(media.Vector)
|
|
MediaVideo = string(media.Video)
|
|
)
|
|
|
|
// Base folders.
|
|
const (
|
|
RootUnknown = ""
|
|
RootOriginals = "/"
|
|
RootExamples = "examples"
|
|
RootSidecar = "sidecar"
|
|
RootImport = "import"
|
|
RootPath = "/"
|
|
)
|
|
|
|
// Event types.
|
|
const (
|
|
Created = "created"
|
|
Updated = "updated"
|
|
Deleted = "deleted"
|
|
)
|
|
|
|
// Stacking states.
|
|
const (
|
|
IsStacked int8 = 1
|
|
IsStackable int8 = 0
|
|
IsUnstacked int8 = -1
|
|
)
|