fixing locimage paths, starting room work

This commit is contained in:
2022-01-08 22:50:46 -05:00
parent e84f57692a
commit c811a8e2b9
10 changed files with 258 additions and 41 deletions

View File

@@ -19,13 +19,16 @@ type Location struct {
// Room is a containerized area at a location
type Room struct {
ID int `storm:"id,increment,index"`
ID int `storm:"id,increment,index"`
Name string `storm:"unique"`
Description string
CoverPhoto string // A "cover photo" for the room
Photos []string // A list of additional photos for the room
Name string `storm:"unique"`
Description string
LocationID int //Which location room is assigned to
Notes string
Cabinets []Cabinet
Items []Item
LocationID int //Which location room is assigned to
}
// Cabinet is a containerized area in a room
@@ -42,7 +45,7 @@ type Item struct {
ID int `storm:"id, increment"`
RoomID int // Room ID that item is assigned to
CoverPhoto string // A "cover photo" for the item
Photos []string // A list of additional photos for the room
Photos []string // A list of additional photos for the item
Count int // If item has duplicates
Name string
Product string