2020-04-18 23:20:54 +02:00
|
|
|
package entity
|
|
|
|
|
2022-04-15 09:42:07 +02:00
|
|
|
import (
|
|
|
|
"github.com/photoprism/photoprism/pkg/media"
|
|
|
|
)
|
2021-09-03 19:02:26 +02:00
|
|
|
|
2023-09-22 23:59:56 +02:00
|
|
|
// Defaults.
|
2020-04-18 23:20:54 +02:00
|
|
|
const (
|
2022-04-15 09:42:07 +02:00
|
|
|
Unknown = ""
|
|
|
|
UnknownYear = -1
|
|
|
|
UnknownMonth = -1
|
|
|
|
UnknownDay = -1
|
|
|
|
UnknownName = "Unknown"
|
|
|
|
UnknownTitle = UnknownName
|
|
|
|
UnknownID = "zz"
|
2021-09-03 19:02:26 +02:00
|
|
|
)
|
2020-05-15 15:29:56 +02:00
|
|
|
|
2023-09-22 23:59:56 +02:00
|
|
|
// Media types.
|
2021-09-03 19:02:26 +02:00
|
|
|
const (
|
2022-04-13 22:17:59 +02:00
|
|
|
MediaUnknown = ""
|
2022-04-15 09:42:07 +02:00
|
|
|
MediaImage = string(media.Image)
|
2023-02-11 20:18:04 +01:00
|
|
|
MediaRaw = string(media.Raw)
|
2022-04-15 09:42:07 +02:00
|
|
|
MediaAnimated = string(media.Animated)
|
|
|
|
MediaLive = string(media.Live)
|
|
|
|
MediaVideo = string(media.Video)
|
2023-02-11 20:18:04 +01:00
|
|
|
MediaVector = string(media.Vector)
|
2021-09-03 19:02:26 +02:00
|
|
|
)
|
|
|
|
|
2023-09-22 23:59:56 +02:00
|
|
|
// Base folders.
|
2021-09-03 19:02:26 +02:00
|
|
|
const (
|
2020-07-20 19:48:31 +02:00
|
|
|
RootUnknown = ""
|
|
|
|
RootOriginals = "/"
|
2020-06-07 10:09:35 +02:00
|
|
|
RootExamples = "examples"
|
|
|
|
RootSidecar = "sidecar"
|
|
|
|
RootImport = "import"
|
|
|
|
RootPath = "/"
|
2021-09-03 19:02:26 +02:00
|
|
|
)
|
2020-06-01 09:45:24 +02:00
|
|
|
|
2023-09-22 23:59:56 +02:00
|
|
|
// Event types.
|
2021-09-03 19:02:26 +02:00
|
|
|
const (
|
2020-06-01 09:45:24 +02:00
|
|
|
Created = "created"
|
2022-04-15 09:42:07 +02:00
|
|
|
Updated = "updated"
|
2020-06-01 09:45:24 +02:00
|
|
|
Deleted = "deleted"
|
2021-09-03 19:02:26 +02:00
|
|
|
)
|
2020-12-19 19:15:32 +01:00
|
|
|
|
2023-09-22 23:59:56 +02:00
|
|
|
// Stacking states.
|
2021-09-03 19:02:26 +02:00
|
|
|
const (
|
2020-12-19 19:15:32 +01:00
|
|
|
IsStacked int8 = 1
|
|
|
|
IsStackable int8 = 0
|
|
|
|
IsUnstacked int8 = -1
|
2020-04-18 23:20:54 +02:00
|
|
|
)
|