Done ticket GEPAFINBE-3
This commit is contained in:
@@ -1,3 +1,26 @@
|
||||
spring.application.name=tendermanagement
|
||||
server.port=8080
|
||||
springdoc.api-docs.path=/v1/api-docs
|
||||
springdoc.swagger-ui.configUrl=/v1/api-docs
|
||||
springfox.documentation.swagger-ui.path=/v1/api-docs
|
||||
springdoc.swagger-ui.disable-swagger-default-url=true
|
||||
springdoc.swagger-ui.path=/swagger-ui.html
|
||||
|
||||
# DataSource Configuration
|
||||
spring.datasource.url=jdbc:postgresql://localhost:5432/gepafin_local
|
||||
spring.datasource.username=postgres
|
||||
spring.datasource.password=root
|
||||
spring.datasource.driver-class-name=org.postgresql.Driver
|
||||
|
||||
# JPA Configuration
|
||||
spring.jpa.properties.hibernate.default_schema=gepafin_schema
|
||||
spring.jpa.hibernate.ddl-auto=none
|
||||
|
||||
|
||||
# Liquibase Configuration
|
||||
spring.liquibase.change-log=classpath:db/changelog/db.changelog-master.xml
|
||||
spring.liquibase.default-schema=gepafin_schema
|
||||
spring.liquibase.enabled=true
|
||||
|
||||
# Debugging and SQL Output
|
||||
logging.level.org.springframework.boot.autoconfigure.liquibase=ERROR
|
||||
logging.level.liquibase=ERROR
|
||||
137
src/main/resources/db/changelog/db.changelog-1.0.0.xml
Normal file
137
src/main/resources/db/changelog/db.changelog-1.0.0.xml
Normal file
@@ -0,0 +1,137 @@
|
||||
<?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-4.0.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.23.xsd">
|
||||
<changeSet id="14-08-2024_1" author="Harish Bagora">
|
||||
<createTable tableName="region">
|
||||
<column autoIncrement="true" name="id" type="INTEGER">
|
||||
<constraints nullable="false" primaryKey="true"
|
||||
primaryKeyName="region_pkey"/>
|
||||
</column>
|
||||
<column name="region_name" type="VARCHAR(255)">
|
||||
<constraints nullable="false"/>
|
||||
</column>
|
||||
<column name="description" type="TEXT">
|
||||
</column>
|
||||
<column name="created_date" type="TIMESTAMP WITHOUT TIME ZONE">
|
||||
<constraints nullable="true"/>
|
||||
</column>
|
||||
<column name="updated_date" type="TIMESTAMP WITHOUT TIME ZONE">
|
||||
<constraints nullable="true"/>
|
||||
</column>
|
||||
<column name="country" type="VARCHAR(100)">
|
||||
<constraints nullable="false"/>
|
||||
</column>
|
||||
<column name="status" type="VARCHAR(255)">
|
||||
<constraints nullable="false"/>
|
||||
</column>
|
||||
<column name="priority_area" type="VARCHAR(255)">
|
||||
<constraints nullable="true"/>
|
||||
</column>
|
||||
<column name="population" type="INTEGER">
|
||||
<constraints nullable="true"/>
|
||||
</column>
|
||||
<column name="area_size" type="numeric">
|
||||
<constraints nullable="true"/>
|
||||
</column>
|
||||
<column name="gdp" type="numeric">
|
||||
<constraints nullable="true"/>
|
||||
</column>
|
||||
<column name="unemployment_rate" type="numeric">
|
||||
<constraints nullable="true"/>
|
||||
</column>
|
||||
<column name="infrastructure_score" type="numeric">
|
||||
<constraints nullable="true"/>
|
||||
</column>
|
||||
<column name="education_level" type="numeric">
|
||||
<constraints nullable="true"/>
|
||||
</column>
|
||||
<column name="healthcare_access" type="numeric">
|
||||
<constraints nullable="true"/>
|
||||
</column>
|
||||
<column name="environmental_score" type="numeric">
|
||||
<constraints nullable="true"/>
|
||||
</column>
|
||||
</createTable>
|
||||
</changeSet>
|
||||
|
||||
<changeSet id="14-08-2024_2" author="Harish Bagora">
|
||||
<createTable tableName="role">
|
||||
<column autoIncrement="true" name="id" type="INTEGER">
|
||||
<constraints nullable="false" primaryKey="true"
|
||||
primaryKeyName="role_pkey"/>
|
||||
</column>
|
||||
<column name="role_name" type="VARCHAR(255)">
|
||||
<constraints nullable="false"/>
|
||||
</column>
|
||||
<column name="description" type="VARCHAR(255)">
|
||||
<constraints nullable="true"/>
|
||||
</column>
|
||||
<column name="created_date" type="TIMESTAMP WITHOUT TIME ZONE">
|
||||
<constraints nullable="true"/>
|
||||
</column>
|
||||
<column name="updated_date" type="TIMESTAMP WITHOUT TIME ZONE">
|
||||
<constraints nullable="true"/>
|
||||
</column>
|
||||
<column name="permissions" type="TEXT">
|
||||
<constraints nullable="false"/>
|
||||
</column>
|
||||
<column name="region_id" type="INTEGER">
|
||||
<constraints nullable="false" foreignKeyName="fk_role_region" references="region(id)"/>
|
||||
</column>
|
||||
</createTable>
|
||||
</changeSet>
|
||||
|
||||
<changeSet id="14-08-2024_3" author="Harish Bagora">
|
||||
<createTable tableName="user">
|
||||
<column autoIncrement="true" name="id" type="INTEGER">
|
||||
<constraints nullable="false" primaryKey="true"
|
||||
primaryKeyName="user_pkey"/>
|
||||
</column>
|
||||
<column name="password" type="VARCHAR(255)">
|
||||
<constraints nullable="false"/>
|
||||
</column>
|
||||
<column name="email" type="varchar(255)">
|
||||
<constraints nullable="false"/>
|
||||
</column>
|
||||
<column name="first_name" type="VARCHAR(255)">
|
||||
<constraints nullable="false"/>
|
||||
</column>
|
||||
<column name="last_name" type="VARCHAR(255)">
|
||||
<constraints nullable="false"/>
|
||||
</column>
|
||||
<column name="phone_number" type="VARCHAR(255)"/>
|
||||
<column name="role_id" type="INTEGER">
|
||||
<constraints nullable="false" foreignKeyName="fk_user_role" references="role(id)"/>
|
||||
</column>
|
||||
<column name="status" type="VARCHAR(255)">
|
||||
<constraints nullable="false"/>
|
||||
</column>
|
||||
<column name="last_login" type="TIMESTAMP WITHOUT TIME ZONE">
|
||||
<constraints nullable="true"/>
|
||||
</column>
|
||||
<column name="created_date" type="TIMESTAMP WITHOUT TIME ZONE">
|
||||
<constraints nullable="true"/>
|
||||
</column>
|
||||
<column name="updated_date" type="TIMESTAMP WITHOUT TIME ZONE">
|
||||
<constraints nullable="true"/>
|
||||
</column>
|
||||
<column name="organization" type="TEXT">
|
||||
<constraints nullable="true"/>
|
||||
</column>
|
||||
<column name="address" type="TEXT">
|
||||
<constraints nullable="true"/>
|
||||
</column>
|
||||
<column name="city" type="TEXT">
|
||||
<constraints nullable="true"/>
|
||||
</column>
|
||||
<column name="country" type="TEXT">
|
||||
<constraints nullable="true"/>
|
||||
</column>
|
||||
</createTable>
|
||||
</changeSet>
|
||||
|
||||
</databaseChangeLog>
|
||||
8
src/main/resources/db/changelog/db.changelog-master.xml
Normal file
8
src/main/resources/db/changelog/db.changelog-master.xml
Normal file
@@ -0,0 +1,8 @@
|
||||
<?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 http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.23.xsd">
|
||||
|
||||
<include file="db/changelog/db.changelog-1.0.0.xml"/>
|
||||
</databaseChangeLog>
|
||||
29
src/main/resources/message_en.properties
Normal file
29
src/main/resources/message_en.properties
Normal file
@@ -0,0 +1,29 @@
|
||||
user.created.success=User created successfully.
|
||||
user.updated.success=User updated successfully.
|
||||
user.deleted.success=User deleted successfully.
|
||||
user.not.found=User not found.
|
||||
create_user_error_msg=An error occurred while creating the user.
|
||||
update_user_error_msg=An error occurred while updating the user.
|
||||
delete_user_error_msg=An error occurred while deleting the user.
|
||||
get_user_success_msg=User retrieved successfully.
|
||||
get_user_error_msg=An error occurred while retrieving the user.
|
||||
# Role-related messages
|
||||
role.created.success=Role created successfully.
|
||||
role.updated.success=Role updated successfully.
|
||||
role.deleted.success=Role deleted successfully.
|
||||
role.not.found=Role not found.
|
||||
create.role.error=Error occurred while creating the role.
|
||||
update.role.error=Error occurred while updating the role.
|
||||
role.fetch.success=Role fetched successfully.
|
||||
delete.role.error=Error occurred while deleting the role.
|
||||
|
||||
# Region-related messages
|
||||
region.created.success=Region created successfully.
|
||||
region.updated.success=Region updated successfully.
|
||||
get.region.success=Region fetched successfully.
|
||||
delete.region.success=Region deleted successfully.
|
||||
user.region.not.found=Region not found.
|
||||
create.regiom.error=Error occurred while creating the region.
|
||||
update.region.error=Error occurred while updating the region.
|
||||
password.doesnt.match=Password and confirm password do not match.
|
||||
|
||||
28
src/main/resources/message_it.properties
Normal file
28
src/main/resources/message_it.properties
Normal file
@@ -0,0 +1,28 @@
|
||||
user.created.success=Utente creato con successo.
|
||||
user.updated.success=Utente aggiornato con successo.
|
||||
user.deleted.success=Utente eliminato con successo.
|
||||
user.not.found=Utente non trovato.
|
||||
create_user_error_msg=Si è verificato un errore durante la creazione dell'utente.
|
||||
update_user_error_msg=Si è verificato un errore durante l'aggiornamento dell'utente.
|
||||
delete_user_error_msg=Si è verificato un errore durante l'eliminazione dell'utente.
|
||||
get_user_success_msg=Utente recuperato con successo.
|
||||
get_user_error_msg=Si è verificato un errore durante il recupero dell'utente.
|
||||
# Role-related messages
|
||||
role.created.success=Ruolo creato con successo.
|
||||
role.updated.success=Ruolo aggiornato con successo.
|
||||
role.deleted.success=Ruolo eliminato con successo.
|
||||
role.not.found=Ruolo non trovato.
|
||||
create.role.error=Errore durante la creazione del ruolo.
|
||||
update.role.error=Errore durante l'aggiornamento del ruolo.
|
||||
role.fetch.success=Ruolo recuperato con successo.
|
||||
delete.role.error=Errore durante l'eliminazione del ruolo.
|
||||
|
||||
# Region-related messages
|
||||
region.created.success=Regione creata con successo.
|
||||
region.updated.success=Regione aggiornata con successo.
|
||||
get.region.success=Regione recuperata con successo.
|
||||
delete.region.success=Regione eliminata con successo.
|
||||
user.region.not.found=Regione non trovata.
|
||||
create.regiom.error=Errore durante la creazione della regione.
|
||||
update.region.error=Errore durante l'aggiornamento della regione.
|
||||
password.doesnt.match=La password e la conferma della password non corrispondono.
|
||||
Reference in New Issue
Block a user