feat: entgo mixin.

This commit is contained in:
tx7do
2023-10-31 04:46:17 +08:00
parent 9990fa43e0
commit 62142a6836

View File

@@ -29,6 +29,7 @@ func (SwitchStatus) Fields() []ent.Field {
// dialect.MySQL: "switch_status",
// dialect.Postgres: "switch_status",
//}).
Default("ON").
Values(
"OFF",
"ON",