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