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(), } }