2020-05-01 13:12:02 +02:00
|
|
|
package entity
|
|
|
|
|
|
|
|
var PhotoKeywordFixtures = map[string]PhotoKeyword{
|
|
|
|
"1": {
|
|
|
|
PhotoID: 1000004,
|
|
|
|
KeywordID: 1000000,
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
2020-05-08 14:18:11 +02:00
|
|
|
var PhotoKeywordFixture1 = PhotoKeywordFixtures["1"]
|
|
|
|
|
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)
|
|
|
|
}
|
|
|
|
}
|