2020-04-18 23:20:54 +02:00
|
|
|
package entity
|
|
|
|
|
2020-05-14 11:57:26 +02:00
|
|
|
import "github.com/photoprism/photoprism/internal/classify"
|
|
|
|
|
2020-04-18 23:20:54 +02:00
|
|
|
const (
|
2020-06-09 10:51:22 +02:00
|
|
|
// Data sources.
|
2020-04-19 01:13:55 +02:00
|
|
|
SrcAuto = ""
|
|
|
|
SrcManual = "manual"
|
2020-05-26 19:27:29 +02:00
|
|
|
SrcEstimate = "estimate"
|
2020-05-20 15:10:24 +02:00
|
|
|
SrcName = "name"
|
2020-05-14 11:57:26 +02:00
|
|
|
SrcMeta = "meta"
|
2020-04-19 01:13:55 +02:00
|
|
|
SrcXmp = "xmp"
|
2020-05-19 09:21:10 +02:00
|
|
|
SrcYaml = "yaml"
|
2020-05-14 11:57:26 +02:00
|
|
|
SrcLocation = classify.SrcLocation
|
|
|
|
SrcImage = classify.SrcImage
|
2020-04-20 12:53:58 +02:00
|
|
|
|
2020-06-09 10:51:22 +02:00
|
|
|
// Sort orders.
|
2020-04-20 12:53:58 +02:00
|
|
|
SortOrderRelevance = "relevance"
|
|
|
|
SortOrderNewest = "newest"
|
|
|
|
SortOrderOldest = "oldest"
|
|
|
|
SortOrderImported = "imported"
|
|
|
|
SortOrderSimilar = "similar"
|
2020-05-22 16:29:12 +02:00
|
|
|
SortOrderName = "name"
|
2020-05-15 15:29:56 +02:00
|
|
|
|
2020-06-09 10:51:22 +02:00
|
|
|
// Unknown values.
|
2020-05-15 15:29:56 +02:00
|
|
|
YearUnknown = -1
|
|
|
|
MonthUnknown = -1
|
|
|
|
TitleUnknown = "Unknown"
|
2020-05-21 10:03:56 +02:00
|
|
|
|
2020-06-09 10:51:22 +02:00
|
|
|
// Content types.
|
|
|
|
TypeDefault = ""
|
|
|
|
TypeImage = "image"
|
|
|
|
TypeLive = "live"
|
|
|
|
TypeVideo = "video"
|
|
|
|
TypeRaw = "raw"
|
|
|
|
TypeText = "text"
|
2020-05-24 22:16:06 +02:00
|
|
|
|
2020-06-09 10:51:22 +02:00
|
|
|
// Root directories.
|
2020-06-07 10:09:35 +02:00
|
|
|
RootOriginals = ""
|
|
|
|
RootExamples = "examples"
|
|
|
|
RootSidecar = "sidecar"
|
|
|
|
RootImport = "import"
|
|
|
|
RootPath = "/"
|
2020-06-01 09:45:24 +02:00
|
|
|
|
2020-06-09 10:51:22 +02:00
|
|
|
// Event names.
|
2020-06-01 09:45:24 +02:00
|
|
|
Updated = "updated"
|
|
|
|
Created = "created"
|
|
|
|
Deleted = "deleted"
|
2020-04-18 23:20:54 +02:00
|
|
|
)
|