2020-05-30 15:42:04 +02:00
|
|
|
package entity
|
|
|
|
|
|
|
|
import (
|
|
|
|
"time"
|
|
|
|
)
|
|
|
|
|
|
|
|
var FolderFixtures = map[string]Folder{
|
|
|
|
"1990": {
|
2021-02-07 19:04:17 +01:00
|
|
|
FolderUID: "dqo63pn35k2d495z",
|
2020-05-30 21:11:56 +02:00
|
|
|
Path: "1990",
|
|
|
|
FolderYear: 1990,
|
|
|
|
FolderMonth: 0,
|
2020-05-30 15:42:04 +02:00
|
|
|
FolderCountry: "zz",
|
2020-05-30 21:11:56 +02:00
|
|
|
CreatedAt: time.Date(2020, 3, 6, 2, 6, 51, 0, time.UTC),
|
|
|
|
UpdatedAt: time.Date(2020, 3, 28, 14, 6, 0, 0, time.UTC),
|
|
|
|
DeletedAt: nil,
|
2020-05-30 15:42:04 +02:00
|
|
|
},
|
|
|
|
"1990/04": {
|
2021-02-07 19:04:17 +01:00
|
|
|
FolderUID: "dqo63pn2f87f02xj",
|
2020-05-30 21:11:56 +02:00
|
|
|
Path: "1990/04",
|
|
|
|
FolderYear: 1990,
|
|
|
|
FolderMonth: 4,
|
2020-05-30 15:42:04 +02:00
|
|
|
FolderCountry: "zz",
|
2020-05-30 21:11:56 +02:00
|
|
|
CreatedAt: time.Date(2020, 3, 6, 2, 6, 51, 0, time.UTC),
|
|
|
|
UpdatedAt: time.Date(2020, 3, 28, 14, 6, 0, 0, time.UTC),
|
|
|
|
DeletedAt: nil,
|
2020-05-30 15:42:04 +02:00
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
// CreateFolderFixtures inserts known entities into the database for testing.
|
|
|
|
func CreateFolderFixtures() {
|
|
|
|
for _, entity := range FolderFixtures {
|
|
|
|
Db().Create(&entity)
|
|
|
|
}
|
|
|
|
}
|