-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
/
entity_const.go
51 lines (45 loc) Β· 877 Bytes
/
entity_const.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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
)