updating ci

This commit is contained in:
2025-10-17 16:37:24 +02:00
parent 1963237896
commit d6439b8845
5 changed files with 328 additions and 61 deletions

View File

@@ -7,14 +7,15 @@ variables:
DOCKER_OPTS: "--insecure-registry=$REGISTRY" DOCKER_OPTS: "--insecure-registry=$REGISTRY"
stages: stages:
- package - lab
- prod
before_script: before_script:
- docker info - docker info
- docker login -u admin -p 1aae6202-7d42-44e4-bdc7-d988a95fdfe2 $REGISTRY - docker login -u admin -p 1aae6202-7d42-44e4-bdc7-d988a95fdfe2 $REGISTRY
package: lab:
stage: package stage: lab
script: script:
- docker build -f Dockerfile-lab -t "$REGISTRY/$DEV_TAG" . - docker build -f Dockerfile-lab -t "$REGISTRY/$DEV_TAG" .
- docker push "$REGISTRY/$DEV_TAG" - docker push "$REGISTRY/$DEV_TAG"
@@ -22,3 +23,12 @@ package:
- develop - develop
- feature/Develop-core-TM-functionality - feature/Develop-core-TM-functionality
- hotfix/nflow - hotfix/nflow
prod:
stage: prod
script:
- docker build -f Dockerfile-lab -t "$REGISTRY/$TAG" .
- docker push "$REGISTRY/$TAG"
only:
- master
- release/0.0.1-RELEASE

7
Dockerfile Normal file
View File

@@ -0,0 +1,7 @@
FROM 144.91.121.112:8082/java-17
RUN mkdir /app
COPY . /app
WORKDIR /app
RUN mvn clean compile -P develop package
ENTRYPOINT ["/usr/bin/dumb-init", "--"]
CMD ["java", "-Dspring.profiles.active=nflow.db.postgresql", "-jar", "/app/target/tm-0.0.1-RELEASE.jar"]

View File

@@ -1,5 +1,5 @@
spring.application.name=tm spring.application.name=tm
debug=true debug=false
logging.level.org.springframework.boot.autoconfigure=INFO logging.level.org.springframework.boot.autoconfigure=INFO
@@ -10,9 +10,9 @@ server.servlet.context-path=/api
spring.jpa.hibernate.ddl-auto=update spring.jpa.hibernate.ddl-auto=update
spring.datasource.driver-class-name=org.postgresql.Driver spring.datasource.driver-class-name=org.postgresql.Driver
spring.datasource.url=jdbc:postgresql://173.212.247.232:5532/qpay?useLegacyDatetimeCode=false spring.datasource.url=jdbc:postgresql://62.171.179.108:5432/qpay?useLegacyDatetimeCode=false
spring.datasource.username=postgres spring.datasource.username=postgres
spring.datasource.password=zdDZMzq6F4B4L1IUl spring.datasource.password=zdDZMzq6F4B4L1IUla
# sbz.merchant.url=http://192.168.16.29:24050/v1 # sbz.merchant.url=http://192.168.16.29:24050/v1
@@ -20,7 +20,7 @@ spring.datasource.password=zdDZMzq6F4B4L1IUl
sbz.merchant.url=https://api.stewardpay.co.zw/v1 sbz.merchant.url=https://api.stewardpay.co.zw/v1
sbz.aggregator.url=${sbz.merchant.url} sbz.aggregator.url=${sbz.merchant.url}
sbz.aggregator.phone=263773591219 sbz.aggregator.phone=263773591219
sbz.aggregator.account=1041248676 sbz.aggregator.account=1051184536
sbz.aggregator.client-id=qantratech_solutions sbz.aggregator.client-id=qantratech_solutions
sbz.aggregator.client-secret=70f5a9d7-b5cd-4fe8-855a-b2d035a8c24c sbz.aggregator.client-secret=70f5a9d7-b5cd-4fe8-855a-b2d035a8c24c
@@ -29,13 +29,13 @@ sbz.aggregator.encryption-key=91b5b3c7-860f-473c-ac5c-b12d9121819b
steward.payment.processor.url=${sbz.merchant.url} steward.payment.processor.url=${sbz.merchant.url}
# ERPNext Configuration # ERPNext Configuration
erpnext.url=http://173.212.247.232:8085/api erpnext.url=http://62.171.179.108:8080/api
erpnext.api.key=1102c6da0312f75 erpnext.api.key=dff94c65b52ecbd
erpnext.api.secret=e3d95692bcf16c7 erpnext.api.secret=49218fe805c9fb4
erpnext.username=Administrator erpnext.username=Administrator
erpnext.password=admin erpnext.password=admin
erpnext.company=Qantra erpnext.company=QantraTech
erpnext.accounts.cash=Bank Account - Q erpnext.accounts.cash=Steward Bank Account - Q
erpnext.accounts.gatewayexpense=Gateway Expenses - Q erpnext.accounts.gatewayexpense=Gateway Expenses - Q
erpnext.accounts.accountsreceivable=Debtors - Q erpnext.accounts.accountsreceivable=Debtors - Q
erpnext.accounts.commission=Discounts Received - Q erpnext.accounts.commission=Discounts Received - Q
@@ -51,9 +51,9 @@ jwt.expiration=86400000
logging.level.root=WARN logging.level.root=WARN
nflow.db.postgresql.driver=org.postgresql.Driver nflow.db.postgresql.driver=org.postgresql.Driver
nflow.db.postgresql.url=jdbc:postgresql://173.212.247.232:5532/qpay nflow.db.postgresql.url=jdbc:postgresql://62.171.179.108:5432/qpay
nflow.db.postgresql.user=postgres nflow.db.postgresql.user=postgres
nflow.db.postgresql.password=zdDZMzq6F4B4L1IUl nflow.db.postgresql.password=zdDZMzq6F4B4L1IUla
# Email Configuration # Email Configuration
infobip.url=https://z3m696.api.infobip.com/sms/2/text/advanced infobip.url=https://z3m696.api.infobip.com/sms/2/text/advanced

