photoprism/internal/entity/album_fixtures.go

754 lines
21 KiB
Go
Raw Normal View History

2020-04-30 17:39:31 +02:00
package entity
import (
"time"
)
type AlbumMap map[string]Album
2020-05-11 14:41:20 +02:00
func (m AlbumMap) Get(name string) Album {
if result, ok := m[name]; ok {
return result
}
return *NewAlbum(name, AlbumDefault)
2020-05-11 14:41:20 +02:00
}
func (m AlbumMap) Pointer(name string) *Album {
if result, ok := m[name]; ok {
return &result
}
return NewAlbum(name, AlbumDefault)
2020-05-11 14:41:20 +02:00
}
var AlbumFixtures = AlbumMap{
2020-04-30 17:39:31 +02:00
"christmas2030": {
ID: 1000000,
AlbumUID: "at9lxuqxpogaaba7",
2021-07-22 13:52:22 +02:00
AlbumSlug: "christmas-2030",
AlbumPath: "",
AlbumType: AlbumDefault,
2021-07-22 13:52:22 +02:00
AlbumTitle: "Christmas 2030",
AlbumLocation: "",
AlbumCategory: "",
AlbumCaption: "",
AlbumDescription: "Wonderful Christmas",
2020-04-30 17:39:31 +02:00
AlbumNotes: "",
2021-07-22 13:52:22 +02:00
AlbumFilter: "",
2020-04-30 17:39:31 +02:00
AlbumOrder: "oldest",
AlbumTemplate: "",
AlbumCountry: UnknownID,
2021-07-22 13:52:22 +02:00
AlbumYear: 0,
AlbumMonth: 0,
AlbumDay: 0,
2020-04-30 17:39:31 +02:00
AlbumFavorite: false,
2021-07-22 13:52:22 +02:00
AlbumPrivate: false,
2020-04-30 17:39:31 +02:00
CreatedAt: time.Date(2019, 1, 1, 0, 0, 0, 0, time.UTC),
UpdatedAt: time.Date(2020, 1, 1, 0, 0, 0, 0, time.UTC),
DeletedAt: nil,
},
"holiday-2030": {
ID: 1000001,
AlbumUID: "at9lxuqxpogaaba8",
2020-04-30 17:39:31 +02:00
AlbumSlug: "holiday-2030",
2021-07-22 13:52:22 +02:00
AlbumPath: "",
AlbumType: AlbumDefault,
2021-07-22 13:52:22 +02:00
AlbumTitle: "Holiday 2030",
AlbumLocation: "",
AlbumCategory: "",
AlbumCaption: "",
AlbumDescription: "Wonderful Christmas Holiday",
2020-04-30 17:39:31 +02:00
AlbumNotes: "",
2021-07-22 13:52:22 +02:00
AlbumFilter: "",
2020-04-30 17:39:31 +02:00
AlbumOrder: "newest",
AlbumTemplate: "",
AlbumCountry: UnknownID,
2021-07-22 13:52:22 +02:00
AlbumYear: 0,
AlbumMonth: 0,
AlbumDay: 0,
2020-04-30 17:39:31 +02:00
AlbumFavorite: true,
2021-07-22 13:52:22 +02:00
AlbumPrivate: false,
2020-04-30 17:39:31 +02:00
CreatedAt: time.Date(2019, 7, 1, 0, 0, 0, 0, time.UTC),
UpdatedAt: time.Date(2020, 2, 1, 0, 0, 0, 0, time.UTC),
DeletedAt: nil,
},
"berlin-2019": {
ID: 1000002,
AlbumUID: "at9lxuqxpogaaba9",
2020-04-30 17:39:31 +02:00
AlbumSlug: "berlin-2019",
2021-07-22 13:52:22 +02:00
AlbumPath: "",
AlbumType: AlbumDefault,
AlbumTitle: "Berlin 2019",
2021-07-22 13:52:22 +02:00
AlbumLocation: "Berlin",
AlbumCategory: "City",
AlbumCaption: "",
AlbumDescription: "We love Berlin 🌿!",
2020-04-30 17:39:31 +02:00
AlbumNotes: "",
2021-07-22 13:52:22 +02:00
AlbumFilter: "",
2020-04-30 17:39:31 +02:00
AlbumOrder: "oldest",
AlbumTemplate: "",
2021-07-22 13:52:22 +02:00
AlbumCountry: "",
AlbumYear: 0,
AlbumMonth: 0,
AlbumDay: 0,
2020-04-30 17:39:31 +02:00
AlbumFavorite: false,
2021-07-22 13:52:22 +02:00
AlbumPrivate: false,
2020-04-30 17:39:31 +02:00
CreatedAt: time.Date(2019, 7, 1, 0, 0, 0, 0, time.UTC),
UpdatedAt: time.Date(2020, 2, 1, 0, 0, 0, 0, time.UTC),
DeletedAt: nil,
},
"april-1990": {
ID: 1000003,
AlbumUID: "at1lxuqipogaaba1",
AlbumSlug: "april-1990",
2021-07-22 13:52:22 +02:00
AlbumPath: "1990/04",
AlbumType: AlbumFolder,
AlbumTitle: "April 1990",
2021-07-22 13:52:22 +02:00
AlbumLocation: "",
AlbumCategory: "Friends",
AlbumCaption: "",
AlbumDescription: "Spring is the time of year when many things change.",
2021-07-22 13:52:22 +02:00
AlbumNotes: "",
AlbumFilter: "path:\"1990/04\" public:true",
AlbumOrder: "added",
AlbumTemplate: "",
2021-07-22 13:52:22 +02:00
AlbumCountry: "ca",
AlbumYear: 1990,
AlbumMonth: 4,
AlbumDay: 11,
AlbumFavorite: false,
2021-07-22 13:52:22 +02:00
AlbumPrivate: false,
CreatedAt: time.Date(2019, 7, 1, 0, 0, 0, 0, time.UTC),
UpdatedAt: time.Date(2020, 2, 1, 0, 0, 0, 0, time.UTC),
DeletedAt: nil,
},
"import": {
ID: 1000004,
AlbumUID: "at6axuzitogaaiax",
AlbumSlug: "import",
2021-07-22 13:52:22 +02:00
AlbumPath: "",
AlbumType: AlbumDefault,
AlbumTitle: "Import Album",
2021-07-22 13:52:22 +02:00
AlbumLocation: "",
AlbumCategory: "",
AlbumCaption: "",
AlbumDescription: "",
AlbumNotes: "",
2021-07-22 13:52:22 +02:00
AlbumFilter: "",
AlbumOrder: "name",
AlbumTemplate: "",
2021-07-22 13:52:22 +02:00
AlbumCountry: "ca",
AlbumYear: 0,
AlbumMonth: 0,
AlbumDay: 0,
AlbumFavorite: false,
2021-07-22 13:52:22 +02:00
AlbumPrivate: false,
CreatedAt: time.Date(2020, 1, 1, 0, 0, 0, 0, time.UTC),
UpdatedAt: time.Date(2020, 2, 1, 0, 0, 0, 0, time.UTC),
DeletedAt: nil,
},
"emptyMoment": {
ID: 1000005,
AlbumUID: "at7axuzitogaaiax",
AlbumSlug: "empty-moment",
2021-07-22 13:52:22 +02:00
AlbumPath: "",
AlbumType: AlbumMoment,
AlbumTitle: "Empty Moment",
AlbumLocation: "Favorite Park",
2021-07-22 13:52:22 +02:00
AlbumCategory: "Fun",
AlbumCaption: "",
AlbumDescription: "",
AlbumNotes: "",
2021-07-22 13:52:22 +02:00
AlbumFilter: "public:true country:at year:2016",
AlbumOrder: "oldest",
AlbumTemplate: "",
2021-07-22 13:52:22 +02:00
AlbumCountry: "at",
AlbumYear: 2016,
AlbumMonth: 0,
AlbumDay: 0,
AlbumFavorite: false,
2021-07-22 13:52:22 +02:00
AlbumPrivate: false,
CreatedAt: time.Date(2020, 1, 1, 0, 0, 0, 0, time.UTC),
UpdatedAt: time.Date(2020, 2, 1, 0, 0, 0, 0, time.UTC),
DeletedAt: nil,
},
2021-02-24 11:38:28 +01:00
"2016-04": {
ID: 1000006,
AlbumUID: "at1lxuqipogaabj8",
AlbumSlug: "2016-04",
2021-07-22 13:52:22 +02:00
AlbumPath: "2016/04",
2021-02-24 11:38:28 +01:00
AlbumType: AlbumFolder,
AlbumTitle: "April 2016",
2021-07-22 13:52:22 +02:00
AlbumLocation: "",
AlbumCategory: "Fun",
AlbumCaption: "",
2021-02-24 11:38:28 +01:00
AlbumDescription: "",
AlbumNotes: "",
2021-07-22 13:52:22 +02:00
AlbumFilter: "path:\"2016/04\" public:true",
AlbumOrder: "added",
2021-02-24 11:38:28 +01:00
AlbumTemplate: "",
AlbumCountry: UnknownID,
2021-07-22 13:52:22 +02:00
AlbumYear: 0,
AlbumMonth: 0,
AlbumDay: 0,
2021-02-24 11:38:28 +01:00
AlbumFavorite: false,
CreatedAt: time.Date(2019, 7, 1, 0, 0, 0, 0, time.UTC),
UpdatedAt: time.Date(2020, 2, 1, 0, 0, 0, 0, time.UTC),
DeletedAt: nil,
},
2021-10-22 16:03:50 +02:00
"september-2021": {
ID: 1000007,
AlbumUID: "at1lxuqipogaabj9",
AlbumSlug: "september-2021",
AlbumPath: "",
AlbumType: AlbumMonth,
AlbumTitle: "September 2021",
AlbumLocation: "",
AlbumCategory: "",
AlbumCaption: "",
AlbumDescription: "",
AlbumNotes: "",
AlbumFilter: "public:true year:2021 month:9",
AlbumOrder: "newest",
AlbumTemplate: "",
AlbumCountry: UnknownID,
AlbumYear: 0,
AlbumMonth: 0,
AlbumDay: 0,
AlbumFavorite: false,
CreatedAt: time.Date(2019, 7, 1, 0, 0, 0, 0, time.UTC),
UpdatedAt: time.Date(2020, 2, 1, 0, 0, 0, 0, time.UTC),
DeletedAt: nil,
},
2021-11-22 13:26:01 +01:00
"california-usa": {
ID: 1000008,
AlbumUID: "at1lxuqipogaab11",
AlbumSlug: "california-usa",
AlbumPath: "",
AlbumType: AlbumState,
AlbumTitle: "California / USA",
AlbumLocation: "",
AlbumCategory: "",
AlbumCaption: "",
AlbumDescription: "",
AlbumNotes: "",
AlbumFilter: "public:true country:us state:California",
AlbumOrder: "newest",
AlbumTemplate: "",
AlbumCountry: "us",
AlbumYear: 0,
AlbumMonth: 0,
AlbumDay: 0,
AlbumFavorite: false,
CreatedAt: time.Date(2019, 7, 1, 0, 0, 0, 0, time.UTC),
UpdatedAt: time.Date(2020, 2, 1, 0, 0, 0, 0, time.UTC),
DeletedAt: nil,
},
2021-11-24 17:51:39 +01:00
"california-duplicate-1": {
ID: 1000009,
AlbumUID: "at1lxuqipotaab12",
AlbumSlug: "california-usa",
AlbumPath: "",
AlbumType: AlbumState,
AlbumTitle: "California / USA",
AlbumLocation: "",
AlbumCategory: "",
AlbumCaption: "",
AlbumDescription: "",
AlbumNotes: "",
AlbumFilter: "country:us state:California",
AlbumOrder: "newest",
AlbumTemplate: "",
AlbumCountry: "us",
AlbumYear: 0,
AlbumMonth: 0,
AlbumDay: 0,
AlbumFavorite: false,
CreatedAt: time.Date(2019, 7, 1, 0, 0, 0, 0, time.UTC),
UpdatedAt: time.Date(2020, 2, 1, 0, 0, 0, 0, time.UTC),
DeletedAt: nil,
},
"california-duplicate-2": {
ID: 1000010,
AlbumUID: "at1lxuqipotaab19",
AlbumSlug: "california",
AlbumPath: "",
AlbumType: AlbumState,
AlbumTitle: "California",
AlbumLocation: "",
AlbumCategory: "",
AlbumCaption: "",
AlbumDescription: "",
AlbumNotes: "",
AlbumFilter: "public:true country:us state:California",
AlbumOrder: "newest",
AlbumTemplate: "",
AlbumCountry: "us",
AlbumYear: 0,
AlbumMonth: 0,
AlbumDay: 0,
AlbumFavorite: false,
CreatedAt: time.Date(2019, 7, 1, 0, 0, 0, 0, time.UTC),
UpdatedAt: time.Date(2020, 2, 1, 0, 0, 0, 0, time.UTC),
DeletedAt: nil,
},
2022-03-28 11:17:52 +02:00
"&ilikefood": {
ID: 1000011,
AlbumUID: "at1lxuqipotaab19",
AlbumSlug: "&ilikefood",
AlbumPath: "",
AlbumType: AlbumDefault,
AlbumTitle: "&IlikeFood",
AlbumLocation: "",
AlbumCategory: "",
AlbumCaption: "",
AlbumDescription: "",
AlbumNotes: "",
AlbumFilter: "",
AlbumOrder: "name",
AlbumTemplate: "",
AlbumCountry: "zz",
AlbumYear: 0,
AlbumMonth: 0,
AlbumDay: 0,
AlbumFavorite: false,
AlbumPrivate: false,
CreatedAt: time.Date(2020, 1, 1, 0, 0, 0, 0, time.UTC),
UpdatedAt: time.Date(2020, 2, 1, 0, 0, 0, 0, time.UTC),
DeletedAt: nil,
},
"i-love-%-dog": {
ID: 1000012,
AlbumUID: "at1lxuqipotaab20",
AlbumSlug: "i-love-%-dog",
AlbumPath: "",
AlbumType: AlbumDefault,
AlbumTitle: "I love % dog",
AlbumLocation: "",
AlbumCategory: "",
AlbumCaption: "",
AlbumDescription: "",
AlbumNotes: "",
AlbumFilter: "",
AlbumOrder: "name",
AlbumTemplate: "",
AlbumCountry: "zz",
AlbumYear: 0,
AlbumMonth: 0,
AlbumDay: 0,
AlbumFavorite: false,
AlbumPrivate: false,
CreatedAt: time.Date(2020, 1, 1, 0, 0, 0, 0, time.UTC),
UpdatedAt: time.Date(2020, 2, 1, 0, 0, 0, 0, time.UTC),
DeletedAt: nil,
},
"%gold": {
ID: 1000013,
AlbumUID: "at1lxuqipotaab21",
AlbumSlug: "%gold",
AlbumPath: "",
AlbumType: AlbumDefault,
AlbumTitle: "%gold",
AlbumLocation: "",
AlbumCategory: "",
AlbumCaption: "",
AlbumDescription: "",
AlbumNotes: "",
AlbumFilter: "",
AlbumOrder: "name",
AlbumTemplate: "",
AlbumCountry: "zz",
AlbumYear: 0,
AlbumMonth: 0,
AlbumDay: 0,
AlbumFavorite: false,
AlbumPrivate: false,
CreatedAt: time.Date(2020, 1, 1, 0, 0, 0, 0, time.UTC),
UpdatedAt: time.Date(2020, 2, 1, 0, 0, 0, 0, time.UTC),
DeletedAt: nil,
},
"sale%": {
ID: 1000014,
AlbumUID: "at1lxuqipotaab22",
AlbumSlug: "sale%",
AlbumPath: "",
AlbumType: AlbumDefault,
AlbumTitle: "sale%",
AlbumLocation: "",
AlbumCategory: "",
AlbumCaption: "",
AlbumDescription: "",
AlbumNotes: "",
AlbumFilter: "",
AlbumOrder: "name",
AlbumTemplate: "",
AlbumCountry: "zz",
AlbumYear: 0,
AlbumMonth: 0,
AlbumDay: 0,
AlbumFavorite: false,
AlbumPrivate: false,
CreatedAt: time.Date(2020, 1, 1, 0, 0, 0, 0, time.UTC),
UpdatedAt: time.Date(2020, 2, 1, 0, 0, 0, 0, time.UTC),
DeletedAt: nil,
},
"pets&dogs": {
ID: 1000015,
AlbumUID: "at1lxuqipotaab23",
AlbumSlug: "pest&dogs",
AlbumPath: "",
AlbumType: AlbumDefault,
AlbumTitle: "Pets & Dogs",
AlbumLocation: "",
AlbumCategory: "",
AlbumCaption: "",
AlbumDescription: "",
AlbumNotes: "",
AlbumFilter: "",
AlbumOrder: "name",
AlbumTemplate: "",
AlbumCountry: "zz",
AlbumYear: 0,
AlbumMonth: 0,
AlbumDay: 0,
AlbumFavorite: false,
AlbumPrivate: false,
CreatedAt: time.Date(2020, 1, 1, 0, 0, 0, 0, time.UTC),
UpdatedAt: time.Date(2020, 2, 1, 0, 0, 0, 0, time.UTC),
DeletedAt: nil,
},
"light&": {
ID: 1000016,
AlbumUID: "at1lxuqipotaab24",
AlbumSlug: "light&",
AlbumPath: "",
AlbumType: AlbumDefault,
AlbumTitle: "Light&",
AlbumLocation: "",
AlbumCategory: "",
AlbumCaption: "",
AlbumDescription: "",
AlbumNotes: "",
AlbumFilter: "",
AlbumOrder: "name",
AlbumTemplate: "",
AlbumCountry: "zz",
AlbumYear: 0,
AlbumMonth: 0,
AlbumDay: 0,
AlbumFavorite: false,
AlbumPrivate: false,
CreatedAt: time.Date(2020, 1, 1, 0, 0, 0, 0, time.UTC),
UpdatedAt: time.Date(2020, 2, 1, 0, 0, 0, 0, time.UTC),
DeletedAt: nil,
},
2022-03-28 14:25:03 +02:00
"'family": {
ID: 1000017,
AlbumUID: "at1lxuqipotaab25",
AlbumSlug: "'family",
AlbumPath: "",
AlbumType: AlbumDefault,
AlbumTitle: "'Family",
AlbumLocation: "",
AlbumCategory: "",
AlbumCaption: "",
AlbumDescription: "",
AlbumNotes: "",
AlbumFilter: "",
AlbumOrder: "name",
AlbumTemplate: "",
AlbumCountry: "zz",
AlbumYear: 0,
AlbumMonth: 0,
AlbumDay: 0,
AlbumFavorite: false,
AlbumPrivate: false,
CreatedAt: time.Date(2020, 1, 1, 0, 0, 0, 0, time.UTC),
UpdatedAt: time.Date(2020, 2, 1, 0, 0, 0, 0, time.UTC),
DeletedAt: nil,
},
"father's-day": {
ID: 1000018,
AlbumUID: "at1lxuqipotaab26",
AlbumSlug: "father's-day",
AlbumPath: "",
AlbumType: AlbumDefault,
AlbumTitle: "Father's Day",
AlbumLocation: "",
AlbumCategory: "",
AlbumCaption: "",
AlbumDescription: "",
AlbumNotes: "",
AlbumFilter: "",
AlbumOrder: "name",
AlbumTemplate: "",
AlbumCountry: "zz",
AlbumYear: 0,
AlbumMonth: 0,
AlbumDay: 0,
AlbumFavorite: false,
AlbumPrivate: false,
CreatedAt: time.Date(2020, 1, 1, 0, 0, 0, 0, time.UTC),
UpdatedAt: time.Date(2020, 2, 1, 0, 0, 0, 0, time.UTC),
DeletedAt: nil,
},
"ice-cream'": {
ID: 1000019,
AlbumUID: "at1lxuqipotaab27",
AlbumSlug: "ice-cream'",
AlbumPath: "",
AlbumType: AlbumDefault,
AlbumTitle: "Ice Cream'",
AlbumLocation: "",
AlbumCategory: "",
AlbumCaption: "",
AlbumDescription: "",
AlbumNotes: "",
AlbumFilter: "",
AlbumOrder: "name",
AlbumTemplate: "",
AlbumCountry: "zz",
AlbumYear: 0,
AlbumMonth: 0,
AlbumDay: 0,
AlbumFavorite: false,
AlbumPrivate: false,
CreatedAt: time.Date(2020, 1, 1, 0, 0, 0, 0, time.UTC),
UpdatedAt: time.Date(2020, 2, 1, 0, 0, 0, 0, time.UTC),
DeletedAt: nil,
},
"*forrest": {
ID: 1000020,
AlbumUID: "at1lxuqipotaab28",
AlbumSlug: "*forrest",
AlbumPath: "",
AlbumType: AlbumDefault,
AlbumTitle: "*Forrest",
AlbumLocation: "",
AlbumCategory: "",
AlbumCaption: "",
AlbumDescription: "",
AlbumNotes: "",
AlbumFilter: "",
AlbumOrder: "name",
AlbumTemplate: "",
AlbumCountry: "zz",
AlbumYear: 0,
AlbumMonth: 0,
AlbumDay: 0,
AlbumFavorite: false,
AlbumPrivate: false,
CreatedAt: time.Date(2020, 1, 1, 0, 0, 0, 0, time.UTC),
UpdatedAt: time.Date(2020, 2, 1, 0, 0, 0, 0, time.UTC),
DeletedAt: nil,
},
"my*kids": {
ID: 1000021,
AlbumUID: "at1lxuqipotaab29",
AlbumSlug: "my*kids",
AlbumPath: "",
AlbumType: AlbumDefault,
AlbumTitle: "My*Kids",
AlbumLocation: "",
AlbumCategory: "",
AlbumCaption: "",
AlbumDescription: "",
AlbumNotes: "",
AlbumFilter: "",
AlbumOrder: "name",
AlbumTemplate: "",
AlbumCountry: "zz",
AlbumYear: 0,
AlbumMonth: 0,
AlbumDay: 0,
AlbumFavorite: false,
AlbumPrivate: false,
CreatedAt: time.Date(2020, 1, 1, 0, 0, 0, 0, time.UTC),
UpdatedAt: time.Date(2020, 2, 1, 0, 0, 0, 0, time.UTC),
DeletedAt: nil,
},
"yoga***": {
ID: 1000022,
AlbumUID: "at1lxuqipotaab30",
AlbumSlug: "yoga***",
AlbumPath: "",
AlbumType: AlbumDefault,
AlbumTitle: "Yoga***",
AlbumLocation: "",
AlbumCategory: "",
AlbumCaption: "",
AlbumDescription: "",
AlbumNotes: "",
AlbumFilter: "",
AlbumOrder: "name",
AlbumTemplate: "",
AlbumCountry: "zz",
AlbumYear: 0,
AlbumMonth: 0,
AlbumDay: 0,
AlbumFavorite: false,
AlbumPrivate: false,
CreatedAt: time.Date(2020, 1, 1, 0, 0, 0, 0, time.UTC),
UpdatedAt: time.Date(2020, 2, 1, 0, 0, 0, 0, time.UTC),
DeletedAt: nil,
},
"|banana": {
ID: 1000023,
AlbumUID: "at1lxuqipotaab31",
AlbumSlug: "|banana",
AlbumPath: "",
AlbumType: AlbumDefault,
AlbumTitle: "|Banana",
AlbumLocation: "",
AlbumCategory: "",
AlbumCaption: "",
AlbumDescription: "",
AlbumNotes: "",
AlbumFilter: "",
AlbumOrder: "name",
AlbumTemplate: "",
AlbumCountry: "zz",
AlbumYear: 0,
AlbumMonth: 0,
AlbumDay: 0,
AlbumFavorite: false,
AlbumPrivate: false,
CreatedAt: time.Date(2020, 1, 1, 0, 0, 0, 0, time.UTC),
UpdatedAt: time.Date(2020, 2, 1, 0, 0, 0, 0, time.UTC),
DeletedAt: nil,
},
"blue|": {
ID: 1000024,
AlbumUID: "at1lxuqipotaab33",
AlbumSlug: "blue|",
AlbumPath: "",
AlbumType: AlbumDefault,
AlbumTitle: "Blue|",
AlbumLocation: "",
AlbumCategory: "",
AlbumCaption: "",
AlbumDescription: "",
AlbumNotes: "",
AlbumFilter: "",
AlbumOrder: "name",
AlbumTemplate: "",
AlbumCountry: "zz",
AlbumYear: 0,
AlbumMonth: 0,
AlbumDay: 0,
AlbumFavorite: false,
AlbumPrivate: false,
CreatedAt: time.Date(2020, 1, 1, 0, 0, 0, 0, time.UTC),
UpdatedAt: time.Date(2020, 2, 1, 0, 0, 0, 0, time.UTC),
DeletedAt: nil,
},
"345-shirt": {
ID: 1000025,
AlbumUID: "at1lxuqipotaab34",
AlbumSlug: "345-shirt",
AlbumPath: "",
AlbumType: AlbumDefault,
AlbumTitle: "345 Shirt",
AlbumLocation: "",
AlbumCategory: "",
AlbumCaption: "",
AlbumDescription: "",
AlbumNotes: "",
AlbumFilter: "",
AlbumOrder: "name",
AlbumTemplate: "",
AlbumCountry: "zz",
AlbumYear: 0,
AlbumMonth: 0,
AlbumDay: 0,
AlbumFavorite: false,
AlbumPrivate: false,
CreatedAt: time.Date(2020, 1, 1, 0, 0, 0, 0, time.UTC),
UpdatedAt: time.Date(2020, 2, 1, 0, 0, 0, 0, time.UTC),
DeletedAt: nil,
},
"color-555-blue": {
ID: 1000026,
AlbumUID: "at1lxuqipotaab35",
AlbumSlug: "color-555-blue",
AlbumPath: "",
AlbumType: AlbumDefault,
AlbumTitle: "Color555 Blue",
AlbumLocation: "",
AlbumCategory: "",
AlbumCaption: "",
AlbumDescription: "",
AlbumNotes: "",
AlbumFilter: "",
AlbumOrder: "name",
AlbumTemplate: "",
AlbumCountry: "zz",
AlbumYear: 0,
AlbumMonth: 0,
AlbumDay: 0,
AlbumFavorite: false,
AlbumPrivate: false,
CreatedAt: time.Date(2020, 1, 1, 0, 0, 0, 0, time.UTC),
UpdatedAt: time.Date(2020, 2, 1, 0, 0, 0, 0, time.UTC),
DeletedAt: nil,
},
"route-66": {
ID: 1000027,
AlbumUID: "at1lxuqipotaab36",
AlbumSlug: "route-66",
AlbumPath: "",
AlbumType: AlbumDefault,
AlbumTitle: "Route 66",
AlbumLocation: "",
AlbumCategory: "",
AlbumCaption: "",
AlbumDescription: "",
AlbumNotes: "",
AlbumFilter: "",
AlbumOrder: "name",
AlbumTemplate: "",
AlbumCountry: "zz",
AlbumYear: 0,
AlbumMonth: 0,
AlbumDay: 0,
AlbumFavorite: false,
AlbumPrivate: false,
CreatedAt: time.Date(2020, 1, 1, 0, 0, 0, 0, time.UTC),
UpdatedAt: time.Date(2020, 2, 1, 0, 0, 0, 0, time.UTC),
DeletedAt: nil,
},
"red|green": {
ID: 1000028,
AlbumUID: "at1lxuqipotaab32",
AlbumSlug: "red|green",
AlbumPath: "",
AlbumType: AlbumDefault,
AlbumTitle: "Red|Green",
AlbumLocation: "",
AlbumCategory: "",
AlbumCaption: "",
AlbumDescription: "",
AlbumNotes: "",
AlbumFilter: "",
AlbumOrder: "name",
AlbumTemplate: "",
AlbumCountry: "zz",
AlbumYear: 0,
AlbumMonth: 0,
AlbumDay: 0,
AlbumFavorite: false,
AlbumPrivate: false,
CreatedAt: time.Date(2020, 1, 1, 0, 0, 0, 0, time.UTC),
UpdatedAt: time.Date(2020, 2, 1, 0, 0, 0, 0, time.UTC),
DeletedAt: nil,
},
2020-04-30 17:39:31 +02:00
}
// CreateAlbumFixtures inserts known entities into the database for testing.
2020-05-01 14:13:59 +02:00
func CreateAlbumFixtures() {
2020-04-30 17:39:31 +02:00
for _, entity := range AlbumFixtures {
2020-05-01 14:13:59 +02:00
Db().Create(&entity)
2020-04-30 17:39:31 +02:00
}
}