photoprism/internal/entity/entity_const.go
Michael Mayer 604849e92c Search: Include RAW files in results by default #2040
With these changes the size and type of the RAW file as well as other
details can be displayed in the Cards View. This also improves the
indexing of camera and lens metadata.

Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-10-06 02:22:48 +02:00

52 lines
877 B
Go

package entity
import (
"github.com/photoprism/photoprism/pkg/media"
)
// Defaults.
const (
Unknown = ""
UnknownYear = -1
UnknownMonth = -1
UnknownDay = -1
UnknownName = "Unknown"
UnknownTitle = UnknownName
UnknownID = "zz"
)
// Media types.
const (
MediaUnknown = ""
MediaImage = string(media.Image)
MediaRaw = string(media.Raw)
MediaAnimated = string(media.Animated)
MediaLive = string(media.Live)
MediaVideo = string(media.Video)
MediaVector = string(media.Vector)
)
// 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
)