23 lines
535 B
Go
23 lines
535 B
Go
|
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{})
|
||
|
}
|