feat: add UseORM field to Database struct for ORM support

This commit is contained in:
Marvin Zhang
2025-09-16 13:30:50 +08:00
parent 8450b074c0
commit 293e630f6f

View File

@@ -22,6 +22,7 @@ type Database struct {
Active bool `json:"active" bson:"active" description:"Active"`
ActiveAt time.Time `json:"active_ts" bson:"active_ts" description:"Active at"`
IsDefault bool `json:"is_default" bson:"-" binding:"-"`
UseORM bool `json:"use_orm" bson:"use_orm" description:"Use ORM instead of legacy database service"`
MongoParams *struct {
AuthSource string `json:"auth_source,omitempty" bson:"auth_source,omitempty" description:"Auth source"`