Notification Code.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# DataSource Configuration
|
||||
spring.datasource.url=jdbc:postgresql://localhost:5432/gepafin_local
|
||||
spring.datasource.username=postgres
|
||||
spring.datasource.url=jdbc:postgresql://localhost:5432/gepafin_dev_local
|
||||
spring.datasource.username=root
|
||||
spring.datasource.password=root
|
||||
spring.datasource.driver-class-name=org.postgresql.Driver
|
||||
|
||||
@@ -20,4 +20,11 @@ appointment.portal.user=UtenzaAPIPortal@621
|
||||
appointment.portal.password=u13nzaAP1P0rtal
|
||||
appointment.portal.source=GEPAFINPORTAL
|
||||
appointment.portal.context=GEPAFINPORTAL
|
||||
flagDaFirmare=false
|
||||
flagDaFirmare=false
|
||||
|
||||
# RabbitMQ properties for STOMP broker relay
|
||||
spring.rabbitmq.host=localhost
|
||||
spring.rabbitmq.port=5672
|
||||
spring.rabbitmq.username=guest
|
||||
spring.rabbitmq.password=guest
|
||||
spring.rabbitmq.virtual-host=/
|
||||
@@ -1992,4 +1992,49 @@
|
||||
</addColumn>
|
||||
</changeSet>
|
||||
|
||||
<changeSet id="13-12-2024_1" author="Piyush Kag">
|
||||
<createTable tableName="notification">
|
||||
<column autoIncrement="true" name="id" type="INTEGER">
|
||||
<constraints nullable="false" primaryKey="true"
|
||||
primaryKeyName="pk_notification"/>
|
||||
</column>
|
||||
<column name="message" type="TEXT"/>
|
||||
<column name="status" type="TEXT"/>
|
||||
<column name="notification_type" type="TEXT"/>
|
||||
<column name="is_deleted" type="BOOLEAN" defaultValueBoolean="false"/>
|
||||
<column name="user_id" type="INTEGER"/>
|
||||
<column name="created_date" type="TIMESTAMP WITHOUT TIME ZONE"/>
|
||||
<column name="updated_date" type="TIMESTAMP WITHOUT TIME ZONE"/>
|
||||
</createTable>
|
||||
</changeSet>
|
||||
|
||||
<changeSet id="13-12-2024_2" author="Piyush Kag">
|
||||
<createTable tableName="notification_type">
|
||||
<column autoIncrement="true" name="id" type="INTEGER">
|
||||
<constraints nullable="false" primaryKey="true"
|
||||
primaryKeyName="pk_notification_type"/>
|
||||
</column>
|
||||
<column name="notification_name" type="TEXT"/>
|
||||
<column name="json_template" type="TEXT"/>
|
||||
<column name="created_date" type="TIMESTAMP WITHOUT TIME ZONE"/>
|
||||
<column name="updated_date" type="TIMESTAMP WITHOUT TIME ZONE"/>
|
||||
</createTable>
|
||||
</changeSet>
|
||||
|
||||
<changeSet id="13-12-2024_4" author="Piyush Kag">
|
||||
<sqlFile dbms="postgresql"
|
||||
path="db/dump/insert_json_template_for_notification_13_12_2024.sql"/>
|
||||
</changeSet>
|
||||
|
||||
<changeSet id="13-12-2024_5" author="Piyush Kag">
|
||||
<addColumn tableName="notification">
|
||||
<column name="redirect_link" type="TEXT"/>
|
||||
</addColumn>
|
||||
<addColumn tableName="notification_type">
|
||||
<column name="is_deleted" type="BOOLEAN" defaultValueBoolean="false">
|
||||
<constraints nullable="false"/>
|
||||
</column>
|
||||
</addColumn>
|
||||
</changeSet>
|
||||
|
||||
</databaseChangeLog>
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
INSERT INTO notification_type (notification_name, json_template) VALUES
|
||||
('CALL_CREATED', 'Un nuovo bando intitolato {{call_name}} è stato pubblicato. Controllalo e invia le tue candidature prima della scadenza.'),
|
||||
('APPLICATION_SUBMISSION', 'La tua richiesta per {{call_name}} ai sensi del protocollo n. {{protocol_number}} è stata presentata con successo. È ora in fase di valutazione.'),
|
||||
('AMENDMENT_CREATION', 'È stato creato un emendamento per la tua domanda in {{call_name}} ai sensi del protocollo n. {{protocol_number}}. Esamina le modifiche e procedi di conseguenza.'),
|
||||
('EVALUATION_RESULT', 'Il risultato della valutazione per la tua domanda ai sensi del protocollo n. {{protocol_number}} è ora disponibile. Fai clic qui per visualizzare il tuo feedback.');
|
||||
Reference in New Issue
Block a user