From 62142a68368b026b2447f9765a02f0e1076ff185 Mon Sep 17 00:00:00 2001 From: tx7do Date: Tue, 31 Oct 2023 04:46:17 +0800 Subject: [PATCH] feat: entgo mixin. --- entgo/mixin/switch_status.go | 1 + 1 file changed, 1 insertion(+) diff --git a/entgo/mixin/switch_status.go b/entgo/mixin/switch_status.go index 9d0d465..a40f4c8 100644 --- a/entgo/mixin/switch_status.go +++ b/entgo/mixin/switch_status.go @@ -29,6 +29,7 @@ func (SwitchStatus) Fields() []ent.Field { // dialect.MySQL: "switch_status", // dialect.Postgres: "switch_status", //}). + Default("ON"). Values( "OFF", "ON",