You've already forked gun-manager-backend
initial commit
This commit is contained in:
22
sql/types.go
Normal file
22
sql/types.go
Normal 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"`
|
||||
}
|
||||
Reference in New Issue
Block a user