diff --git a/src/main/java/com/pos/app/controller/MasterDataController.java b/src/main/java/com/pos/app/controller/MasterDataController.java index 389e75a..8b2361b 100644 --- a/src/main/java/com/pos/app/controller/MasterDataController.java +++ b/src/main/java/com/pos/app/controller/MasterDataController.java @@ -27,5 +27,8 @@ public interface MasterDataController { @PostMapping("v1/subscription-package/create") BaseResponse createSubscriptionPackage(@RequestBody List req); + @PostMapping("v1/merchant/new") + BaseResponse createMerchant(); + } diff --git a/src/main/java/com/pos/app/controller/impl/MasterDataControllerImpl.java b/src/main/java/com/pos/app/controller/impl/MasterDataControllerImpl.java index b66e6dc..8475516 100644 --- a/src/main/java/com/pos/app/controller/impl/MasterDataControllerImpl.java +++ b/src/main/java/com/pos/app/controller/impl/MasterDataControllerImpl.java @@ -38,4 +38,9 @@ public BaseResponse createSubscriptionPackage(List return ResponseHelper.createBaseResponse(masterDataService.createSubscriptionPackage(req)); } + + @Override + public BaseResponse createMerchant() { + return null; + } } diff --git a/src/main/java/com/pos/app/entities/Merchant.java b/src/main/java/com/pos/app/entities/Merchant.java index fe98e3a..b031b4e 100644 --- a/src/main/java/com/pos/app/entities/Merchant.java +++ b/src/main/java/com/pos/app/entities/Merchant.java @@ -19,11 +19,12 @@ public class Merchant extends BaseEntity { @Column(name = "note") private String note; + @Column(name = "total_table") + private int totalTable; + @JoinColumn(name = "client_id") @ManyToOne private Client client; - - } diff --git a/src/main/resources/db/changelog/1.7.1_add_column_total_table_merchant.xml b/src/main/resources/db/changelog/1.7.1_add_column_total_table_merchant.xml new file mode 100644 index 0000000..7a93024 --- /dev/null +++ b/src/main/resources/db/changelog/1.7.1_add_column_total_table_merchant.xml @@ -0,0 +1,15 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/src/main/resources/db/changelog/changelog-master.xml b/src/main/resources/db/changelog/changelog-master.xml index 16716f5..3a29adc 100644 --- a/src/main/resources/db/changelog/changelog-master.xml +++ b/src/main/resources/db/changelog/changelog-master.xml @@ -30,4 +30,5 @@ + \ No newline at end of file