2020-05-01 13:12:02 +02:00
|
|
|
package entity
|
|
|
|
|
2020-05-10 19:43:49 +02:00
|
|
|
type PhotoKeywordMap map[string]PhotoKeyword
|
|
|
|
|
|
|
|
var PhotoKeywordFixtures = PhotoKeywordMap{
|
2020-05-01 13:12:02 +02:00
|
|
|
"1": {
|
|
|
|
PhotoID: 1000004,
|
|
|
|
KeywordID: 1000000,
|
|
|
|
},
|
2020-05-11 17:01:05 +02:00
|
|
|
"2": {
|
|
|
|
PhotoID: 1000001,
|
|
|
|
KeywordID: 1000001,
|
|
|
|
},
|
2020-05-14 14:17:12 +02:00
|
|
|
"3": {
|
|
|
|
PhotoID: 1000000,
|
|
|
|
KeywordID: 1000000,
|
|
|
|
},
|
2020-05-25 19:10:44 +02:00
|
|
|
"4": {
|
|
|
|
PhotoID: 1000003,
|
|
|
|
KeywordID: 1000000,
|
|
|
|
},
|
2021-09-21 11:04:17 +02:00
|
|
|
"5": {
|
|
|
|
PhotoID: 1000003,
|
|
|
|
KeywordID: 1000003,
|
|
|
|
},
|
|
|
|
"6": {
|
|
|
|
PhotoID: 1000023,
|
|
|
|
KeywordID: 1000003,
|
|
|
|
},
|
2020-05-01 13:12:02 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// CreatePhotoKeywordFixtures inserts known entities into the database for testing.
|
|
|
|
func CreatePhotoKeywordFixtures() {
|
|
|
|
for _, entity := range PhotoKeywordFixtures {
|
|
|
|
Db().Create(&entity)
|
|
|
|
}
|
|
|
|
}
|