diff --git a/src/main/kotlin/com/restapi/domain/Inventories.kt b/src/main/kotlin/com/restapi/domain/Inventories.kt index 410a894..0c4e3d0 100644 --- a/src/main/kotlin/com/restapi/domain/Inventories.kt +++ b/src/main/kotlin/com/restapi/domain/Inventories.kt @@ -24,10 +24,10 @@ open class IncomingInventory : BaseTenantModel() { var mrn: String? = null var date: LocalDate? = null var vendorBillNum: String? = null - var unloadingPlantId: String? = null var vendorBillAmount: Double = 0.0 var vehicle: String = "" var loading: String? = "" + var unloadingPlantId: String? = null var unloading: String? = "" @DbJsonB @@ -50,11 +50,15 @@ open class OutgoingInventory : BaseTenantModel() { this.outMode = updated.outMode this.person = updated.person this.vehicle = updated.vehicle + this.unloading = updated.unloading + this.unloadingPlantId = updated.unloadingPlantId } var mdn: String? = null var date: LocalDate? = null + var unloadingPlantId: String? = null + var unloading: String? = "" @DbJsonB var products: List? = null diff --git a/src/main/resources/dbmigration/1.32.sql b/src/main/resources/dbmigration/1.32.sql new file mode 100644 index 0000000..b8b6edc --- /dev/null +++ b/src/main/resources/dbmigration/1.32.sql @@ -0,0 +1,4 @@ +-- apply alter tables +alter table outgoing_inventory add column if not exists unloading_plant_id varchar(255); +alter table outgoing_inventory add column if not exists unloading varchar(255); +alter table outgoing_inventory add column if not exists job_card varchar(255); diff --git a/src/main/resources/dbmigration/model/1.32.model.xml b/src/main/resources/dbmigration/model/1.32.model.xml new file mode 100644 index 0000000..09fb2d3 --- /dev/null +++ b/src/main/resources/dbmigration/model/1.32.model.xml @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + \ No newline at end of file