21 lines
391 B
Go
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)
|
|
}
|
|
}
|