View File

@@ -1,67 +1,317 @@
<?xml version="1.1" encoding="UTF-8" standalone="no"?> <?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext" xmlns:pro="http://www.liquibase.org/xml/ns/pro" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/pro http://www.liquibase.org/xml/ns/pro/liquibase-pro-latest.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-latest.xsd"> <databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext" xmlns:pro="http://www.liquibase.org/xml/ns/pro" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/pro http://www.liquibase.org/xml/ns/pro/liquibase-pro-latest.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-latest.xsd">
<changeSet author="vkhoza (generated)" id="1760035530432-4"> <changeSet author="vkhoza (generated)" id="1760560268483-1">
<addColumn tableName="provider"> <createTable tableName="additional_data">
<column name="percentage_commission" type="float(53)"> <column name="id" type="BYTEA">
<constraints nullable="true"/> <constraints nullable="false" primaryKey="true" primaryKeyName="additional_dataPK"/>
</column> </column>
</addColumn> <column name="created_at" type="TIMESTAMP(6) WITHOUT TIME ZONE"/>
<column name="updated_at" type="TIMESTAMP(6) WITHOUT TIME ZONE"/>
<column name="json_string" type="TEXT"/>
<column name="request_type" type="VARCHAR(255)"/>
<column name="transaction_id" type="VARCHAR(255)"/>
</createTable>
</changeSet> </changeSet>
<changeSet author="vkhoza (generated)" id="1760035530432-5"> <changeSet author="vkhoza (generated)" id="1760560268483-2">
<dropForeignKeyConstraint baseTableName="additional_data" constraintName="fk3id7ni5v07ymwuvgcrudxjrfh"/> <createTable tableName="category">
<column name="id" type="BYTEA">
<constraints nullable="false" primaryKey="true" primaryKeyName="categoryPK"/>
</column>
<column name="created_at" type="TIMESTAMP(6) WITHOUT TIME ZONE"/>
<column name="updated_at" type="TIMESTAMP(6) WITHOUT TIME ZONE"/>
<column name="description" type="VARCHAR(255)"/>
<column name="image" type="VARCHAR(255)"/>
<column name="label" type="VARCHAR(255)"/>
<column name="name" type="VARCHAR(255)"/>
</createTable>
</changeSet> </changeSet>
<changeSet author="vkhoza (generated)" id="1760035530432-6"> <changeSet author="vkhoza (generated)" id="1760560268483-3">
<dropForeignKeyConstraint baseTableName="nflow_workflow_action" constraintName="fk_action_workflow_id"/> <createTable tableName="charge">
<column name="id" type="BYTEA">
<constraints nullable="false" primaryKey="true" primaryKeyName="chargePK"/>
</column>
<column name="created_at" type="TIMESTAMP(6) WITHOUT TIME ZONE"/>
<column name="updated_at" type="TIMESTAMP(6) WITHOUT TIME ZONE"/>
<column name="account" type="VARCHAR(255)"/>
<column name="charge_label" type="VARCHAR(255)"/>
<column name="composite" type="BOOLEAN">
<constraints nullable="false"/>
</column>
<column name="currency" type="VARCHAR(255)"/>
<column name="description" type="VARCHAR(255)"/>
<column name="flat" type="numeric(38, 2)"/>
<column name="global" type="BOOLEAN">
<constraints nullable="false"/>
</column>
<column name="max" type="numeric(38, 2)"/>
<column name="maximum_amount" type="numeric(38, 2)"/>
<column name="min" type="numeric(38, 2)"/>
<column name="minimum_amount" type="numeric(38, 2)"/>
<column name="percentage_rate" type="numeric(38, 2)"/>
<column name="target" type="VARCHAR(255)"/>
<column name="target_event" type="VARCHAR(255)"/>
<column name="target_value" type="VARCHAR(255)"/>
</createTable>
</changeSet> </changeSet>
<changeSet author="vkhoza (generated)" id="1760035530432-7"> <changeSet author="vkhoza (generated)" id="1760560268483-4">
<dropForeignKeyConstraint baseTableName="nflow_archive_workflow_action" constraintName="fk_arch_action_wf_id"/> <createTable tableName="charge_condition">
<column name="id" type="BYTEA">
<constraints nullable="false" primaryKey="true" primaryKeyName="charge_conditionPK"/>
</column>
<column name="created_at" type="TIMESTAMP(6) WITHOUT TIME ZONE"/>
<column name="updated_at" type="TIMESTAMP(6) WITHOUT TIME ZONE"/>
<column name="codes" type="TEXT"/>
<column name="name" type="VARCHAR(255)"/>
<column name="type" type="VARCHAR(255)"/>
</createTable>
</changeSet> </changeSet>
<changeSet author="vkhoza (generated)" id="1760035530432-8"> <changeSet author="vkhoza (generated)" id="1760560268483-5">
<dropForeignKeyConstraint baseTableName="nflow_archive_workflow_state" constraintName="fk_arch_state_wf_id"/> <createTable tableName="charge_exclude_products">
<column name="charge_id" type="BYTEA">
<constraints nullable="false" primaryKey="true" primaryKeyName="charge_exclude_productsPK"/>
</column>
<column name="charge_condition_id" type="BYTEA">
<constraints nullable="false" primaryKey="true" primaryKeyName="charge_exclude_productsPK"/>
</column>
</createTable>
</changeSet> </changeSet>
<changeSet author="vkhoza (generated)" id="1760035530432-9"> <changeSet author="vkhoza (generated)" id="1760560268483-6">
<dropForeignKeyConstraint baseTableName="nflow_workflow_state" constraintName="fk_state_workflow_id"/> <createTable tableName="charge_include_products">
<column name="charge_id" type="BYTEA">
<constraints nullable="false" primaryKey="true" primaryKeyName="charge_include_productsPK"/>
</column>
<column name="charge_condition_id" type="BYTEA">
<constraints nullable="false" primaryKey="true" primaryKeyName="charge_include_productsPK"/>
</column>
</createTable>
</changeSet> </changeSet>
<changeSet author="vkhoza (generated)" id="1760035530432-10"> <changeSet author="vkhoza (generated)" id="1760560268483-7">
<dropUniqueConstraint constraintName="nflow_workflow_uniq" tableName="nflow_workflow"/> <createTable tableName="currency">
<column name="id" type="BYTEA">
<constraints nullable="false" primaryKey="true" primaryKeyName="currencyPK"/>
</column>
<column name="created_at" type="TIMESTAMP(6) WITHOUT TIME ZONE"/>
<column name="updated_at" type="TIMESTAMP(6) WITHOUT TIME ZONE"/>
<column name="display_name" type="VARCHAR(255)"/>
<column name="iso_code" type="VARCHAR(255)"/>
<column name="name" type="VARCHAR(255)"/>
</createTable>
</changeSet> </changeSet>
<changeSet author="vkhoza (generated)" id="1760035530432-11"> <changeSet author="vkhoza (generated)" id="1760560268483-8">
<dropTable tableName="nflow_archive_workflow"/> <createTable tableName="integration_processor">
<column name="id" type="BYTEA">
<constraints nullable="false" primaryKey="true" primaryKeyName="integration_processorPK"/>
</column>
<column name="created_at" type="TIMESTAMP(6) WITHOUT TIME ZONE"/>
<column name="updated_at" type="TIMESTAMP(6) WITHOUT TIME ZONE"/>
<column name="description" type="VARCHAR(255)"/>
<column name="label" type="VARCHAR(255)"/>
<column name="name" type="VARCHAR(255)"/>
</createTable>
</changeSet> </changeSet>
<changeSet author="vkhoza (generated)" id="1760035530432-12"> <changeSet author="vkhoza (generated)" id="1760560268483-9">
<dropTable tableName="nflow_archive_workflow_action"/> <createTable tableName="otp">
<column name="id" type="BYTEA">
<constraints nullable="false" primaryKey="true" primaryKeyName="otpPK"/>
</column>
<column name="created_at" type="TIMESTAMP(6) WITHOUT TIME ZONE"/>
<column name="updated_at" type="TIMESTAMP(6) WITHOUT TIME ZONE"/>
<column name="otp" type="VARCHAR(255)"/>
<column name="otp_status" type="VARCHAR(255)"/>
<column name="otp_type" type="VARCHAR(255)"/>
<column name="username" type="VARCHAR(255)"/>
</createTable>
</changeSet> </changeSet>
<changeSet author="vkhoza (generated)" id="1760035530432-13"> <changeSet author="vkhoza (generated)" id="1760560268483-10">
<dropTable tableName="nflow_archive_workflow_state"/> <createTable tableName="payment_processor">
<column name="id" type="BYTEA">
<constraints nullable="false" primaryKey="true" primaryKeyName="payment_processorPK"/>
</column>
<column name="created_at" type="TIMESTAMP(6) WITHOUT TIME ZONE"/>
<column name="updated_at" type="TIMESTAMP(6) WITHOUT TIME ZONE"/>
<column name="account_field_label" type="VARCHAR(255)"/>
<column name="account_field_name" type="VARCHAR(255)"/>
<column name="auth_type" type="VARCHAR(255)"/>
<column name="description" type="VARCHAR(255)"/>
<column name="image" type="TEXT"/>
<column name="label" type="VARCHAR(255)"/>
<column name="name" type="VARCHAR(255)"/>
<column name="type" type="VARCHAR(255)"/>
</createTable>
</changeSet> </changeSet>
<changeSet author="vkhoza (generated)" id="1760035530432-14"> <changeSet author="vkhoza (generated)" id="1760560268483-11">
<dropTable tableName="nflow_executor"/> <createTable tableName="provider">
<column name="id" type="BYTEA">
<constraints nullable="false" primaryKey="true" primaryKeyName="providerPK"/>
</column>
<column name="created_at" type="TIMESTAMP(6) WITHOUT TIME ZONE"/>
<column name="updated_at" type="TIMESTAMP(6) WITHOUT TIME ZONE"/>
<column name="account_field_name" type="VARCHAR(255)"/>
<column name="category" type="VARCHAR(255)"/>
<column name="client_id" type="VARCHAR(255)"/>
<column name="description" type="VARCHAR(255)"/>
<column name="external_id" type="VARCHAR(255)"/>
<column name="image" type="VARCHAR(255)"/>
<column name="integration_processor_label" type="VARCHAR(255)"/>
<column name="label" type="VARCHAR(255)"/>
<column name="percentage_commission" type="FLOAT(53)">
<constraints nullable="false"/>
</column>
</createTable>
</changeSet> </changeSet>
<changeSet author="vkhoza (generated)" id="1760035530432-15"> <changeSet author="vkhoza (generated)" id="1760560268483-12">
<dropTable tableName="nflow_workflow"/> <createTable tableName="recipient">
<column name="id" type="BYTEA">
<constraints nullable="false" primaryKey="true" primaryKeyName="recipientPK"/>
</column>
<column name="created_at" type="TIMESTAMP(6) WITHOUT TIME ZONE"/>
<column name="updated_at" type="TIMESTAMP(6) WITHOUT TIME ZONE"/>
<column name="account" type="VARCHAR(255)"/>
<column name="address" type="VARCHAR(255)"/>
<column name="email" type="VARCHAR(255)"/>
<column name="initials" type="VARCHAR(255)"/>
<column name="latest_provider_label" type="VARCHAR(255)"/>
<column name="name" type="VARCHAR(255)"/>
<column name="phone_number" type="VARCHAR(255)"/>
<column name="user_id" type="VARCHAR(255)"/>
</createTable>
</changeSet> </changeSet>
<changeSet author="vkhoza (generated)" id="1760035530432-16"> <changeSet author="vkhoza (generated)" id="1760560268483-13">
<dropTable tableName="nflow_workflow_action"/> <createTable tableName="setting">
<column name="id" type="BYTEA">
<constraints nullable="false" primaryKey="true" primaryKeyName="settingPK"/>
</column>
<column name="created_at" type="TIMESTAMP(6) WITHOUT TIME ZONE"/>
<column name="updated_at" type="TIMESTAMP(6) WITHOUT TIME ZONE"/>
<column name="setting_name" type="VARCHAR(255)"/>
<column name="setting_value" type="VARCHAR(255)"/>
</createTable>
</changeSet> </changeSet>
<changeSet author="vkhoza (generated)" id="1760035530432-17"> <changeSet author="vkhoza (generated)" id="1760560268483-14">
<dropTable tableName="nflow_workflow_definition"/> <createTable tableName="transaction">
<column name="id" type="BYTEA">
<constraints nullable="false" primaryKey="true" primaryKeyName="transactionPK"/>
</column>
<column name="created_at" type="TIMESTAMP(6) WITHOUT TIME ZONE"/>
<column name="updated_at" type="TIMESTAMP(6) WITHOUT TIME ZONE"/>
<column name="aggregator_id" type="VARCHAR(255)"/>
<column name="amount" type="numeric(38, 2)"/>
<column name="auth_type" type="VARCHAR(255)"/>
<column name="authorization_status" type="VARCHAR(255)"/>
<column name="bill_client_id" type="VARCHAR(255)"/>
<column name="bill_name" type="VARCHAR(255)"/>
<column name="bill_product_name" type="VARCHAR(255)"/>
<column name="channel" type="VARCHAR(255)"/>
<column name="channel_name" type="VARCHAR(255)"/>
<column name="charge" type="numeric(38, 2)"/>
<column name="client_secret" type="VARCHAR(255)"/>
<column name="confirmation_processor_label" type="VARCHAR(255)"/>
<column name="confirmation_status" type="VARCHAR(255)"/>
<column name="credit_account" type="VARCHAR(255)"/>
<column name="credit_card" type="VARCHAR(255)"/>
<column name="credit_currency" type="VARCHAR(255)"/>
<column name="credit_email" type="VARCHAR(255)"/>
<column name="credit_name" type="VARCHAR(255)"/>
<column name="credit_phone" type="VARCHAR(255)"/>
<column name="credit_ref" type="VARCHAR(255)"/>
<column name="debit_account" type="VARCHAR(255)"/>
<column name="debit_card" type="VARCHAR(255)"/>
<column name="debit_currency" type="VARCHAR(255)"/>
<column name="debit_email" type="VARCHAR(255)"/>
<column name="debit_name" type="VARCHAR(255)"/>
<column name="debit_phone" type="VARCHAR(255)"/>
<column name="debit_ref" type="VARCHAR(255)"/>
<column name="erp_commission_journal_ref" type="VARCHAR(255)"/>
<column name="erp_journal_ref" type="VARCHAR(255)"/>
<column name="erp_purchase_payment_ref" type="VARCHAR(255)"/>
<column name="erp_purchase_ref" type="VARCHAR(255)"/>
<column name="erp_sales_payment_ref" type="VARCHAR(255)"/>
<column name="erp_sales_ref" type="VARCHAR(255)"/>
<column name="error_message" type="TEXT"/>
<column name="gateway_charge" type="numeric(38, 2)"/>
<column name="integration_processor_label" type="VARCHAR(255)"/>
<column name="integration_status" type="VARCHAR(255)"/>
<column name="payment_processor_image" type="VARCHAR(255)"/>
<column name="payment_processor_label" type="VARCHAR(255)"/>
<column name="payment_processor_name" type="VARCHAR(255)"/>
<column name="payment_status" type="VARCHAR(255)"/>
<column name="polling_status" type="VARCHAR(255)"/>
<column name="product_uid" type="VARCHAR(255)"/>
<column name="provider_image" type="VARCHAR(255)"/>
<column name="provider_label" type="VARCHAR(255)"/>
<column name="provider_uid" type="VARCHAR(255)"/>
<column name="reference" type="VARCHAR(255)"/>
<column name="response_code" type="VARCHAR(255)"/>
<column name="reversal_status" type="VARCHAR(255)"/>
<column name="rrn" type="VARCHAR(255)"/>
<column name="sdk_action_id" type="VARCHAR(255)"/>
<column name="status" type="VARCHAR(255)"/>
<column name="target_url" type="TEXT"/>
<column name="tax" type="numeric(38, 2)"/>
<column name="total_amount" type="numeric(38, 2)"/>
<column name="trace" type="VARCHAR(255)"/>
<column name="type" type="VARCHAR(255)"/>
<column name="user_id" type="VARCHAR(255)"/>
</createTable>
</changeSet> </changeSet>
<changeSet author="vkhoza (generated)" id="1760035530432-18"> <changeSet author="vkhoza (generated)" id="1760560268483-15">
<dropTable tableName="nflow_workflow_state"/> <createTable tableName="transaction_event">
<column name="id" type="BYTEA">
<constraints nullable="false" primaryKey="true" primaryKeyName="transaction_eventPK"/>
</column>
<column name="created_at" type="TIMESTAMP(6) WITHOUT TIME ZONE"/>
<column name="updated_at" type="TIMESTAMP(6) WITHOUT TIME ZONE"/>
<column name="data" type="VARCHAR(255)"/>
<column name="event" type="VARCHAR(255)"/>
<column name="message" type="TEXT"/>
<column name="status" type="VARCHAR(255)"/>
<column name="transaction_id" type="VARCHAR(255)"/>
</createTable>
</changeSet> </changeSet>
<changeSet author="vkhoza (generated)" id="1760035530432-19"> <changeSet author="vkhoza (generated)" id="1760560268483-16">
<dropTable tableName="otps"/> <createTable tableName="users">
<column name="id" type="BYTEA">
<constraints nullable="false" primaryKey="true" primaryKeyName="usersPK"/>
</column>
<column name="created_at" type="TIMESTAMP(6) WITHOUT TIME ZONE"/>
<column name="updated_at" type="TIMESTAMP(6) WITHOUT TIME ZONE"/>
<column name="is_account_non_expired" type="BOOLEAN"/>
<column name="is_account_non_locked" type="BOOLEAN"/>
<column name="is_credentials_non_expired" type="BOOLEAN"/>
<column name="email" type="VARCHAR(255)">
<constraints nullable="false"/>
</column>
<column name="is_enabled" type="BOOLEAN"/>
<column name="erp_customer_ref" type="VARCHAR(255)"/>
<column name="first_name" type="VARCHAR(255)"/>
<column name="last_name" type="VARCHAR(255)"/>
<column name="password" type="VARCHAR(255)">
<constraints nullable="false"/>
</column>
<column name="phone" type="VARCHAR(255)"/>
<column name="photo_url" type="VARCHAR(255)"/>
<column name="username" type="VARCHAR(255)">
<constraints nullable="false"/>
</column>
<column name="workflow_id" type="BIGINT"/>
</createTable>
</changeSet> </changeSet>
<changeSet author="vkhoza (generated)" id="1760035530432-20"> <changeSet author="vkhoza (generated)" id="1760560268483-17">
<dropColumn columnName="name" tableName="setting"/> <addUniqueConstraint columnNames="email" constraintName="UC_USERSEMAIL_COL" tableName="users"/>
</changeSet> </changeSet>
<changeSet author="vkhoza (generated)" id="1760035530432-21"> <changeSet author="vkhoza (generated)" id="1760560268483-18">
<dropColumn columnName="value" tableName="setting"/>
</changeSet>
<changeSet author="vkhoza (generated)" id="1760035530432-1">
<addNotNullConstraint columnDataType="varchar(255)" columnName="password" tableName="users" validate="true"/>
</changeSet>
<changeSet author="vkhoza (generated)" id="1760035530432-3">
<addUniqueConstraint columnNames="username" constraintName="UC_USERSUSERNAME_COL" tableName="users"/> <addUniqueConstraint columnNames="username" constraintName="UC_USERSUSERNAME_COL" tableName="users"/>
</changeSet> </changeSet>
<changeSet author="vkhoza (generated)" id="1760560268483-19">
<addForeignKeyConstraint baseColumnNames="charge_id" baseTableName="charge_include_products" constraintName="FK21nfv5h1q207r03oggp5hxhx4" deferrable="false" initiallyDeferred="false" referencedColumnNames="id" referencedTableName="charge" validate="true"/>
</changeSet>
<changeSet author="vkhoza (generated)" id="1760560268483-20">
<addForeignKeyConstraint baseColumnNames="charge_condition_id" baseTableName="charge_include_products" constraintName="FK2i46rkib8xs0eis59hi17jvys" deferrable="false" initiallyDeferred="false" referencedColumnNames="id" referencedTableName="charge_condition" validate="true"/>
</changeSet>
<changeSet author="vkhoza (generated)" id="1760560268483-21">
<addForeignKeyConstraint baseColumnNames="charge_id" baseTableName="charge_exclude_products" constraintName="FK5ig672i6f601yto3g7hb657wl" deferrable="false" initiallyDeferred="false" referencedColumnNames="id" referencedTableName="charge" validate="true"/>
</changeSet>
<changeSet author="vkhoza (generated)" id="1760560268483-22">
<addForeignKeyConstraint baseColumnNames="charge_condition_id" baseTableName="charge_exclude_products" constraintName="FKccymyicm7knr8v0d5tsv6uflj" deferrable="false" initiallyDeferred="false" referencedColumnNames="id" referencedTableName="charge_condition" validate="true"/>
</changeSet>
</databaseChangeLog> </databaseChangeLog>

