@@ -0,0 +1,38 @@
|
||||
package storage
|
||||
|
||||
import (
|
||||
"errors"
|
||||
)
|
||||
|
||||
var (
|
||||
// ErrRecordNotFound indicates that a scoped query matched no record.
|
||||
ErrRecordNotFound = errors.New("record not found")
|
||||
// ErrEditConflict indicates a failed optimistic-lock update.
|
||||
ErrEditConflict = errors.New("edit conflict")
|
||||
// ErrConflict indicates a uniqueness or equivalent persistence conflict.
|
||||
ErrConflict = errors.New("conflict")
|
||||
)
|
||||
|
||||
// Models groups the persistence interfaces required by the API application.
|
||||
type Models struct {
|
||||
ApplicationSettings ApplicationSettingsModelInterface
|
||||
Roles RoleModelInterface
|
||||
Gardens GardenModelInterface
|
||||
GardenMembers GardenMemberModelInterface
|
||||
GardenInvites GardenInviteModelInterface
|
||||
Locations LocationModelInterface
|
||||
Plants PlantModelInterface
|
||||
PlantLocations PlantLocationModelInterface
|
||||
Species SpeciesModelInterface
|
||||
CareInstructions CareInstructionModelInterface
|
||||
SpeciesCategories SpeciesCategoryModelInterface
|
||||
TaskPriorities TaskPriorityModelInterface
|
||||
SpeciesTaskTemplates SpeciesTaskTemplateModelInterface
|
||||
Tasks TaskModelInterface
|
||||
Journal JournalModelInterface
|
||||
Images ImageModelInterface
|
||||
Tags TagModelInterface
|
||||
TaskTemplateOptOuts TaskTemplateOptOutModelInterface
|
||||
Tokens TokenModelInterface
|
||||
Users UserModelInterface
|
||||
}
|
||||
Reference in New Issue
Block a user