Done ticket
This commit is contained in:
@@ -1720,4 +1720,53 @@
|
||||
<sqlFile dbms="postgresql"
|
||||
path="db/dump/update_system_email_template_for_notification_mail_05_11_2024_4.sql"/>
|
||||
</changeSet>
|
||||
<changeSet id="12-11-2024_1" author="Nisha Kashyap">
|
||||
<createTable tableName="email_log">
|
||||
<column autoIncrement="true" name="id" type="INTEGER">
|
||||
<constraints nullable="false" primaryKey="true"
|
||||
primaryKeyName="pk_email_logs"/>
|
||||
</column>
|
||||
<column name="email_type" type="VARCHAR(255)">
|
||||
<constraints nullable="false"/>
|
||||
</column>
|
||||
<column name="recipient_type" type="VARCHAR(255)">
|
||||
<constraints nullable="false"/>
|
||||
</column>
|
||||
<column name="recipient_id" type="INTEGER">
|
||||
<constraints nullable="false"/>
|
||||
</column>
|
||||
<column name="email_subject" type="TEXT"/>
|
||||
<column name="email_body" type="TEXT"/>
|
||||
<column name="send_status" type="VARCHAR(255)"/>
|
||||
<column name="send_date_time" type="TIMESTAMP WITHOUT TIME ZONE"/>
|
||||
<column name="created_date" type="TIMESTAMP WITHOUT TIME ZONE" defaultValueComputed="CURRENT_TIMESTAMP"/>
|
||||
<column name="updated_date" type="TIMESTAMP WITHOUT TIME ZONE"/>
|
||||
<column name="error_message" type="TEXT"/>
|
||||
</createTable>
|
||||
<createTable tableName="email_tracking">
|
||||
<column autoIncrement="true" name="id" type="INTEGER">
|
||||
<constraints nullable="false" primaryKey="true" primaryKeyName="pk_email_template_mapping"/>
|
||||
</column>
|
||||
<!-- Foreign key to email_logs table -->
|
||||
<column name="email_log_id" type="INTEGER">
|
||||
<constraints nullable="false" foreignKeyName="fk_email_log_id" references="email_log(id)"/>
|
||||
</column>
|
||||
<column name="user_id" type="INTEGER">
|
||||
<constraints nullable="false" foreignKeyName="fk_user_id" references="gepafin_user(id)"/>
|
||||
</column>
|
||||
<!-- The ID of the associated entity -->
|
||||
<column name="entity_id" type="INTEGER">
|
||||
<constraints nullable="false"/>
|
||||
</column>
|
||||
<!-- The type of the associated entity (e.g., USER, APPLICATION) -->
|
||||
<column name="entity_type" type="VARCHAR(255)">
|
||||
<constraints nullable="false"/>
|
||||
</column>
|
||||
<column name="created_date" type="TIMESTAMP WITHOUT TIME ZONE" defaultValueComputed="CURRENT_TIMESTAMP"/>
|
||||
<column name="updated_date" type="TIMESTAMP WITHOUT TIME ZONE"/>
|
||||
</createTable>
|
||||
</changeSet>
|
||||
|
||||
|
||||
|
||||
</databaseChangeLog>
|
||||
|
||||
Reference in New Issue
Block a user