photoprism/internal/entity/country_fixtures.go

22 lines
526 B
Go
Raw Normal View History

package entity
var CountryFixtures = map[string]Country{
"apple-iphone-se": {
ID: "de",
CountrySlug: "germany",
CountryName: "Germany",
CountryDescription: "Country description",
CountryNotes: "Country Notes",
CountryPhoto: nil,
CountryPhotoID: 0,
New: false,
},
}
// CreateCountryFixtures inserts known entities into the database for testing.
2020-05-01 14:13:59 +02:00
func CreateCountryFixtures() {
for _, entity := range CountryFixtures {
2020-05-01 14:13:59 +02:00
Db().Create(&entity)
}
}