MigrationSetting.kt 620 B

123456789101112131415161718192021
  1. package com.datacomsolusindo.migration
  2. import org.springframework.boot.context.properties.ConfigurationProperties
  3. import org.springframework.stereotype.Service
  4. @Service
  5. @ConfigurationProperties(prefix = "migration")
  6. class MigrationSettingService {
  7. var type: String = "FILE"
  8. var sourceDatabase: MutableMap<String, Any> = mutableMapOf()
  9. var target: Array<String>? = arrayOf()
  10. var schema: Array<MigrationSchema> = arrayOf()
  11. }
  12. class MigrationSchema(
  13. val target: String,
  14. val table: String,
  15. val history: String? = null,
  16. val group: String? = null,
  17. val attribute: MutableMap<String, Any>
  18. )