Updated the SQL template to include some cost of ownership information, at least the first draft of the concept.

This commit is contained in:
2021-09-29 15:16:51 -05:00
parent 5cea8df5f5
commit f866e9bd7d
2 changed files with 86 additions and 6 deletions
+6 -5
View File
@@ -12,15 +12,16 @@ import (
//Go Best practices: https://github.com/golovers/effective-go
type Item struct {
ID int32 `json:"id"`
Name int32 `json:"name"`
ValueCents int32 `json:"valueCents"`
PurchaseCostCents int32 `json:"purchasedCostCents"`
ID int64 `json:"id"`
Name string `json:"name"`
ValueCents int64 `json:"valueCents"`
PurchaseCostCents int64 `json:"purchasedCostCents"`
Aquired time.Time `json:"aquired"`
Description string `json:"description"`
Notes string `json:"notes"`
SoldForCents int32 `json:"soldForCents"`
SoldForCents int64 `json:"soldForCents"`
SoldTo string `json:"soldTo"`
Quantity int64 `json:"quantity"`
Category Category `json:"category"`
Subcategory Subcategory `json:"subcategory"`
}