View File

@@ -1,7 +1,7 @@
changeLogFile=src/main/resources/liquibase-diff-changeLog.xml changeLogFile=src/main/resources/liquibase-diff-changeLog.xml
url=jdbc:postgresql://localhost:5432/qpay?serverTimezone=Africa/Harare&useLegacyDatetimeCode=false url=jdbc:postgresql://62.171.179.108:5432/qpay?serverTimezone=Africa/Harare&useLegacyDatetimeCode=false
username=root username=postgres
password=password password=zdDZMzq6F4B4L1IUla
driver=org.postgresql.Driver driver=org.postgresql.Driver
referenceUrl=hibernate:spring:zw.qantra.tm.domain.models?dialect=org.hibernate.dialect.PostgreSQLDialect&hibernate.implicit_naming_strategy=org.springframework.boot.orm.jpa.hibernate.SpringImplicitNamingStrategy&hibernate.physical_naming_strategy=org.hibernate.boot.model.naming.CamelCaseToUnderscoresNamingStrategy referenceUrl=hibernate:spring:zw.qantra.tm.domain.models?dialect=org.hibernate.dialect.PostgreSQLDialect&hibernate.implicit_naming_strategy=org.springframework.boot.orm.jpa.hibernate.SpringImplicitNamingStrategy&hibernate.physical_naming_strategy=org.hibernate.boot.model.naming.CamelCaseToUnderscoresNamingStrategy