photoprism/internal/entity/file_fixtures.go

762 lines
25 KiB
Go
Raw Normal View History

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