diff --git a/internal/entity/file_fixtures.go b/internal/entity/file_fixtures.go index 1faa34371..0934199b4 100644 --- a/internal/entity/file_fixtures.go +++ b/internal/entity/file_fixtures.go @@ -203,6 +203,84 @@ var FileFixtures = map[string]File{ UpdatedIn: 0, DeletedAt: nil, }, + "Quality1FavoriteTrue.jpg": { + ID: 1000005, + Photo: PhotoFixtures.Pointer("Photo17"), + PhotoID: 1000017, + PhotoUUID: "pt9jtdre2lvl0y24", + FileUUID: "ft4es39w45bnlqdw", + FileName: "Quality1FavoriteTrue.jpg", + OriginalName: "Quality1FavoriteTrue.jpg", + FileHash: "acad9168fa6acc5c5c2965ddf6ec465ca42fd819", + FileModified: time.Date(2017, 1, 6, 2, 6, 51, 0, time.UTC), + FileSize: 500, + FileType: "jpg", + FileMime: "image/jpg", + FilePrimary: true, + FileSidecar: false, + FileVideo: false, + FileMissing: false, + FileDuplicate: false, + FilePortrait: false, + FileWidth: 1200, + FileHeight: 1600, + FileOrientation: 6, + FileAspectRatio: 0.75, + FileMainColor: "blue", + FileColors: "266111000", + FileLuminance: "DC42844C8", + FileDiff: 800, + FileChroma: 26, + FileNotes: "", + FileError: "", + Share: []FileShare{}, + Sync: []FileSync{}, + Links: []Link{}, + CreatedAt: time.Date(2018, 1, 1, 2, 6, 51, 0, time.UTC), + CreatedIn: 2, + UpdatedAt: time.Date(2029, 3, 28, 14, 6, 0, 0, time.UTC), + UpdatedIn: 0, + DeletedAt: nil, + }, + "missing.jpg": { + ID: 1000006, + Photo: PhotoFixtures.Pointer("Photo15"), + PhotoID: 1000015, + PhotoUUID: "pt9jtdre2lvl0y22", + FileUUID: "ft5es39w45bnlqdw", + FileName: "missing.jpg", + OriginalName: "missing.jpg", + FileHash: "acad9168fa6acc5c5c2965ddf6ec465ca42fd819", + FileModified: time.Date(2017, 1, 6, 2, 6, 51, 0, time.UTC), + FileSize: 500, + FileType: "jpg", + FileMime: "image/jpg", + FilePrimary: true, + FileSidecar: false, + FileVideo: false, + FileMissing: true, + FileDuplicate: false, + FilePortrait: false, + FileWidth: 1200, + FileHeight: 1600, + FileOrientation: 6, + FileAspectRatio: 0.75, + FileMainColor: "blue", + FileColors: "266111000", + FileLuminance: "DC42844C8", + FileDiff: 800, + FileChroma: 26, + FileNotes: "", + FileError: "", + Share: []FileShare{}, + Sync: []FileSync{}, + Links: []Link{}, + CreatedAt: time.Date(2018, 1, 1, 2, 6, 51, 0, time.UTC), + CreatedIn: 2, + UpdatedAt: time.Date(2029, 3, 28, 14, 6, 0, 0, time.UTC), + UpdatedIn: 0, + DeletedAt: nil, + }, } var FileFixturesExampleJPG = FileFixtures["exampleFileName.jpg"] diff --git a/internal/entity/photo_fixtures.go b/internal/entity/photo_fixtures.go index 753b3df9e..476e38e57 100644 --- a/internal/entity/photo_fixtures.go +++ b/internal/entity/photo_fixtures.go @@ -870,6 +870,55 @@ var PhotoFixtures = PhotoMap{ EditedAt: nil, DeletedAt: nil, }, + "Photo17": { + ID: 1000017, + PhotoUUID: "pt9jtdre2lvl0y24", + TakenAt: time.Date(2013, 11, 11, 9, 7, 18, 0, time.UTC), + TakenAtLocal: time.Date(2013, 11, 11, 9, 7, 18, 0, time.UTC), + TakenSrc: "", + PhotoTitle: "Quality1FavoriteTrue", + TitleSrc: "", + PhotoPath: "", + PhotoName: "", + PhotoQuality: 0, + PhotoResolution: 0, + PhotoFavorite: true, + PhotoPrivate: false, + PhotoVideo: false, + PhotoLat: 1.234, + PhotoLng: 4.321, + PhotoAltitude: 3, + PhotoIso: 0, + PhotoFocalLength: 0, + PhotoFNumber: 0, + PhotoExposure: "", + CameraID: 0, + CameraSerial: "", + CameraSrc: "", + LensID: 0, + PlaceID: "", + LocationID: "", + LocationSrc: "location", + TimeZone: "", + PhotoCountry: "", + PhotoYear: 0, + PhotoMonth: 0, + Description: DescriptionFixtures.Get("lake", 1000015), + DescriptionSrc: "location", + Camera: nil, + Lens: nil, + Location: nil, + Place: nil, + Links: []Link{}, + Keywords: []Keyword{}, + Albums: []Album{}, + Files: []File{}, + Labels: []PhotoLabel{LabelFixtures.PhotoLabel(10000015, "landscape", 20, "image")}, + CreatedAt: time.Date(2019, 1, 1, 0, 0, 0, 0, time.UTC), + UpdatedAt: time.Date(2020, 1, 1, 0, 0, 0, 0, time.UTC), + EditedAt: nil, + DeletedAt: nil, + }, } // CreatePhotoFixtures inserts known entities into the database for testing.