From 889d01f9d09828ba75fe20326a15de6222276d0b Mon Sep 17 00:00:00 2001 From: Masahiko AMANO Date: Thu, 16 Jan 2025 16:37:26 +0300 Subject: [PATCH] fix(models): fix person model --- internal/models/models.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/models/models.go b/internal/models/models.go index 2c2ac0c..c5af41a 100644 --- a/internal/models/models.go +++ b/internal/models/models.go @@ -8,7 +8,7 @@ import ( type Person struct { ID string `json:"id"` Name string `json:"name"` - Birthdate time.Time `json:"birthdate"` + Birthdate sql.NullTime `json:"birthdate"` Deathdate sql.NullTime `json:"deathdate"` Info sql.NullString `json:"info"` }