photoprism/internal/entity/file_fixtures.go

762 lines
25 KiB
Go
Raw Normal View History

2020-05-01 11:12:22 +00:00
package entity
import (
"time"
)
var FileFixtures = map[string]File{
"exampleFileName.jpg": {
ID: 1000000,
Photo: PhotoFixtures.Pointer("19800101_000002_D640C559"),
PhotoID: PhotoFixtures.Pointer("19800101_000002_D640C559").ID,
PhotoUID: PhotoFixtures.Pointer("19800101_000002_D640C559").PhotoUID,
2021-08-04 15:08:26 +00:00
InstanceID: "a698ac56-6e7e-42b9-9c3e-a79ec96087uy",
FileUID: "ft8es39w45bnlqdw",
2021-08-05 10:33:52 +00:00
FileName: "2790/07/27900704_070228_D6D51B6C.jpg",
FileRoot: RootOriginals,
2021-08-04 15:08:26 +00:00
OriginalName: "Vacation/exampleFileNameOriginal.jpg",
2020-05-01 11:12:22 +00:00
FileHash: "2cad9168fa6acc5c5c2965ddf6ec465ca42fd818",
FileSize: 4278906,
2021-08-04 15:08:26 +00:00
FileCodec: "jpeg",
2020-05-01 11:12:22 +00:00
FileType: "jpg",
FileMime: "image/jpg",
FilePrimary: true,
FileSidecar: false,
FileVideo: false,
FileMissing: false,
2020-05-13 17:46:49 +00:00
FilePortrait: true,
2021-08-04 15:08:26 +00:00
FileDuration: 0,
2020-05-01 11:12:22 +00:00
FileWidth: 3648,
FileHeight: 2736,
2020-05-13 17:46:49 +00:00
FileOrientation: 0,
2021-08-04 15:08:26 +00:00
FileProjection: "equirectangular",
2020-05-01 11:12:22 +00:00
FileAspectRatio: 1.33333,
FileMainColor: "green",
FileColors: "929299991",
FileLuminance: "8836BD496",
FileDiff: 968,
FileChroma: 25,
FileError: "",
2021-08-04 15:08:26 +00:00
ModTime: time.Date(2020, 3, 6, 2, 6, 51, 0, time.UTC).Unix(),
2020-05-13 08:15:43 +00:00
Share: []FileShare{
FileShareFixtures.Get("FileShare1", 0, 0, ""),
FileShareFixtures.Get("FileShare2", 0, 0, ""),
},
Sync: []FileSync{},
2021-08-05 10:33:52 +00:00
CreatedAt: time.Date(2009, 1, 1, 0, 0, 0, 0, time.UTC),
2021-08-04 15:08:26 +00:00
CreatedIn: 414671279,
2021-08-05 10:33:52 +00:00
UpdatedAt: time.Date(2008, 1, 1, 0, 0, 0, 0, time.UTC),
2021-08-04 15:08:26 +00:00
UpdatedIn: 847648638,
2020-05-13 08:15:43 +00:00
DeletedAt: nil,
2020-05-01 11:12:22 +00:00
},
"exampleDNGFile.dng": {
ID: 1000001,
Photo: PhotoFixtures.Pointer("Photo01"),
PhotoID: PhotoFixtures.Pointer("Photo01").ID,
PhotoUID: PhotoFixtures.Pointer("Photo01").PhotoUID,
2021-08-04 15:08:26 +00:00
InstanceID: "a698ac56-6e7e-42b9-9c3e-a79ec96080aa",
FileUID: "ft9es39w45bnlqdw",
2021-08-16 13:18:06 +00:00
FileName: "2790/02/Photo01.dng",
FileRoot: RootOriginals,
2021-08-16 13:18:06 +00:00
OriginalName: "",
2020-05-01 11:12:22 +00:00
FileHash: "3cad9168fa6acc5c5c2965ddf6ec465ca42fd818",
FileSize: 661858,
2021-08-04 15:08:26 +00:00
FileCodec: "jpeg",
FileType: "raw",
FileMime: "image/DNG",
FilePrimary: false,
2020-05-01 11:12:22 +00:00
FileSidecar: false,
FileVideo: false,
FileMissing: false,
FilePortrait: false,
2021-08-04 15:08:26 +00:00
FileDuration: 0,
2020-05-01 11:12:22 +00:00
FileWidth: 1200,
FileHeight: 1600,
FileOrientation: 6,
2021-08-04 15:08:26 +00:00
FileProjection: "",
2020-05-01 11:12:22 +00:00
FileAspectRatio: 0.75,
FileMainColor: "gold",
FileColors: "5552E2222",
FileLuminance: "444428399",
FileDiff: 747,
FileChroma: 12,
FileError: "",
Share: []FileShare{},
Sync: []FileSync{},
2021-08-04 15:08:26 +00:00
ModTime: time.Date(2019, 3, 6, 2, 6, 51, 0, time.UTC).Unix(),
2021-08-16 13:18:06 +00:00
CreatedAt: time.Date(2009, 1, 1, 0, 0, 0, 0, time.UTC),
2021-08-04 15:08:26 +00:00
CreatedIn: 414671279,
2020-05-01 11:12:22 +00:00
UpdatedAt: time.Date(2020, 3, 28, 14, 6, 0, 0, time.UTC),
2021-08-04 15:08:26 +00:00
UpdatedIn: 847648638,
2020-05-01 11:12:22 +00:00
DeletedAt: nil,
},
"exampleXmpFile.xmp": {
ID: 1000002,
Photo: PhotoFixtures.Pointer("Photo01"),
PhotoID: PhotoFixtures.Pointer("Photo01").ID,
PhotoUID: PhotoFixtures.Pointer("Photo01").PhotoUID,
2021-08-04 15:08:26 +00:00
InstanceID: "a698ac56-6e7e-42b9-9c3e-a79ec96080ab",
FileUID: "ft1es39w45bnlqdw",
2021-08-16 13:18:06 +00:00
FileName: "2790/02/Photo01.xmp",
FileRoot: RootOriginals,
2021-08-16 13:18:06 +00:00
OriginalName: "",
2020-05-01 11:12:22 +00:00
FileHash: "ocad9168fa6acc5c5c2965ddf6ec465ca42fd818",
FileSize: 858,
2021-08-04 15:08:26 +00:00
FileCodec: "",
2020-05-01 11:12:22 +00:00
FileType: "xmp",
2021-08-04 15:08:26 +00:00
FileMime: "",
2020-05-01 11:12:22 +00:00
FilePrimary: false,
FileSidecar: true,
FileVideo: false,
FileMissing: false,
FilePortrait: false,
2021-08-04 15:08:26 +00:00
FileDuration: 0,
2020-05-01 11:12:22 +00:00
FileWidth: 0,
FileHeight: 0,
FileOrientation: 0,
2021-08-04 15:08:26 +00:00
FileProjection: "",
2020-05-01 11:12:22 +00:00
FileAspectRatio: 0,
FileMainColor: "",
FileColors: "",
FileLuminance: "",
FileDiff: 0,
FileChroma: 0,
FileError: "",
Share: []FileShare{},
Sync: []FileSync{},
2021-08-04 15:08:26 +00:00
ModTime: time.Date(2019, 3, 6, 2, 6, 51, 0, time.UTC).Unix(),
2021-08-16 13:18:06 +00:00
CreatedAt: time.Date(2009, 1, 1, 0, 0, 0, 0, time.UTC),
2021-08-04 15:08:26 +00:00
CreatedIn: 12361491,
2020-05-01 11:12:22 +00:00
UpdatedAt: time.Date(2020, 3, 28, 14, 6, 0, 0, time.UTC),
2021-08-04 15:08:26 +00:00
UpdatedIn: 9537701,
2020-05-01 11:12:22 +00:00
DeletedAt: nil,
},
"bridge.jpg": {
ID: 1000003,
Photo: PhotoFixtures.Pointer("Photo04"),
PhotoID: PhotoFixtures.Pointer("Photo04").ID,
PhotoUID: PhotoFixtures.Pointer("Photo04").PhotoUID,
2021-08-04 15:08:26 +00:00
InstanceID: "a698ac56-6e7e-42b9-9c3e-a79ec96080ac",
FileUID: "ft2es39w45bnlqdw",
2021-08-16 15:14:37 +00:00
FileName: "Germany/bridge.jpg",
FileRoot: RootOriginals,
2021-08-04 15:08:26 +00:00
OriginalName: "",
2020-05-01 11:12:22 +00:00
FileHash: "pcad9168fa6acc5c5c2965ddf6ec465ca42fd818",
FileSize: 961858,
2021-08-04 15:08:26 +00:00
FileCodec: "jpeg",
2020-05-01 11:12:22 +00:00
FileType: "jpg",
FileMime: "image/jpg",
FilePrimary: true,
FileSidecar: false,
FileVideo: false,
FileMissing: false,
FilePortrait: false,
2021-08-04 15:08:26 +00:00
FileDuration: 0,
2020-05-01 11:12:22 +00:00
FileWidth: 1200,
FileHeight: 1600,
FileOrientation: 6,
2021-08-04 15:08:26 +00:00
FileProjection: "",
2020-05-01 11:12:22 +00:00
FileAspectRatio: 0.75,
FileMainColor: "magenta",
FileColors: "225221C1E",
FileLuminance: "DC42844C8",
FileDiff: 986,
FileChroma: 32,
FileError: "",
Share: []FileShare{},
Sync: []FileSync{},
2021-08-04 15:08:26 +00:00
ModTime: time.Date(2017, 2, 6, 2, 6, 51, 0, time.UTC).Unix(),
2021-08-16 15:14:37 +00:00
CreatedAt: time.Date(2019, 1, 1, 0, 0, 0, 0, time.UTC),
2021-08-04 15:08:26 +00:00
CreatedIn: 12361491,
2021-08-16 15:14:37 +00:00
UpdatedAt: time.Date(2020, 1, 1, 0, 0, 0, 0, time.UTC),
2021-08-04 15:08:26 +00:00
UpdatedIn: 12361490,
2020-05-01 11:12:22 +00:00
DeletedAt: nil,
},
"reunion.jpg": {
ID: 1000004,
Photo: PhotoFixtures.Pointer("Photo05"),
PhotoID: PhotoFixtures.Pointer("Photo05").ID,
PhotoUID: PhotoFixtures.Pointer("Photo05").PhotoUID,
2021-08-04 15:08:26 +00:00
InstanceID: "",
FileUID: "ft3es39w45bnlqdw",
2021-08-16 15:14:37 +00:00
FileName: "2015/11/20151101_000000_51C501B5.jpg",
FileRoot: RootOriginals,
2021-08-16 15:14:37 +00:00
OriginalName: "2015/11/reunion.jpg",
2020-05-01 11:12:22 +00:00
FileHash: "acad9168fa6acc5c5c2965ddf6ec465ca42fd818",
FileSize: 81858,
2021-08-04 15:08:26 +00:00
FileCodec: "jpeg",
2020-05-01 11:12:22 +00:00
FileType: "jpg",
FileMime: "image/jpg",
FilePrimary: true,
FileSidecar: false,
FileVideo: false,
FileMissing: false,
FilePortrait: false,
2021-08-04 15:08:26 +00:00
FileDuration: 0,
2020-05-01 11:12:22 +00:00
FileWidth: 1200,
FileHeight: 1600,
FileOrientation: 6,
2021-08-04 15:08:26 +00:00
FileProjection: "",
2020-05-01 11:12:22 +00:00
FileAspectRatio: 0.75,
FileMainColor: "blue",
FileColors: "266111000",
FileLuminance: "DC42844C8",
FileDiff: 800,
2020-05-13 17:46:49 +00:00
FileChroma: 4,
2020-05-14 12:17:12 +00:00
FileError: "Error",
2020-05-01 11:12:22 +00:00
Share: []FileShare{},
Sync: []FileSync{},
2021-08-04 15:08:26 +00:00
ModTime: time.Date(2017, 1, 6, 2, 6, 51, 0, time.UTC).Unix(),
2021-08-16 15:14:37 +00:00
CreatedAt: time.Date(2019, 1, 1, 0, 0, 0, 0, time.UTC),
2021-08-04 15:08:26 +00:00
CreatedIn: 12361491,
2021-08-16 15:14:37 +00:00
UpdatedAt: time.Date(2020, 1, 1, 0, 0, 0, 0, time.UTC),
2021-08-04 15:08:26 +00:00
UpdatedIn: 2361491,
2020-05-01 11:12:22 +00:00
DeletedAt: nil,
},
2020-05-13 09:51:51 +00:00
"Quality1FavoriteTrue.jpg": {
ID: 1000005,
Photo: PhotoFixtures.Pointer("Photo17"),
PhotoID: PhotoFixtures.Pointer("Photo17").ID,
PhotoUID: PhotoFixtures.Pointer("Photo17").PhotoUID,
2021-08-04 15:08:26 +00:00
InstanceID: "a698ac56-6e7e-42b9-9c3e-a79ec96080ad",
FileUID: "ft4es39w45bnlqdw",
2021-08-16 16:18:55 +00:00
FileName: "1990/04/Quality1FavoriteTrue.jpg",
FileRoot: RootOriginals,
2021-08-04 15:08:26 +00:00
OriginalName: "",
2020-05-13 09:51:51 +00:00
FileHash: "acad9168fa6acc5c5c2965ddf6ec465ca42fd819",
FileSize: 500,
2021-08-04 15:08:26 +00:00
FileCodec: "jpeg",
2020-05-13 09:51:51 +00:00
FileType: "jpg",
FileMime: "image/jpg",
FilePrimary: true,
FileSidecar: false,
FileVideo: false,
FileMissing: false,
FilePortrait: false,
2021-08-04 15:08:26 +00:00
FileDuration: 0,
2020-05-13 09:51:51 +00:00
FileWidth: 1200,
FileHeight: 1600,
FileOrientation: 6,
2021-08-04 15:08:26 +00:00
FileProjection: "",
2020-05-13 09:51:51 +00:00
FileAspectRatio: 0.75,
FileMainColor: "blue",
FileColors: "266111000",
FileLuminance: "DC42844C8",
FileDiff: 800,
FileChroma: 26,
FileError: "",
Share: []FileShare{},
Sync: []FileSync{},
2021-08-04 15:08:26 +00:00
ModTime: time.Date(2017, 1, 6, 2, 6, 51, 0, time.UTC).Unix(),
2021-08-16 16:18:55 +00:00
CreatedAt: time.Date(2019, 1, 1, 0, 0, 0, 0, time.UTC),
2021-08-04 15:08:26 +00:00
CreatedIn: 2361491,
2021-08-16 16:18:55 +00:00
UpdatedAt: time.Date(2020, 1, 1, 0, 0, 0, 0, time.UTC),
2021-08-04 15:08:26 +00:00
UpdatedIn: 2361498,
2020-05-13 09:51:51 +00:00
DeletedAt: nil,
},
"missing.jpg": {
ID: 1000006,
Photo: PhotoFixtures.Pointer("Photo15"),
PhotoID: PhotoFixtures.Pointer("Photo15").ID,
PhotoUID: PhotoFixtures.Pointer("Photo15").PhotoUID,
2021-08-04 15:08:26 +00:00
InstanceID: "a698ac56-6e7e-42b9-9c3e-a79ec96080ae",
FileUID: "ft5es39w45bnlqdw",
2021-08-16 16:18:55 +00:00
FileName: "1990/missing.jpg",
FileRoot: RootOriginals,
2021-08-04 15:08:26 +00:00
OriginalName: "",
2020-05-13 09:51:51 +00:00
FileHash: "acad9168fa6acc5c5c2965ddf6ec465ca42fd819",
FileSize: 500,
2021-08-04 15:08:26 +00:00
FileCodec: "jpeg",
2020-05-13 09:51:51 +00:00
FileType: "jpg",
FileMime: "image/jpg",
FilePrimary: true,
FileSidecar: false,
FileVideo: false,
FileMissing: true,
FilePortrait: false,
2021-08-04 15:08:26 +00:00
FileDuration: 0,
2020-05-13 09:51:51 +00:00
FileWidth: 1200,
FileHeight: 1600,
FileOrientation: 6,
2021-08-04 15:08:26 +00:00
FileProjection: "",
2020-05-13 09:51:51 +00:00
FileAspectRatio: 0.75,
FileMainColor: "blue",
FileColors: "266111000",
FileLuminance: "DC42844C8",
FileDiff: 800,
FileChroma: 26,
FileError: "",
Share: []FileShare{},
Sync: []FileSync{},
2021-08-04 15:08:26 +00:00
ModTime: time.Date(2017, 1, 6, 2, 6, 51, 0, time.UTC).Unix(),
2021-08-16 16:18:55 +00:00
CreatedAt: time.Date(2019, 1, 1, 0, 0, 0, 0, time.UTC),
2021-08-04 15:08:26 +00:00
CreatedIn: 2361491,
2021-08-16 16:18:55 +00:00
UpdatedAt: time.Date(2020, 1, 1, 0, 0, 0, 0, time.UTC),
2021-08-04 15:08:26 +00:00
UpdatedIn: 2361491,
2020-05-13 09:51:51 +00:00
DeletedAt: nil,
},
2020-05-14 12:17:12 +00:00
"Photo18.jpg": {
ID: 1000007,
2021-08-04 15:08:26 +00:00
Photo: nil, // no pointer here because related photo is archived
2020-05-14 12:17:12 +00:00
PhotoID: 1000018,
PhotoUID: "pt9jtdre2lvl0y25",
2021-08-04 15:08:26 +00:00
InstanceID: "a698ac56-6e7e-42b9-9c3e-a79ec96080af",
FileUID: "ft6es39w45bnlqdw",
2021-08-17 14:40:47 +00:00
FileName: "Archived/Photo18.jpg",
FileRoot: RootOriginals,
2021-08-04 15:08:26 +00:00
OriginalName: "",
2020-05-14 12:17:12 +00:00
FileHash: "acad9168fa6acc5c5c2965ddf6ec465ca42fd820",
FileSize: 500,
2021-08-04 15:08:26 +00:00
FileCodec: "jpeg",
2020-05-14 12:17:12 +00:00
FileType: "jpg",
FileMime: "image/jpg",
FilePrimary: true,
FileSidecar: false,
FileVideo: false,
FileMissing: false,
FilePortrait: false,
2021-08-04 15:08:26 +00:00
FileDuration: 0,
2020-05-14 12:17:12 +00:00
FileWidth: 1200,
FileHeight: 1600,
FileOrientation: 6,
2021-08-04 15:08:26 +00:00
FileProjection: "",
2020-05-14 12:17:12 +00:00
FileAspectRatio: 0.75,
FileMainColor: "green",
FileColors: "266111000",
FileLuminance: "DC42844C8",
FileDiff: 800,
FileChroma: 0,
FileError: "",
Share: []FileShare{},
Sync: []FileSync{},
2021-08-04 15:08:26 +00:00
ModTime: time.Date(2017, 1, 6, 2, 6, 51, 0, time.UTC).Unix(),
2021-08-17 14:40:47 +00:00
CreatedAt: time.Date(2019, 1, 1, 0, 0, 0, 0, time.UTC),
2021-08-04 15:08:26 +00:00
CreatedIn: 2361491,
2021-08-17 14:40:47 +00:00
UpdatedAt: time.Date(2020, 1, 1, 0, 0, 0, 0, time.UTC),
2021-08-04 15:08:26 +00:00
UpdatedIn: 8361491,
2020-05-14 12:17:12 +00:00
DeletedAt: nil,
},
2020-05-14 16:10:01 +00:00
"Video.mp4": {
ID: 1000008,
Photo: PhotoFixtures.Pointer("Photo10"),
PhotoID: PhotoFixtures.Pointer("Photo10").ID,
PhotoUID: PhotoFixtures.Pointer("Photo10").PhotoUID,
2021-08-04 15:08:26 +00:00
InstanceID: "a698ac56-6e7e-42b9-9c3e-a79ec96080ag",
FileUID: "ft71s39w45bnlqdw",
2021-08-04 15:08:26 +00:00
FileName: "Holiday/Video.mp4",
FileRoot: RootOriginals,
2021-08-04 15:08:26 +00:00
OriginalName: "",
2020-05-14 16:10:01 +00:00
FileHash: "acad9168fa6acc5c5c2965ddf6ec465ca42fd831",
2021-08-04 15:08:26 +00:00
FileSize: 7799202,
FileCodec: "avc1",
2020-05-14 16:10:01 +00:00
FileType: "mp4",
FileMime: "video/mp4",
2021-08-16 15:14:37 +00:00
FilePrimary: false,
2020-05-14 16:10:01 +00:00
FileSidecar: false,
FileVideo: true,
FileMissing: false,
FilePortrait: false,
2021-08-04 15:08:26 +00:00
FileDuration: 17000000000,
2020-05-14 16:10:01 +00:00
FileWidth: 1200,
FileHeight: 1600,
FileOrientation: 6,
2021-08-04 15:08:26 +00:00
FileProjection: "",
2020-05-14 16:10:01 +00:00
FileAspectRatio: 0.75,
FileMainColor: "green",
FileColors: "266111000",
FileLuminance: "DC42844C8",
FileDiff: 800,
FileChroma: 0,
FileError: "",
Share: []FileShare{},
Sync: []FileSync{},
2021-08-04 15:08:26 +00:00
ModTime: time.Date(2017, 1, 6, 2, 6, 51, 0, time.UTC).Unix(),
2021-08-16 15:14:37 +00:00
CreatedAt: time.Date(2019, 1, 1, 0, 0, 0, 0, time.UTC),
2021-08-04 15:08:26 +00:00
CreatedIn: 9359616,
2021-08-16 15:14:37 +00:00
UpdatedAt: time.Date(2020, 1, 1, 0, 0, 0, 0, time.UTC),
UpdatedIn: 935962,
DeletedAt: nil,
},
"Video.jpg": {
ID: 1000022,
Photo: PhotoFixtures.Pointer("Photo10"),
PhotoID: PhotoFixtures.Pointer("Photo10").ID,
PhotoUID: PhotoFixtures.Pointer("Photo10").PhotoUID,
InstanceID: "",
FileUID: "fikjs39w45bnlqdw",
FileName: "Holiday/Video.jpg",
FileRoot: RootSidecar,
OriginalName: "",
FileHash: "abgt9168fa6acc5c5c2965ddf6ec465ca42fd831",
FileSize: 7799202,
FileCodec: "jpeg",
FileType: "jpg",
FileMime: "image/jpg",
FilePrimary: true,
FileSidecar: false,
FileVideo: false,
FileMissing: false,
FilePortrait: false,
FileDuration: 0,
FileWidth: 1200,
FileHeight: 1600,
FileOrientation: 6,
FileProjection: "",
FileAspectRatio: 0.75,
FileMainColor: "green",
FileColors: "266111000",
FileLuminance: "DC42844C8",
FileDiff: 800,
FileChroma: 0,
FileError: "",
Share: []FileShare{},
Sync: []FileSync{},
ModTime: time.Date(2017, 1, 6, 2, 6, 51, 0, time.UTC).Unix(),
CreatedAt: time.Date(2019, 1, 1, 0, 0, 0, 0, time.UTC),
CreatedIn: 9359616,
UpdatedAt: time.Date(2020, 1, 1, 0, 0, 0, 0, time.UTC),
2021-08-04 15:08:26 +00:00
UpdatedIn: 935962,
2020-05-14 16:10:01 +00:00
DeletedAt: nil,
},
"VideoWithError.mp4": {
ID: 1000009,
Photo: PhotoFixtures.Pointer("Photo10"),
PhotoID: PhotoFixtures.Pointer("Photo10").ID,
PhotoUID: PhotoFixtures.Pointer("Photo10").PhotoUID,
2021-08-04 15:08:26 +00:00
InstanceID: "a698ac56-6e7e-42b9-9c3e-a79ec96080ah",
FileUID: "ft72s39w45bnlqdw",
2021-08-04 15:08:26 +00:00
FileName: "Holiday/VideoError.mp4",
FileRoot: RootOriginals,
2021-08-04 15:08:26 +00:00
OriginalName: "",
2020-05-14 16:10:01 +00:00
FileHash: "acad9168fa6acc5c5c2965ddf6ec465ca42fd832",
FileSize: 500,
2021-08-04 15:08:26 +00:00
FileCodec: "avc1",
2020-05-14 16:10:01 +00:00
FileType: "mp4",
FileMime: "video/mp4",
FilePrimary: false,
FileSidecar: false,
FileVideo: true,
FileMissing: false,
FilePortrait: false,
2021-08-04 15:08:26 +00:00
FileDuration: 17000000000,
2020-05-14 16:10:01 +00:00
FileWidth: 1200,
FileHeight: 1600,
FileOrientation: 6,
2021-08-04 15:08:26 +00:00
FileProjection: "",
2020-05-14 16:10:01 +00:00
FileAspectRatio: 0.75,
FileMainColor: "green",
FileColors: "266111000",
FileLuminance: "DC42844C8",
FileDiff: 800,
FileChroma: 0,
FileError: "Error",
Share: []FileShare{},
Sync: []FileSync{},
2021-08-04 15:08:26 +00:00
ModTime: time.Date(2017, 1, 6, 2, 6, 51, 0, time.UTC).Unix(),
2021-08-16 15:14:37 +00:00
CreatedAt: time.Date(2019, 1, 1, 0, 0, 0, 0, time.UTC),
2021-08-04 15:08:26 +00:00
CreatedIn: 935962,
2021-08-16 15:14:37 +00:00
UpdatedAt: time.Date(2020, 1, 1, 0, 0, 0, 0, time.UTC),
2021-08-04 15:08:26 +00:00
UpdatedIn: 935962,
2020-05-14 16:10:01 +00:00
DeletedAt: nil,
},
"bridge1.jpg": {
ID: 1000010,
Photo: PhotoFixtures.Pointer("Photo02"),
PhotoID: PhotoFixtures.Pointer("Photo02").ID,
PhotoUID: PhotoFixtures.Pointer("Photo02").PhotoUID,
2021-08-04 15:08:26 +00:00
InstanceID: "a698ac56-6e7e-42b9-9c3e-a79ec96080ai",
FileUID: "ft2es39q45bnlqd0",
2021-08-04 15:08:26 +00:00
FileName: "London/bridge1.jpg",
FileRoot: RootOriginals,
2021-08-04 15:08:26 +00:00
OriginalName: "",
FileHash: "pcad9168fa6acc5c5c2965ddf6ec465ca42fd828",
FileSize: 961851,
2021-08-04 15:08:26 +00:00
FileCodec: "jpeg",
FileType: "jpg",
FileMime: "image/jpg",
FilePrimary: true,
FileSidecar: false,
FileVideo: false,
FileMissing: false,
FilePortrait: false,
2021-08-04 15:08:26 +00:00
FileDuration: 0,
FileWidth: 1200,
FileHeight: 1600,
FileOrientation: 6,
2021-08-04 15:08:26 +00:00
FileProjection: "",
FileAspectRatio: 0.75,
FileMainColor: "magenta",
FileColors: "225221C1E",
FileLuminance: "DC42844C8",
FileDiff: 986,
FileChroma: 32,
FileError: "",
Share: []FileShare{},
Sync: []FileSync{},
2021-08-04 15:08:26 +00:00
ModTime: time.Date(2017, 2, 6, 2, 6, 51, 0, time.UTC).Unix(),
2021-08-16 13:18:06 +00:00
CreatedAt: time.Date(2009, 1, 1, 0, 0, 0, 0, time.UTC),
2021-08-04 15:08:26 +00:00
CreatedIn: 935962,
2021-08-16 15:14:37 +00:00
UpdatedAt: time.Date(2010, 1, 1, 0, 0, 0, 0, time.UTC),
2021-08-04 15:08:26 +00:00
UpdatedIn: 935962,
DeletedAt: nil,
},
"bridge2.jpg": {
ID: 1000011,
Photo: PhotoFixtures.Pointer("Photo03"),
PhotoID: PhotoFixtures.Pointer("Photo03").ID,
PhotoUID: PhotoFixtures.Pointer("Photo03").PhotoUID,
2021-08-04 15:08:26 +00:00
InstanceID: "a698ac56-6e7e-42b9-9c3e-a79ec96080aj",
FileUID: "ft2es49w15bnlqdw",
2021-08-16 15:14:37 +00:00
FileName: "1990/04/bridge2.jpg",
FileRoot: RootOriginals,
2021-08-04 15:08:26 +00:00
OriginalName: "",
FileHash: "pcad9168fa6acc5c5c2965adf6ec465ca42fd818",
FileSize: 921858,
2021-08-04 15:08:26 +00:00
FileCodec: "jpeg",
FileType: "jpg",
FileMime: "image/jpg",
FilePrimary: true,
FileSidecar: false,
FileVideo: false,
FileMissing: false,
FilePortrait: false,
2021-08-04 15:08:26 +00:00
FileDuration: 0,
FileWidth: 1200,
FileHeight: 1600,
FileOrientation: 6,
2021-08-04 15:08:26 +00:00
FileProjection: "",
FileAspectRatio: 0.75,
FileMainColor: "magenta",
FileColors: "225221C1E",
FileLuminance: "DC42844C8",
FileDiff: 986,
FileChroma: 32,
FileError: "",
Share: []FileShare{},
Sync: []FileSync{},
2021-08-04 15:08:26 +00:00
ModTime: time.Date(2017, 2, 6, 2, 6, 51, 0, time.UTC).Unix(),
2021-08-16 15:14:37 +00:00
CreatedAt: time.Date(2009, 1, 1, 0, 0, 0, 0, time.UTC),
2021-08-04 15:08:26 +00:00
CreatedIn: 935962,
2021-08-16 15:14:37 +00:00
UpdatedAt: time.Date(2008, 1, 1, 0, 0, 0, 0, time.UTC),
2021-08-04 15:08:26 +00:00
UpdatedIn: 935962,
DeletedAt: nil,
},
"bridge3.jpg": {
ID: 1000012,
Photo: PhotoFixtures.Pointer("Photo03"),
PhotoID: PhotoFixtures.Pointer("Photo03").ID,
PhotoUID: PhotoFixtures.Pointer("Photo03").PhotoUID,
2021-08-04 15:08:26 +00:00
InstanceID: "a698ac56-6e7e-42b9-9c3e-a79ec96080aj",
FileUID: "ft2es49whhbnlqdn",
2021-08-04 15:08:26 +00:00
FileName: "London/bridge3.jpg",
FileRoot: RootOriginals,
2021-08-04 15:08:26 +00:00
OriginalName: "",
FileHash: "pcad9168fa6acc5c5ba965adf6ec465ca42fd818",
FileSize: 921851,
2021-08-04 15:08:26 +00:00
FileCodec: "jpeg",
FileType: "jpg",
FileMime: "image/jpg",
FilePrimary: false,
FileSidecar: false,
FileVideo: false,
FileMissing: false,
FilePortrait: false,
2021-08-04 15:08:26 +00:00
FileDuration: 0,
FileWidth: 1200,
FileHeight: 1600,
FileOrientation: 6,
2021-08-04 15:08:26 +00:00
FileProjection: "",
FileAspectRatio: 0.75,
FileMainColor: "magenta",
FileColors: "225221C1E",
FileLuminance: "DC42844C8",
FileDiff: 986,
FileChroma: 32,
FileError: "",
Share: []FileShare{},
Sync: []FileSync{},
2021-08-04 15:08:26 +00:00
ModTime: time.Date(2017, 2, 6, 2, 6, 51, 0, time.UTC).Unix(),
2021-08-16 15:14:37 +00:00
CreatedAt: time.Date(2009, 1, 1, 0, 0, 0, 0, time.UTC),
2021-08-04 15:08:26 +00:00
CreatedIn: 935962,
2021-08-16 15:14:37 +00:00
UpdatedAt: time.Date(2008, 1, 1, 0, 0, 0, 0, time.UTC),
2021-08-04 15:08:26 +00:00
UpdatedIn: 935962,
DeletedAt: nil,
},
2021-08-04 15:08:26 +00:00
"bridge2.mp4": {
ID: 1000013,
Photo: PhotoFixtures.Pointer("Photo03"),
PhotoID: 1000003,
PhotoUID: PhotoFixtures.Pointer("Photo03").PhotoUID,
2021-08-04 15:08:26 +00:00
InstanceID: "a698ac56-6e7e-42b9-9c3e-a79ec96080al",
FileUID: "ft2es49whhbnlqdy",
2021-08-16 15:14:37 +00:00
FileName: "1990/04/bridge2.mp4",
FileRoot: RootOriginals,
2021-08-04 15:08:26 +00:00
OriginalName: "",
FileHash: "pcad9168fa6acc5c5ba965adf6ec465ca42fd819",
FileSize: 921851,
2021-08-04 15:08:26 +00:00
FileCodec: "avc1",
FileType: "mp4",
FileMime: "image/mp4",
FilePrimary: false,
FileSidecar: false,
FileVideo: true,
FileMissing: false,
FilePortrait: false,
2021-08-04 15:08:26 +00:00
FileDuration: 17000000000,
FileWidth: 1200,
FileHeight: 1600,
FileOrientation: 6,
2021-08-04 15:08:26 +00:00
FileProjection: "",
FileAspectRatio: 0.75,
FileMainColor: "magenta",
FileColors: "225221C1E",
FileLuminance: "DC42844C8",
FileDiff: 986,
FileChroma: 32,
FileError: "",
Share: []FileShare{},
Sync: []FileSync{},
2021-08-04 15:08:26 +00:00
ModTime: time.Date(2017, 2, 6, 2, 6, 51, 0, time.UTC).Unix(),
2021-08-16 15:14:37 +00:00
CreatedAt: time.Date(2009, 1, 1, 0, 0, 0, 0, time.UTC),
2021-08-04 15:08:26 +00:00
CreatedIn: 935962,
2021-08-16 15:14:37 +00:00
UpdatedAt: time.Date(2008, 1, 1, 0, 0, 0, 0, time.UTC),
2021-08-04 15:08:26 +00:00
UpdatedIn: 935962,
DeletedAt: nil,
},
"Photo19.jpg": {
ID: 1000019,
Photo: PhotoFixtures.Pointer("Photo19"),
PhotoID: PhotoFixtures.Pointer("Photo19").ID,
PhotoUID: PhotoFixtures.Pointer("Photo19").PhotoUID,
2021-08-04 15:08:26 +00:00
InstanceID: "a698ac56-6e7e-42b9-9c3e-a79ec96080am",
FileUID: "ft2es49qhhinlqdn",
2021-08-17 14:40:47 +00:00
FileName: "1990/04/Photo19.jpg",
FileRoot: RootOriginals,
2021-08-04 15:08:26 +00:00
OriginalName: "",
FileHash: "pcad9a68fa6acc5c5ba965adf6ec465ca42fd811",
FileSize: 921831,
2021-08-04 15:08:26 +00:00
FileCodec: "jpeg",
FileType: "jpg",
FileMime: "image/jpg",
FilePrimary: true,
FileSidecar: false,
FileVideo: false,
2021-03-03 10:49:32 +00:00
FileMissing: false,
FilePortrait: false,
2021-08-04 15:08:26 +00:00
FileDuration: 0,
2021-03-03 10:49:32 +00:00
FileWidth: 1200,
FileHeight: 1600,
FileOrientation: 6,
2021-08-04 15:08:26 +00:00
FileProjection: "",
2021-03-03 10:49:32 +00:00
FileAspectRatio: 0.75,
FileMainColor: "magenta",
FileColors: "225221C1E",
FileLuminance: "DC42844C8",
FileDiff: 986,
FileChroma: 32,
FileError: "",
Share: []FileShare{},
Sync: []FileSync{},
2021-08-04 15:08:26 +00:00
ModTime: time.Date(2020, 2, 6, 2, 6, 51, 0, time.UTC).Unix(),
2021-08-17 14:40:47 +00:00
CreatedAt: time.Date(2009, 1, 1, 0, 0, 0, 0, time.UTC),
2021-08-04 15:08:26 +00:00
CreatedIn: 935962,
2021-08-17 14:40:47 +00:00
UpdatedAt: time.Date(2010, 1, 1, 0, 0, 0, 0, time.UTC),
2021-08-04 15:08:26 +00:00
UpdatedIn: 935962,
2021-03-03 10:49:32 +00:00
DeletedAt: nil,
},
"Photo25.jpg": {
ID: 1000020,
Photo: PhotoFixtures.Pointer("Photo25"),
PhotoID: PhotoFixtures.Pointer("Photo25").ID,
PhotoUID: PhotoFixtures.Pointer("Photo25").PhotoUID,
2021-08-04 15:08:26 +00:00
InstanceID: "a698ac56-6e7e-42b9-9c3e-a79ec96080an",
2021-03-03 10:49:32 +00:00
FileUID: "ft2es49qhhinlplk",
2021-08-17 14:40:47 +00:00
FileName: "2007/12/PhotoWithEditedAt.jpg",
2021-03-03 10:49:32 +00:00
FileRoot: RootOriginals,
2021-08-04 15:08:26 +00:00
OriginalName: "",
2021-03-03 10:49:32 +00:00
FileHash: "pcad9a68fa6acc5c5ba965adf6ec465ca42fd887",
FileSize: 921831,
2021-08-04 15:08:26 +00:00
FileCodec: "jpeg",
2021-03-03 10:49:32 +00:00
FileType: "jpg",
FileMime: "image/jpg",
FilePrimary: true,
FileSidecar: false,
FileVideo: false,
FileMissing: false,
FilePortrait: false,
2021-08-04 15:08:26 +00:00
FileDuration: 0,
2021-08-17 14:40:47 +00:00
FileWidth: 2200,
FileHeight: 1100,
FileOrientation: 6,
2021-08-04 15:08:26 +00:00
FileProjection: "",
2021-08-17 14:40:47 +00:00
FileAspectRatio: 2,
FileMainColor: "magenta",
FileColors: "225221C1E",
FileLuminance: "DC42844C8",
FileDiff: 986,
FileChroma: 32,
FileError: "",
Share: []FileShare{},
Sync: []FileSync{},
2021-08-04 15:08:26 +00:00
ModTime: time.Date(2008, 2, 6, 2, 6, 51, 0, time.UTC).Unix(),
2021-08-17 14:40:47 +00:00
CreatedAt: time.Date(2007, 1, 1, 0, 0, 0, 0, time.UTC),
2021-08-04 15:08:26 +00:00
CreatedIn: 935962,
2021-08-17 14:40:47 +00:00
UpdatedAt: time.Date(2007, 3, 1, 0, 0, 0, 0, time.UTC),
2021-08-04 15:08:26 +00:00
UpdatedIn: 935962,
DeletedAt: nil,
},
2021-03-10 10:30:09 +00:00
"Photo25_2.jpg": {
ID: 1000021,
Photo: PhotoFixtures.Pointer("Photo25"),
PhotoID: PhotoFixtures.Pointer("Photo25").ID,
PhotoUID: PhotoFixtures.Pointer("Photo25").PhotoUID,
2021-08-04 15:08:26 +00:00
InstanceID: "a698ac56-6e7e-42b9-9c3e-a79ec96080ao",
2021-03-10 10:30:09 +00:00
FileUID: "ft2es49qhhinlpld",
2021-08-17 14:40:47 +00:00
FileName: "2007/12/PhotoWithEditedAt_2.jpg",
2021-03-10 10:30:09 +00:00
FileRoot: RootOriginals,
2021-08-04 15:08:26 +00:00
OriginalName: "",
2021-03-10 10:30:09 +00:00
FileHash: "pcad9a68fa6acc5c5ba965adf6ec465ca42fd895",
FileSize: 900,
2021-08-04 15:08:26 +00:00
FileCodec: "jpeg",
2021-03-10 10:30:09 +00:00
FileType: "jpg",
FileMime: "image/jpg",
2021-08-17 14:40:47 +00:00
FilePrimary: true,
2021-03-10 10:30:09 +00:00
FileSidecar: false,
FileVideo: false,
FileMissing: false,
FilePortrait: false,
2021-08-04 15:08:26 +00:00
FileDuration: 0,
2021-08-17 14:40:47 +00:00
FileWidth: 2200,
FileHeight: 1100,
2021-03-10 10:30:09 +00:00
FileOrientation: 6,
2021-08-04 15:08:26 +00:00
FileProjection: "",
2021-08-17 14:40:47 +00:00
FileAspectRatio: 2,
2021-03-10 10:30:09 +00:00
FileMainColor: "magenta",
FileColors: "225221C1E",
FileLuminance: "DC42844C8",
FileDiff: 986,
FileChroma: 32,
FileError: "",
Share: []FileShare{},
Sync: []FileSync{},
2021-08-04 15:08:26 +00:00
ModTime: time.Date(2008, 2, 6, 2, 6, 51, 0, time.UTC).Unix(),
2021-08-17 14:40:47 +00:00
CreatedAt: time.Date(2021, 1, 1, 0, 0, 0, 0, time.UTC),
2021-08-04 15:08:26 +00:00
CreatedIn: 935962,
2021-08-17 14:40:47 +00:00
UpdatedAt: time.Date(2021, 1, 1, 0, 0, 0, 0, time.UTC),
2021-08-04 15:08:26 +00:00
UpdatedIn: 935962,
2021-03-10 10:30:09 +00:00
DeletedAt: nil,
},
2020-05-01 11:12:22 +00:00
}
2020-05-13 08:15:43 +00:00
var FileFixturesExampleJPG = FileFixtures["exampleFileName.jpg"]
var FileFixturesExampleXMP = FileFixtures["exampleXmpFile.xmp"]
var FileFixturesExampleBridge = FileFixtures["bridge.jpg"]
2021-08-04 15:08:26 +00:00
var FileFixturesExampleBridgeVideo = FileFixtures["bridge2.mp4"]
2020-05-13 08:15:43 +00:00
2020-05-01 11:12:22 +00:00
// CreateFileFixtures inserts known entities into the database for testing.
func CreateFileFixtures() {
for _, entity := range FileFixtures {
Db().Create(&entity)
}
}