This commit is contained in:
2023-08-07 10:14:38 -04:00
parent a30b1769b3
commit 5dd3fa9451
18 changed files with 548 additions and 276 deletions

27
sql/db/models.go Normal file
View File

@@ -0,0 +1,27 @@
// Code generated by sqlc. DO NOT EDIT.
// versions:
// sqlc v1.20.0
package db
import (
"database/sql"
)
type Gun struct {
ID int64 `json:"id"`
Make sql.NullString `json:"make"`
Model sql.NullString `json:"model"`
SerialNumber sql.NullString `json:"serial_number"`
PurchaseAmount sql.NullInt64 `json:"purchase_amount"`
ValueAmount sql.NullInt64 `json:"value_amount"`
DatePurchased sql.NullString `json:"date_purchased"`
Notes sql.NullString `json:"notes"`
}
type Photo struct {
ID int64 `json:"id"`
GunID sql.NullInt64 `json:"gun_id"`
Photo []byte `json:"photo"`
Filename sql.NullString `json:"filename"`
}