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",