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

@@ -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>