Backend: Add fixtures for photokeywords

This commit is contained in:
Theresa Gresch 2020-05-01 13:12:02 +02:00
parent 5d2c4fa5d6
commit 409cea4659

View file

@ -0,0 +1,15 @@
package entity
var PhotoKeywordFixtures = map[string]PhotoKeyword{
"1": {
PhotoID: 1000004,
KeywordID: 1000000,
},
}
// CreatePhotoKeywordFixtures inserts known entities into the database for testing.
func CreatePhotoKeywordFixtures() {
for _, entity := range PhotoKeywordFixtures {
Db().Create(&entity)
}
}