2024-11-14 17:02:41 +08:00
|
|
|
package flow_definition
|
|
|
|
|
|
|
|
import (
|
|
|
|
"approveflow/app/base"
|
|
|
|
"approveflow/app/provider/database_connect"
|
|
|
|
tests "approveflow/test"
|
|
|
|
"testing"
|
|
|
|
)
|
|
|
|
|
|
|
|
func TestModel(t *testing.T) {
|
|
|
|
|
|
|
|
container := tests.InitBaseContainer()
|
|
|
|
databaseConnectService := container.MustMake(database_connect.DatabaseConnectKey).(database_connect.Service)
|
|
|
|
|
|
|
|
db := databaseConnectService.DefaultDatabaseConnect()
|
|
|
|
db.AutoMigrate(ApprovalFlow{},
|
|
|
|
DynamicApprovalStepConfig{},
|
|
|
|
ApprovalPathConfig{},
|
|
|
|
base.BaseExtensionField{},
|
|
|
|
ApprovalStep{},
|
|
|
|
ApprovalRule{})
|
2024-11-15 16:53:35 +08:00
|
|
|
|
|
|
|
db.AutoMigrate(ApprovalStep{})
|
2024-11-14 17:02:41 +08:00
|
|
|
}
|