From ba8680beb5d7e09bc7f62bb3c0909f794c454477 Mon Sep 17 00:00:00 2001 From: pluja Date: Tue, 31 Oct 2023 17:59:06 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20chore(service.go):=20add=20defau?= =?UTF-8?q?lt=20value=20for=20category=20field=20to=20improve=20data=20con?= =?UTF-8?q?sistency=20and=20prevent=20null=20values?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ent/schema/service.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ent/schema/service.go b/src/ent/schema/service.go index c7702f6..7e27be4 100644 --- a/src/ent/schema/service.go +++ b/src/ent/schema/service.go @@ -26,6 +26,7 @@ func (Service) Fields() []ent.Field { field.String("description").NotEmpty().StructTag(`json:"description"`), field.String("logo_url").NotEmpty().StructTag(`json:"logo_url"`), field.String("referral").Default("").StructTag(`json:"referral"`), + field.String("category").Default("others").StructTag(`json:"category"`), field.String("listing_comment").Default("").StructTag(`json:"listing_comment"`), field.String("tags").StructTag(`json:"tags"`), field.Strings("urls").StructTag(`json:"urls"`),