Skip to content

Commit

Permalink
FEAT:add column total table
Browse files Browse the repository at this point in the history
  • Loading branch information
rivo pelu committed Dec 10, 2024
1 parent 6499f71 commit 9dac70d
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,8 @@ public interface MasterDataController {
@PostMapping("v1/subscription-package/create")
BaseResponse createSubscriptionPackage(@RequestBody List<ReqCreateSubscriptionPackage> req);

@PostMapping("v1/merchant/new")
BaseResponse createMerchant();


}
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,9 @@ public BaseResponse createSubscriptionPackage(List<ReqCreateSubscriptionPackage>

return ResponseHelper.createBaseResponse(masterDataService.createSubscriptionPackage(req));
}

@Override
public BaseResponse createMerchant() {
return null;
}
}
5 changes: 3 additions & 2 deletions src/main/java/com/pos/app/entities/Merchant.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;




}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
https://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-latest.xsd">

<changeSet id="1.7.1" author="rivo pelu">
<addColumn tableName="merchant">
<column name="total_table" type="int">
<constraints nullable="true"/>
</column>
</addColumn>

</changeSet>
</databaseChangeLog>
1 change: 1 addition & 0 deletions src/main/resources/db/changelog/changelog-master.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,5 @@
<include file="classpath:db/changelog/1.6.3_add_fk_notification_subscription_order.xml"/>
<include file="classpath:db/changelog/1.6.4_rename_column_note_to_address.xml"/>
<include file="classpath:db/changelog/1.7.0_add_table_merchant_and_customer_table.xml"/>
<include file="classpath:db/changelog/1.7.1_add_column_total_table_merchant.xml"/>
</databaseChangeLog>

0 comments on commit 9dac70d

Please sign in to comment.