Exemplare -> Items

This commit is contained in:
Simon Martens
2025-02-09 18:24:09 +01:00
parent 52239727d4
commit 28b3833228
5 changed files with 51 additions and 13 deletions

20
dbmodels/item.go Normal file
View File

@@ -0,0 +1,20 @@
package dbmodels
import "github.com/pocketbase/pocketbase/core"
type Item struct {
core.BaseModel
Entry string `json:",omitempty" db:"entries"`
Identifier string `json:",omitempty" db:"identifier"`
Location string `json:",omitempty" db:"location"`
Owner string `json:",omitempty" db:"owner"`
Media string `json:",omitempty" db:"media"`
Condition string `json:",omitempty" db:"condition"`
Scans string `json:",omitempty" db:"scans"`
Uri string `json:",omitempty" db:"uri"`
AnnotatioNotes
}
func (i *Item) TableName() string {
return ITEMS_TABLE
}