Updated the SQL template to include some cost of ownership information, at least the first draft of the concept.
This commit is contained in:
@@ -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"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user