This commit is contained in:
Michael committed 2026-08-06 18:59:38 +12:00
1 parent b6014c6ffc
commit f7037a6780
6 files changed
+11 -5

No files matched your search

+2
View File
@@ -17,6 +17,7 @@ type Car struct {
ID string `db:"id" json:"id"`
UserID string `db:"user_id" json:"userId"`
Rego string `db:"rego" json:"rego"`
Name *string `db:"name" json:"name"`
Make *string `db:"make" json:"make"`
Model *string `db:"model" json:"model"`
Year *int `db:"year" json:"year"`
@@ -38,6 +39,7 @@ type Car struct {
// really "car info" the way these fields are.
type CarInput struct {
Rego string `json:"rego"`
Name *string `json:"name"`
Make *string `json:"make"`
Model *string `json:"model"`
Year *int `json:"year"`