From 6a3b64ed28eb3e4569d4050e5eb826a0efe07c77 Mon Sep 17 00:00:00 2001 From: Darko Luketic Date: Fri, 8 Apr 2022 21:25:46 +0200 Subject: [PATCH] logentry.go schema update --- ent/schema/logentry.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ent/schema/logentry.go b/ent/schema/logentry.go index 0105b9d..13035ca 100644 --- a/ent/schema/logentry.go +++ b/ent/schema/logentry.go @@ -19,8 +19,8 @@ func (Logentry) Fields() []ent.Field { field.Time("timestamp").Default(time.Now).Immutable(), field.String("action"), field.Text("data").Optional().Nillable(), - field.Int64("account_id"), - field.Int64("domain_id"), + field.Int64("account_id").Optional(), + field.Int64("domain_id").Optional(), } }