| 123456789101112131415161718192021 |
- package com.datacomsolusindo.migration
- import org.springframework.boot.context.properties.ConfigurationProperties
- import org.springframework.stereotype.Service
- @Service
- @ConfigurationProperties(prefix = "migration")
- class MigrationSettingService {
- var type: String = "FILE"
- var sourceDatabase: MutableMap<String, Any> = mutableMapOf()
- var target: Array<String>? = arrayOf()
- var schema: Array<MigrationSchema> = arrayOf()
- }
- class MigrationSchema(
- val target: String,
- val table: String,
- val history: String? = null,
- val group: String? = null,
- val attribute: MutableMap<String, Any>
- )
|