fixing locimage paths, starting room work
This commit is contained in:
13
database.go
13
database.go
@@ -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
|
||||
|
Reference in New Issue
Block a user