Please enter the commit message for your changes. Lines starting with '#' will be ignored, and an empty message aborts the commit.

This commit is contained in:
2023-08-07 20:55:24 -04:00
parent 04ebe9e855
commit 7a119a8b60

View File

@@ -46,24 +46,31 @@ func Post(c echo.Context) error {
insertRow := db.InsertGunParams{
Make: sql2.NullString{
String: gun.Make,
Valid: true,
},
Model: sql2.NullString{
String: gun.Model,
Valid: true,
},
SerialNumber: sql2.NullString{
String: gun.SerialNumber,
Valid: true,
},
PurchaseAmount: sql2.NullInt64{
Int64: gun.PurchaseAmount,
Valid: true,
},
ValueAmount: sql2.NullInt64{
Int64: gun.ValueAmount,
Valid: true,
},
DatePurchased: sql2.NullString{
String: gun.DatePurchased,
Valid: true,
},
Notes: sql2.NullString{
String: gun.Notes,
Valid: true,
},
}