Done ticket GEPAFINBE-8

This commit is contained in:
harish
2024-08-21 20:55:13 +05:30
parent fa714faef9
commit e7466d16ec
45 changed files with 1642 additions and 0 deletions

View File

@@ -24,3 +24,12 @@ spring.liquibase.enabled=true
# Swagger Configuration
springdoc.api-docs.path=/v1/api-docs
#aws configuration
aws.access.key.id=AKIAVWDQWCUEOSUN4LUW
aws.secret.access.key=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
aws.s3.region=eu-west-1
aws.s3.bucket.name=mementoresources
aws.s3.url = https://mementoresources.s3.eu-west-1.amazonaws.com/
aws.s3.url.folder=gepafin

View File

@@ -134,4 +134,162 @@
</createTable>
</changeSet>
<changeSet id="21-08-2024_1" author="Rajesh Khore">
<createTable tableName="call">
<column autoIncrement="true" name="id" type="INTEGER">
<constraints nullable="false" primaryKey="true"
primaryKeyName="call_pkey"/>
</column>
<column name="name" type="VARCHAR(255)">
<constraints nullable="false"/>
</column>
<column name="description_short" type="TEXT"/>
<column name="description_long" type="TEXT"/>
<column name="start_date" type="TIMESTAMP WITHOUT TIME ZONE">
<constraints nullable="false"/>
</column>
<column name="end_date" type="TIMESTAMP WITHOUT TIME ZONE">
<constraints nullable="false"/>
</column>
<column name="status" type="VARCHAR(255)">
<constraints nullable="false"/>
</column>
<column name="region_id" type="INTEGER">
<constraints nullable="false" foreignKeyName="fk_region_call" references="region(id)"/>
</column>
<column name="amount" type="numeric">
<constraints nullable="false"/>
</column>
<column name="amount_max" type="numeric">
<constraints nullable="false"/>
</column>
<column name="documentation_requested" type="TEXT"/>
<column name="contact_info" type="TEXT"/>
<column name="submission_method" type="TEXT">
</column>
<column name="threshold" type="INTEGER">
<constraints nullable="false"/>
</column>
<column name="priority_area" type="TEXT"/>
<column name="confidi" type="BOOLEAN"/>
<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>
</createTable>
<createTable tableName="evaluation_criteria">
<column autoIncrement="true" name="id" type="INTEGER">
<constraints nullable="false" primaryKey="true"
primaryKeyName="evaluation_criteria_pkey"/>
</column>
<column name="call_id" type="INTEGER">
<constraints nullable="false" foreignKeyName="fk_call_evaluation_criteria" references="call(id)"/>
</column>
<column name="name" type="TEXT">
<constraints nullable="false"/>
</column>
<column name="description" type="TEXT"/>
<column name="score" type="INTEGER">
<constraints nullable="false"/>
</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>
</createTable>
<createTable tableName="faq">
<column autoIncrement="true" name="id" type="INTEGER">
<constraints nullable="false" primaryKey="true"
primaryKeyName="faq_pkey"/>
</column>
<column name="call_id" type="INTEGER">
<constraints nullable="false" foreignKeyName="fk_call_faq" references="call(id)"/>
</column>
<column name="user_id" type="INTEGER">
<constraints nullable="false" foreignKeyName="fk_user_faq" references="user(id)"/>
</column>
<column name="is_visible" type="BOOLEAN">
<constraints nullable="false"/>
</column>
<column name="question_short" type="VARCHAR(255)"/>
<column name="question" type="TEXT"/>
<column name="response_short" type="VARCHAR(255)"/>
<column name="response" type="TEXT"/>
<column name="response_date" type="TIMESTAMP WITHOUT TIME ZONE"/>
<column name="created_date" type="TIMESTAMP WITHOUT TIME ZONE">
<constraints nullable="false"/>
</column>
<column name="updated_date" type="TIMESTAMP WITHOUT TIME ZONE">
<constraints nullable="true"/>
</column>
</createTable>
<createTable tableName="document">
<column autoIncrement="true" name="id" type="INTEGER">
<constraints nullable="false" primaryKey="true"
primaryKeyName="document_pkey"/>
</column>
<column name="file_name" type="VARCHAR(255)">
</column>
<column name="file_path" type="TEXT"/>
<column name="call_id" type="INTEGER">
<constraints foreignKeyName="fk_call_document" references="call(id)"/>
</column>
<column name="description" type="TEXT"/>
<column name="type" type="VARCHAR(255)">
</column>
<column name="created_date" type="TIMESTAMP WITHOUT TIME ZONE">
<constraints nullable="false"/>
</column>
<column name="updated_date" type="TIMESTAMP WITHOUT TIME ZONE">
<constraints nullable="true"/></column>
</createTable>
<createTable tableName="lookup_data">
<column autoIncrement="true" name="id" type="INTEGER">
<constraints nullable="false" primaryKey="true"
primaryKeyName="lookup_data_pkey"/>
</column>
<column name="title" type="VARCHAR(255)">
<constraints nullable="true"/>
</column>
<column name="type" type="VARCHAR(255)">
<constraints nullable="false"/>
</column>
<column name="value" type="TEXT">
</column>
<column name="created_date" type="TIMESTAMP WITHOUT TIME ZONE">
<constraints nullable="false"/>
</column>
<column name="updated_date" type="TIMESTAMP WITHOUT TIME ZONE">
<constraints nullable="true"/></column>
</createTable>
<createTable tableName="call_target_audience_checklist">
<column autoIncrement="true" name="id" type="INTEGER">
<constraints nullable="false" primaryKey="true"
primaryKeyName="call_target_audience_checklist_pkey"/>
</column>
<column name="call_id" type="INTEGER">
<constraints nullable="false" foreignKeyName="fk_call_call_target_audience_checklist" references="call(id)"/>
</column>
<column name="lookup_data_id" type="INTEGER">
<constraints nullable="false" foreignKeyName="fk_lookup_data_call_target_audience_checklist" references="lookup_data(id)"/>
</column>
<column name="is_validated" type="BOOLEAN">
</column>
<column name="created_date" type="TIMESTAMP WITHOUT TIME ZONE">
<constraints nullable="false"/>
</column>
<column name="updated_date" type="TIMESTAMP WITHOUT TIME ZONE">
<constraints nullable="true"/></column>
</createTable>
</changeSet>
</databaseChangeLog>

