photoprism/internal/entity/keyword_fixtures.go
2020-05-01 14:18:51 +02:00

21 lines
391 B
Go

package entity
var KeywordFixtures = map[string]Keyword{
"bridge": {
ID: 1000000,
Keyword: "bridge",
Skip: false,
},
"beach": {
ID: 1000001,
Keyword: "beach",
Skip: false,
},
}
// CreateKeywordFixtures inserts known entities into the database for testing.
func CreateKeywordFixtures() {
for _, entity := range KeywordFixtures {
Db().Create(&entity)
}
}