initial commit

This commit is contained in:
2023-03-19 22:13:49 -04:00
commit 717c9e08d6
12 changed files with 367 additions and 0 deletions

22
sql/types.go Normal file
View File

@@ -0,0 +1,22 @@
package sql
import "database/sql"
type Gun struct {
Id uint `json:"id"`
Make string `json:"make"`
Model string `json:"model"`
SerialNumber string `json:"serial_number"`
PurchaseAmount uint `json:"purchase_amount"`
ValueAmount uint `json:"value_amount"`
DatePurchased sql.NullString `json:"date_purchased"`
Notes sql.NullString `json:"notes"`
Photos []Photo `json:"photos"`
}
type Photo struct {
Id uint `json:"id"`
GunId uint `json:"gun_id"`
Photo string `json:"photo"`
FileName string `json:"file_name"`
}