working on location form

This commit is contained in:
2022-04-03 22:04:23 -04:00
parent 03dd723c57
commit 5a71db469a
8 changed files with 181 additions and 29 deletions

View File

@@ -5,9 +5,6 @@ type Location struct {
ID int `storm:"id,increment,index"`
Name string `storm:"unique"`
Description string
CoverPhoto string // A "cover photo" for the location
Photos []string // A list of additional photos for the location
Rooms []Room
Notes string
Address string
SquareFeet int
@@ -16,6 +13,10 @@ type Location struct {
DatePurchased string
PurchasePrice string
CurrentValue string
CoverPhoto string // A "cover photo" for the location
Photos []string // A list of additional photos for the location
Files []string
Rooms []Room
}
// Room is a containerized area at a location
@@ -23,13 +24,13 @@ type Room struct {
ID int `storm:"id,increment,index"`
Name string
Description string
Paint string // Details about the paint
Notes string
SquareFeet int
CoverPhoto string // A "cover photo" for the room
Photos []string // A list of additional photos for the room
Paint string // Details about the paint
Notes string
Cabinets []Cabinet
Items []Item
SquareFeet int
LocationID int //Which location room is assigned to
LocationName string // Location name room belongs to