Initial commit
CI / test (push) Canceled after 0s

This commit is contained in:
2026-09-12 22:22:17 +02:00
commit 904d14b64c
314 changed files with 31884 additions and 0 deletions
+38
View File
@@ -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
}