View File

@@ -27,3 +27,17 @@ 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.
#call related messages
user.not.exist=User does not exist.
region.not.found=Region not found.
user.id.not.null=User ID cannot be null.
question.not.empty=Question cannot be empty.
name.not.empty=Name cannot be empty.
type.not.empty=Type cannot be empty.
region.not.null=Region ID cannot be null.
amount.greater.than.zero=Amount must be greater than zero.
look.up.data.not.valid=Look up data entity is not valid.
files.uploaded=Files uploaded successfully.
call.created.successfully=Call created successfully.
file.deleted.successfully=File deleted successfully.
document.not.found=Document not found.

View File

@@ -26,3 +26,18 @@ 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.
#call related messages
user.not.exist=L'utente non esiste.
region.not.found=Regione non trovata.
user.id.not.null=L'ID utente non può essere nullo.
question.not.empty=La domanda non può essere vuota.
name.not.empty=Il nome non può essere vuoto.
type.not.empty=Il tipo non può essere vuoto.
region.not.null=L'ID regione non può essere nullo.
amount.greater.than.zero=L'importo del finanziamento deve essere maggiore di zero.
look.up.data.not.valid=L'entità dati di ricerca non è valida.
files.uploaded=File caricati correttamente.
call.created.successfully=Chiamata creata correttamente.
file.deleted.successfully=File eliminato con successo.
document.not.found=Documento non trovato.