From 293e630f6f09efa644e9ae4a40d87bbbe043e3a8 Mon Sep 17 00:00:00 2001 From: Marvin Zhang Date: Tue, 16 Sep 2025 13:30:50 +0800 Subject: [PATCH] feat: add UseORM field to Database struct for ORM support --- core/models/models/database.go | 1 + 1 file changed, 1 insertion(+) diff --git a/core/models/models/database.go b/core/models/models/database.go index 61621964..9bc1639b 100644 --- a/core/models/models/database.go +++ b/core/models/models/database.go @@ -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"`