kekmodel commited on
Commit
b654a31
·
verified ·
1 Parent(s): 2d946c6

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. public/fineract/0001-mifos-platform-shared-tenants/ddl.sql +30 -0
  2. public/fineract/0001a-mifosplatform-core-ddl-latest/ddl.sql +865 -0
  3. public/fineract/0001b-gk-datatables/ddl.sql +41 -0
  4. public/fineract/barebones_db/data/acc_accounting_rule.csv +1 -0
  5. public/fineract/barebones_db/data/acc_gl_account.csv +1 -0
  6. public/fineract/barebones_db/data/acc_gl_closure.csv +1 -0
  7. public/fineract/barebones_db/data/acc_gl_financial_activity_account.csv +1 -0
  8. public/fineract/barebones_db/data/acc_gl_journal_entry.csv +1 -0
  9. public/fineract/barebones_db/data/acc_product_mapping.csv +1 -0
  10. public/fineract/barebones_db/data/acc_rule_tags.csv +1 -0
  11. public/fineract/barebones_db/data/c_account_number_format.csv +1 -0
  12. public/fineract/barebones_db/data/c_cache.csv +1 -0
  13. public/fineract/barebones_db/data/c_configuration.csv +1 -0
  14. public/fineract/barebones_db/data/c_external_service.csv +1 -0
  15. public/fineract/barebones_db/data/c_external_service_properties.csv +1 -0
  16. public/fineract/barebones_db/data/job.csv +1 -0
  17. public/fineract/barebones_db/data/job_run_history.csv +1 -0
  18. public/fineract/barebones_db/data/m_account_transfer_details.csv +1 -0
  19. public/fineract/barebones_db/data/m_account_transfer_standing_instructions.csv +1 -0
  20. public/fineract/barebones_db/data/m_account_transfer_transaction.csv +1 -0
  21. public/fineract/barebones_db/data/m_address.csv +1 -0
  22. public/fineract/barebones_db/data/m_appuser_previous_password.csv +1 -0
  23. public/fineract/barebones_db/data/m_appuser_role.csv +1 -0
  24. public/fineract/barebones_db/data/m_calendar.csv +1 -0
  25. public/fineract/barebones_db/data/m_calendar_history.csv +1 -0
  26. public/fineract/barebones_db/data/m_calendar_instance.csv +1 -0
  27. public/fineract/barebones_db/data/m_cashier_transactions.csv +1 -0
  28. public/fineract/barebones_db/data/m_cashiers.csv +1 -0
  29. public/fineract/barebones_db/data/m_charge.csv +1 -0
  30. public/fineract/barebones_db/data/m_client.csv +1 -0
  31. public/fineract/barebones_db/data/m_client_address.csv +1 -0
  32. public/fineract/barebones_db/data/m_client_attendance.csv +1 -0
  33. public/fineract/barebones_db/data/m_client_charge.csv +1 -0
  34. public/fineract/barebones_db/data/m_client_charge_paid_by.csv +1 -0
  35. public/fineract/barebones_db/data/m_client_identifier.csv +1 -0
  36. public/fineract/barebones_db/data/m_client_non_person.csv +1 -0
  37. public/fineract/barebones_db/data/m_client_transaction.csv +1 -0
  38. public/fineract/barebones_db/data/m_code.csv +1 -0
  39. public/fineract/barebones_db/data/m_code_value.csv +1 -0
  40. public/fineract/barebones_db/data/m_currency.csv +1 -0
  41. public/fineract/barebones_db/data/m_deposit_account_on_hold_transaction.csv +1 -0
  42. public/fineract/barebones_db/data/m_deposit_account_recurring_detail.csv +1 -0
  43. public/fineract/barebones_db/data/m_deposit_account_term_and_preclosure.csv +1 -0
  44. public/fineract/barebones_db/data/m_deposit_product_interest_rate_chart.csv +1 -0
  45. public/fineract/barebones_db/data/m_deposit_product_recurring_detail.csv +1 -0
  46. public/fineract/barebones_db/data/m_deposit_product_term_and_preclosure.csv +1 -0
  47. public/fineract/barebones_db/data/m_document.csv +1 -0
  48. public/fineract/barebones_db/data/m_entity_datatable_check.csv +1 -0
  49. public/fineract/barebones_db/data/m_entity_relation.csv +1 -0
  50. public/fineract/barebones_db/data/m_entity_to_entity_access.csv +1 -0
public/fineract/0001-mifos-platform-shared-tenants/ddl.sql ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ -- Schema: fineract_0001-mifos-platform-shared-tenants
2
+ CREATE SCHEMA IF NOT EXISTS "fineract_0001-mifos-platform-shared-tenants";
3
+
4
+ -- Table: tenants
5
+ CREATE TABLE "fineract_0001-mifos-platform-shared-tenants"."tenants" (
6
+ "id" BIGINT NOT NULL DEFAULT nextval('"fineract_0001-mifos-platform-shared-tenants".tenants_id_seq'::regclass),
7
+ "identifier" VARCHAR(100) NOT NULL,
8
+ "name" VARCHAR(100) NOT NULL,
9
+ "schema_name" VARCHAR(100) NOT NULL,
10
+ "timezone_id" VARCHAR(100) NOT NULL,
11
+ "country_id" INTEGER,
12
+ "joined_date" DATE,
13
+ "created_date" TIMESTAMP,
14
+ "lastmodified_date" TIMESTAMP,
15
+ "schema_server" VARCHAR(100) NOT NULL DEFAULT 'localhost'::character varying,
16
+ "schema_server_port" VARCHAR(10) NOT NULL DEFAULT '3306'::character varying,
17
+ "schema_username" VARCHAR(100) NOT NULL DEFAULT 'root'::character varying,
18
+ "schema_password" VARCHAR(100) NOT NULL DEFAULT 'mysql'::character varying,
19
+ "auto_update" SMALLINT NOT NULL DEFAULT '1'::smallint,
20
+ CONSTRAINT "tenants_pkey" PRIMARY KEY ("id")
21
+ );
22
+
23
+ -- Table: timezones
24
+ CREATE TABLE "fineract_0001-mifos-platform-shared-tenants"."timezones" (
25
+ "id" INTEGER NOT NULL DEFAULT nextval('"fineract_0001-mifos-platform-shared-tenants".timezones_id_seq'::regclass),
26
+ "country_code" VARCHAR(2) NOT NULL,
27
+ "timezonename" VARCHAR(100) NOT NULL,
28
+ "comments" VARCHAR(150) DEFAULT NULL::character varying,
29
+ CONSTRAINT "timezones_pkey" PRIMARY KEY ("id")
30
+ );
public/fineract/0001a-mifosplatform-core-ddl-latest/ddl.sql ADDED
@@ -0,0 +1,865 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ -- Schema: fineract_0001a-mifosplatform-core-ddl-latest
2
+ CREATE SCHEMA IF NOT EXISTS "fineract_0001a-mifosplatform-core-ddl-latest";
3
+
4
+ -- Table: acc_gl_account
5
+ CREATE TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."acc_gl_account" (
6
+ "id" BIGINT NOT NULL DEFAULT nextval('"fineract_0001a-mifosplatform-core-ddl-latest".acc_gl_account_id_seq'::regclass),
7
+ "name" VARCHAR(45) NOT NULL,
8
+ "parent_id" BIGINT,
9
+ "gl_code" VARCHAR(45) NOT NULL,
10
+ "disabled" SMALLINT NOT NULL DEFAULT '0'::smallint,
11
+ "manual_journal_entries_allowed" SMALLINT NOT NULL DEFAULT '1'::smallint,
12
+ "account_usage" SMALLINT NOT NULL DEFAULT '2'::smallint,
13
+ "classification_enum" SMALLINT NOT NULL,
14
+ "description" VARCHAR(500) DEFAULT NULL::character varying,
15
+ CONSTRAINT "acc_gl_account_pkey" PRIMARY KEY ("id"),
16
+ CONSTRAINT "acc_gl_account_gl_code_key" UNIQUE ("gl_code"),
17
+ CONSTRAINT "acc_gl_account_parent_id_key" UNIQUE ("parent_id")
18
+ );
19
+
20
+ -- Table: acc_gl_closure
21
+ CREATE TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."acc_gl_closure" (
22
+ "id" BIGINT NOT NULL DEFAULT nextval('"fineract_0001a-mifosplatform-core-ddl-latest".acc_gl_closure_id_seq'::regclass),
23
+ "office_id" BIGINT NOT NULL,
24
+ "closing_date" DATE NOT NULL,
25
+ "is_deleted" INTEGER NOT NULL DEFAULT 0,
26
+ "createdby_id" BIGINT,
27
+ "lastmodifiedby_id" BIGINT,
28
+ "created_date" TIMESTAMP,
29
+ "lastmodified_date" TIMESTAMP,
30
+ "comments" VARCHAR(500) DEFAULT NULL::character varying,
31
+ CONSTRAINT "acc_gl_closure_pkey" PRIMARY KEY ("id"),
32
+ CONSTRAINT "acc_gl_closure_createdby_id_key" UNIQUE ("createdby_id"),
33
+ CONSTRAINT "acc_gl_closure_lastmodifiedby_id_key" UNIQUE ("lastmodifiedby_id"),
34
+ CONSTRAINT "acc_gl_closure_office_id_closing_date_key" UNIQUE ("office_id", "closing_date"),
35
+ CONSTRAINT "acc_gl_closure_office_id_key" UNIQUE ("office_id")
36
+ );
37
+
38
+ -- Table: acc_gl_journal_entry
39
+ CREATE TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."acc_gl_journal_entry" (
40
+ "id" BIGINT NOT NULL DEFAULT nextval('"fineract_0001a-mifosplatform-core-ddl-latest".acc_gl_journal_entry_id_seq'::regclass),
41
+ "account_id" BIGINT NOT NULL,
42
+ "office_id" BIGINT NOT NULL,
43
+ "reversal_id" BIGINT,
44
+ "transaction_id" VARCHAR(50) NOT NULL,
45
+ "reversed" SMALLINT NOT NULL DEFAULT '0'::smallint,
46
+ "manual_entry" SMALLINT NOT NULL DEFAULT '0'::smallint,
47
+ "entry_date" DATE NOT NULL,
48
+ "type_enum" SMALLINT NOT NULL,
49
+ "amount" NUMERIC(19,6) NOT NULL,
50
+ "description" VARCHAR(500) DEFAULT NULL::character varying,
51
+ "entity_type_enum" SMALLINT,
52
+ "entity_id" BIGINT,
53
+ "createdby_id" BIGINT NOT NULL,
54
+ "lastmodifiedby_id" BIGINT NOT NULL,
55
+ "created_date" TIMESTAMP NOT NULL,
56
+ "lastmodified_date" TIMESTAMP NOT NULL,
57
+ CONSTRAINT "acc_gl_journal_entry_pkey" PRIMARY KEY ("id"),
58
+ CONSTRAINT "acc_gl_journal_entry_account_id_key" UNIQUE ("account_id"),
59
+ CONSTRAINT "acc_gl_journal_entry_createdby_id_key" UNIQUE ("createdby_id"),
60
+ CONSTRAINT "acc_gl_journal_entry_lastmodifiedby_id_key" UNIQUE ("lastmodifiedby_id"),
61
+ CONSTRAINT "acc_gl_journal_entry_office_id_key" UNIQUE ("office_id"),
62
+ CONSTRAINT "acc_gl_journal_entry_reversal_id_key" UNIQUE ("reversal_id")
63
+ );
64
+
65
+ -- Table: acc_product_mapping
66
+ CREATE TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."acc_product_mapping" (
67
+ "id" BIGINT NOT NULL DEFAULT nextval('"fineract_0001a-mifosplatform-core-ddl-latest".acc_product_mapping_id_seq'::regclass),
68
+ "gl_account_id" BIGINT,
69
+ "product_id" BIGINT,
70
+ "product_type" SMALLINT,
71
+ "financial_account_type" SMALLINT,
72
+ CONSTRAINT "acc_product_mapping_pkey" PRIMARY KEY ("id")
73
+ );
74
+
75
+ -- Table: c_configuration
76
+ CREATE TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."c_configuration" (
77
+ "id" BIGINT NOT NULL DEFAULT nextval('"fineract_0001a-mifosplatform-core-ddl-latest".c_configuration_id_seq'::regclass),
78
+ "name" VARCHAR(50) DEFAULT NULL::character varying,
79
+ "enabled" SMALLINT NOT NULL DEFAULT '0'::smallint,
80
+ CONSTRAINT "c_configuration_pkey" PRIMARY KEY ("id")
81
+ );
82
+
83
+ -- Table: m_appuser
84
+ CREATE TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."m_appuser" (
85
+ "id" BIGINT NOT NULL DEFAULT nextval('"fineract_0001a-mifosplatform-core-ddl-latest".m_appuser_id_seq'::regclass),
86
+ "is_deleted" SMALLINT NOT NULL DEFAULT '0'::smallint,
87
+ "office_id" BIGINT,
88
+ "username" VARCHAR(100) NOT NULL,
89
+ "firstname" VARCHAR(100) NOT NULL,
90
+ "lastname" VARCHAR(100) NOT NULL,
91
+ "password" VARCHAR(255) NOT NULL,
92
+ "email" VARCHAR(100) NOT NULL,
93
+ "firsttime_login_remaining" BOOLEAN NOT NULL,
94
+ "nonexpired" BOOLEAN NOT NULL,
95
+ "nonlocked" BOOLEAN NOT NULL,
96
+ "nonexpired_credentials" BOOLEAN NOT NULL,
97
+ "enabled" BOOLEAN NOT NULL,
98
+ CONSTRAINT "m_appuser_pkey" PRIMARY KEY ("id"),
99
+ CONSTRAINT "m_appuser_office_id_key" UNIQUE ("office_id"),
100
+ CONSTRAINT "m_appuser_username_key" UNIQUE ("username")
101
+ );
102
+
103
+ -- Table: m_appuser_role
104
+ CREATE TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."m_appuser_role" (
105
+ "appuser_id" BIGINT NOT NULL,
106
+ "role_id" BIGINT NOT NULL,
107
+ CONSTRAINT "m_appuser_role_pkey" PRIMARY KEY ("appuser_id", "role_id"),
108
+ CONSTRAINT "m_appuser_role_appuser_id_key" UNIQUE ("appuser_id"),
109
+ CONSTRAINT "m_appuser_role_role_id_key" UNIQUE ("role_id")
110
+ );
111
+
112
+ -- Table: m_calendar
113
+ CREATE TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."m_calendar" (
114
+ "id" BIGINT NOT NULL DEFAULT nextval('"fineract_0001a-mifosplatform-core-ddl-latest".m_calendar_id_seq'::regclass),
115
+ "title" VARCHAR(50) NOT NULL,
116
+ "description" VARCHAR(100) DEFAULT NULL::character varying,
117
+ "location" VARCHAR(50) DEFAULT NULL::character varying,
118
+ "start_date" DATE NOT NULL,
119
+ "end_date" DATE,
120
+ "duration" SMALLINT,
121
+ "calendar_type_enum" SMALLINT NOT NULL,
122
+ "repeating" SMALLINT NOT NULL DEFAULT '0'::smallint,
123
+ "recurrence" VARCHAR(100) DEFAULT NULL::character varying,
124
+ "remind_by_enum" SMALLINT,
125
+ "first_reminder" SMALLINT,
126
+ "second_reminder" SMALLINT,
127
+ "createdby_id" BIGINT,
128
+ "lastmodifiedby_id" BIGINT,
129
+ "created_date" TIMESTAMP,
130
+ "lastmodified_date" TIMESTAMP,
131
+ CONSTRAINT "m_calendar_pkey" PRIMARY KEY ("id")
132
+ );
133
+
134
+ -- Table: m_calendar_instance
135
+ CREATE TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."m_calendar_instance" (
136
+ "id" BIGINT NOT NULL DEFAULT nextval('"fineract_0001a-mifosplatform-core-ddl-latest".m_calendar_instance_id_seq'::regclass),
137
+ "calendar_id" BIGINT NOT NULL,
138
+ "entity_id" BIGINT NOT NULL,
139
+ "entity_type_enum" SMALLINT NOT NULL,
140
+ CONSTRAINT "m_calendar_instance_pkey" PRIMARY KEY ("id"),
141
+ CONSTRAINT "m_calendar_instance_calendar_id_key" UNIQUE ("calendar_id")
142
+ );
143
+
144
+ -- Table: m_charge
145
+ CREATE TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."m_charge" (
146
+ "id" BIGINT NOT NULL DEFAULT nextval('"fineract_0001a-mifosplatform-core-ddl-latest".m_charge_id_seq'::regclass),
147
+ "name" VARCHAR(100) DEFAULT NULL::character varying,
148
+ "currency_code" VARCHAR(3) NOT NULL,
149
+ "charge_applies_to_enum" SMALLINT NOT NULL,
150
+ "charge_time_enum" SMALLINT NOT NULL,
151
+ "charge_calculation_enum" SMALLINT NOT NULL,
152
+ "amount" NUMERIC(19,6) NOT NULL,
153
+ "is_penalty" SMALLINT NOT NULL DEFAULT '0'::smallint,
154
+ "is_active" SMALLINT NOT NULL,
155
+ "is_deleted" SMALLINT NOT NULL DEFAULT '0'::smallint,
156
+ CONSTRAINT "m_charge_pkey" PRIMARY KEY ("id"),
157
+ CONSTRAINT "m_charge_name_key" UNIQUE ("name")
158
+ );
159
+
160
+ -- Table: m_client
161
+ CREATE TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."m_client" (
162
+ "id" BIGINT NOT NULL DEFAULT nextval('"fineract_0001a-mifosplatform-core-ddl-latest".m_client_id_seq'::regclass),
163
+ "account_no" VARCHAR(20) NOT NULL,
164
+ "office_id" BIGINT NOT NULL,
165
+ "external_id" VARCHAR(100) DEFAULT NULL::character varying,
166
+ "firstname" VARCHAR(50) DEFAULT NULL::character varying,
167
+ "middlename" VARCHAR(50) DEFAULT NULL::character varying,
168
+ "lastname" VARCHAR(50) DEFAULT NULL::character varying,
169
+ "fullname" VARCHAR(100) DEFAULT NULL::character varying,
170
+ "display_name" VARCHAR(100) NOT NULL,
171
+ "image_key" VARCHAR(500) DEFAULT NULL::character varying,
172
+ "joined_date" DATE,
173
+ "is_deleted" SMALLINT NOT NULL DEFAULT '0'::smallint,
174
+ CONSTRAINT "m_client_pkey" PRIMARY KEY ("id"),
175
+ CONSTRAINT "m_client_account_no_key" UNIQUE ("account_no"),
176
+ CONSTRAINT "m_client_external_id_key" UNIQUE ("external_id"),
177
+ CONSTRAINT "m_client_office_id_key" UNIQUE ("office_id")
178
+ );
179
+
180
+ -- Table: m_client_identifier
181
+ CREATE TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."m_client_identifier" (
182
+ "id" BIGINT NOT NULL DEFAULT nextval('"fineract_0001a-mifosplatform-core-ddl-latest".m_client_identifier_id_seq'::regclass),
183
+ "client_id" BIGINT NOT NULL,
184
+ "document_type_id" INTEGER NOT NULL,
185
+ "document_key" VARCHAR(50) NOT NULL,
186
+ "description" VARCHAR(500) DEFAULT NULL::character varying,
187
+ "createdby_id" BIGINT,
188
+ "lastmodifiedby_id" BIGINT,
189
+ "created_date" TIMESTAMP,
190
+ "lastmodified_date" TIMESTAMP,
191
+ CONSTRAINT "m_client_identifier_pkey" PRIMARY KEY ("id"),
192
+ CONSTRAINT "m_client_identifier_client_id_document_type_id_key" UNIQUE ("client_id", "document_type_id"),
193
+ CONSTRAINT "m_client_identifier_client_id_key" UNIQUE ("client_id"),
194
+ CONSTRAINT "m_client_identifier_document_type_id_document_key_key" UNIQUE ("document_type_id", "document_key"),
195
+ CONSTRAINT "m_client_identifier_document_type_id_key" UNIQUE ("document_type_id")
196
+ );
197
+
198
+ -- Table: m_code
199
+ CREATE TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."m_code" (
200
+ "id" INTEGER NOT NULL DEFAULT nextval('"fineract_0001a-mifosplatform-core-ddl-latest".m_code_id_seq'::regclass),
201
+ "code_name" VARCHAR(100) DEFAULT NULL::character varying,
202
+ "is_system_defined" SMALLINT NOT NULL DEFAULT '0'::smallint,
203
+ CONSTRAINT "m_code_pkey" PRIMARY KEY ("id"),
204
+ CONSTRAINT "m_code_code_name_key" UNIQUE ("code_name")
205
+ );
206
+
207
+ -- Table: m_code_value
208
+ CREATE TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."m_code_value" (
209
+ "id" INTEGER NOT NULL DEFAULT nextval('"fineract_0001a-mifosplatform-core-ddl-latest".m_code_value_id_seq'::regclass),
210
+ "code_id" INTEGER NOT NULL,
211
+ "code_value" VARCHAR(100) DEFAULT NULL::character varying,
212
+ "order_position" INTEGER NOT NULL DEFAULT 0,
213
+ CONSTRAINT "m_code_value_pkey" PRIMARY KEY ("id"),
214
+ CONSTRAINT "m_code_value_code_id_code_value_key" UNIQUE ("code_id", "code_value"),
215
+ CONSTRAINT "m_code_value_code_id_key" UNIQUE ("code_id")
216
+ );
217
+
218
+ -- Table: m_currency
219
+ CREATE TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."m_currency" (
220
+ "id" BIGINT NOT NULL DEFAULT nextval('"fineract_0001a-mifosplatform-core-ddl-latest".m_currency_id_seq'::regclass),
221
+ "code" VARCHAR(3) NOT NULL,
222
+ "decimal_places" SMALLINT NOT NULL,
223
+ "display_symbol" VARCHAR(10) DEFAULT NULL::character varying,
224
+ "name" VARCHAR(50) NOT NULL,
225
+ "internationalized_name_code" VARCHAR(50) NOT NULL,
226
+ CONSTRAINT "m_currency_pkey" PRIMARY KEY ("id"),
227
+ CONSTRAINT "m_currency_code_key" UNIQUE ("code")
228
+ );
229
+
230
+ -- Table: m_document
231
+ CREATE TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."m_document" (
232
+ "id" INTEGER NOT NULL DEFAULT nextval('"fineract_0001a-mifosplatform-core-ddl-latest".m_document_id_seq'::regclass),
233
+ "parent_entity_type" VARCHAR(50) NOT NULL,
234
+ "parent_entity_id" INTEGER NOT NULL DEFAULT 0,
235
+ "name" VARCHAR(250) NOT NULL,
236
+ "file_name" VARCHAR(250) NOT NULL,
237
+ "size" INTEGER DEFAULT 0,
238
+ "type" VARCHAR(50) DEFAULT NULL::character varying,
239
+ "description" VARCHAR(1000) DEFAULT NULL::character varying,
240
+ "location" VARCHAR(500) NOT NULL DEFAULT '0'::character varying,
241
+ CONSTRAINT "m_document_pkey" PRIMARY KEY ("id")
242
+ );
243
+
244
+ -- Table: m_fund
245
+ CREATE TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."m_fund" (
246
+ "id" BIGINT NOT NULL DEFAULT nextval('"fineract_0001a-mifosplatform-core-ddl-latest".m_fund_id_seq'::regclass),
247
+ "name" VARCHAR(255) DEFAULT NULL::character varying,
248
+ "external_id" VARCHAR(100) DEFAULT NULL::character varying,
249
+ CONSTRAINT "m_fund_pkey" PRIMARY KEY ("id"),
250
+ CONSTRAINT "m_fund_external_id_key" UNIQUE ("external_id"),
251
+ CONSTRAINT "m_fund_name_key" UNIQUE ("name")
252
+ );
253
+
254
+ -- Table: m_group_client
255
+ CREATE TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."m_group_client" (
256
+ "group_id" BIGINT NOT NULL,
257
+ "client_id" BIGINT NOT NULL,
258
+ CONSTRAINT "m_group_client_pkey" PRIMARY KEY ("group_id", "client_id"),
259
+ CONSTRAINT "m_group_client_client_id_key" UNIQUE ("client_id")
260
+ );
261
+
262
+ -- Table: m_group_level
263
+ CREATE TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."m_group_level" (
264
+ "id" INTEGER NOT NULL DEFAULT nextval('"fineract_0001a-mifosplatform-core-ddl-latest".m_group_level_id_seq'::regclass),
265
+ "parent_id" INTEGER,
266
+ "super_parent" SMALLINT NOT NULL,
267
+ "level_name" VARCHAR(100) NOT NULL,
268
+ "recursable" SMALLINT NOT NULL,
269
+ "can_have_clients" SMALLINT NOT NULL,
270
+ CONSTRAINT "m_group_level_pkey" PRIMARY KEY ("id"),
271
+ CONSTRAINT "m_group_level_parent_id_key" UNIQUE ("parent_id")
272
+ );
273
+
274
+ -- Table: m_guarantor
275
+ CREATE TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."m_guarantor" (
276
+ "id" BIGINT NOT NULL DEFAULT nextval('"fineract_0001a-mifosplatform-core-ddl-latest".m_guarantor_id_seq'::regclass),
277
+ "loan_id" BIGINT NOT NULL,
278
+ "client_reln_cv_id" INTEGER,
279
+ "type_enum" SMALLINT NOT NULL,
280
+ "entity_id" BIGINT,
281
+ "firstname" VARCHAR(50) DEFAULT NULL::character varying,
282
+ "lastname" VARCHAR(50) DEFAULT NULL::character varying,
283
+ "dob" DATE,
284
+ "address_line_1" VARCHAR(500) DEFAULT NULL::character varying,
285
+ "address_line_2" VARCHAR(500) DEFAULT NULL::character varying,
286
+ "city" VARCHAR(50) DEFAULT NULL::character varying,
287
+ "state" VARCHAR(50) DEFAULT NULL::character varying,
288
+ "country" VARCHAR(50) DEFAULT NULL::character varying,
289
+ "zip" VARCHAR(20) DEFAULT NULL::character varying,
290
+ "house_phone_number" VARCHAR(20) DEFAULT NULL::character varying,
291
+ "mobile_number" VARCHAR(20) DEFAULT NULL::character varying,
292
+ "comment" VARCHAR(500) DEFAULT NULL::character varying,
293
+ CONSTRAINT "m_guarantor_pkey" PRIMARY KEY ("id"),
294
+ CONSTRAINT "m_guarantor_loan_id_key" UNIQUE ("loan_id")
295
+ );
296
+
297
+ -- Table: m_loan
298
+ CREATE TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."m_loan" (
299
+ "id" BIGINT NOT NULL DEFAULT nextval('"fineract_0001a-mifosplatform-core-ddl-latest".m_loan_id_seq'::regclass),
300
+ "account_no" VARCHAR(20) NOT NULL,
301
+ "external_id" VARCHAR(100) DEFAULT NULL::character varying,
302
+ "client_id" BIGINT,
303
+ "group_id" BIGINT,
304
+ "product_id" BIGINT,
305
+ "fund_id" BIGINT,
306
+ "loan_officer_id" BIGINT,
307
+ "loanpurpose_cv_id" INTEGER,
308
+ "loan_status_id" SMALLINT NOT NULL,
309
+ "currency_code" VARCHAR(3) NOT NULL,
310
+ "currency_digits" SMALLINT NOT NULL,
311
+ "principal_amount" NUMERIC(19,6) NOT NULL,
312
+ "arrearstolerance_amount" NUMERIC(19,6) DEFAULT NULL::numeric,
313
+ "nominal_interest_rate_per_period" NUMERIC(19,6) NOT NULL,
314
+ "interest_period_frequency_enum" SMALLINT NOT NULL,
315
+ "annual_nominal_interest_rate" NUMERIC(19,6) NOT NULL,
316
+ "interest_method_enum" SMALLINT NOT NULL,
317
+ "interest_calculated_in_period_enum" SMALLINT NOT NULL DEFAULT '1'::smallint,
318
+ "term_frequency" SMALLINT NOT NULL DEFAULT '0'::smallint,
319
+ "term_period_frequency_enum" SMALLINT NOT NULL DEFAULT '2'::smallint,
320
+ "repay_every" SMALLINT NOT NULL,
321
+ "repayment_period_frequency_enum" SMALLINT NOT NULL,
322
+ "number_of_repayments" SMALLINT NOT NULL,
323
+ "amortization_method_enum" SMALLINT NOT NULL,
324
+ "submittedon_date" DATE,
325
+ "submittedon_userid" BIGINT,
326
+ "approvedon_date" DATE,
327
+ "approvedon_userid" BIGINT,
328
+ "expected_disbursedon_date" DATE,
329
+ "expected_firstrepaymenton_date" DATE,
330
+ "interest_calculated_from_date" DATE,
331
+ "disbursedon_date" DATE,
332
+ "disbursedon_userid" BIGINT,
333
+ "expected_maturedon_date" DATE,
334
+ "maturedon_date" DATE,
335
+ "closedon_date" DATE,
336
+ "closedon_userid" BIGINT,
337
+ "total_charges_due_at_disbursement_derived" NUMERIC(19,6) DEFAULT NULL::numeric,
338
+ "principal_disbursed_derived" NUMERIC(19,6) NOT NULL DEFAULT 0.000000,
339
+ "principal_repaid_derived" NUMERIC(19,6) NOT NULL DEFAULT 0.000000,
340
+ "principal_writtenoff_derived" NUMERIC(19,6) NOT NULL DEFAULT 0.000000,
341
+ "principal_outstanding_derived" NUMERIC(19,6) NOT NULL DEFAULT 0.000000,
342
+ "interest_charged_derived" NUMERIC(19,6) NOT NULL DEFAULT 0.000000,
343
+ "interest_repaid_derived" NUMERIC(19,6) NOT NULL DEFAULT 0.000000,
344
+ "interest_waived_derived" NUMERIC(19,6) NOT NULL DEFAULT 0.000000,
345
+ "interest_writtenoff_derived" NUMERIC(19,6) NOT NULL DEFAULT 0.000000,
346
+ "interest_outstanding_derived" NUMERIC(19,6) NOT NULL DEFAULT 0.000000,
347
+ "fee_charges_charged_derived" NUMERIC(19,6) NOT NULL DEFAULT 0.000000,
348
+ "fee_charges_repaid_derived" NUMERIC(19,6) NOT NULL DEFAULT 0.000000,
349
+ "fee_charges_waived_derived" NUMERIC(19,6) NOT NULL DEFAULT 0.000000,
350
+ "fee_charges_writtenoff_derived" NUMERIC(19,6) NOT NULL DEFAULT 0.000000,
351
+ "fee_charges_outstanding_derived" NUMERIC(19,6) NOT NULL DEFAULT 0.000000,
352
+ "penalty_charges_charged_derived" NUMERIC(19,6) NOT NULL DEFAULT 0.000000,
353
+ "penalty_charges_repaid_derived" NUMERIC(19,6) NOT NULL DEFAULT 0.000000,
354
+ "penalty_charges_waived_derived" NUMERIC(19,6) NOT NULL DEFAULT 0.000000,
355
+ "penalty_charges_writtenoff_derived" NUMERIC(19,6) NOT NULL DEFAULT 0.000000,
356
+ "penalty_charges_outstanding_derived" NUMERIC(19,6) NOT NULL DEFAULT 0.000000,
357
+ "total_expected_repayment_derived" NUMERIC(19,6) NOT NULL DEFAULT 0.000000,
358
+ "total_repayment_derived" NUMERIC(19,6) NOT NULL DEFAULT 0.000000,
359
+ "total_expected_costofloan_derived" NUMERIC(19,6) NOT NULL DEFAULT 0.000000,
360
+ "total_costofloan_derived" NUMERIC(19,6) NOT NULL DEFAULT 0.000000,
361
+ "total_waived_derived" NUMERIC(19,6) NOT NULL DEFAULT 0.000000,
362
+ "total_writtenoff_derived" NUMERIC(19,6) NOT NULL DEFAULT 0.000000,
363
+ "total_outstanding_derived" NUMERIC(19,6) NOT NULL DEFAULT 0.000000,
364
+ "rejectedon_date" DATE,
365
+ "rejectedon_userid" BIGINT,
366
+ "rescheduledon_date" DATE,
367
+ "withdrawnon_date" DATE,
368
+ "withdrawnon_userid" BIGINT,
369
+ "writtenoffon_date" DATE,
370
+ "loan_transaction_strategy_id" BIGINT,
371
+ CONSTRAINT "m_loan_pkey" PRIMARY KEY ("id"),
372
+ CONSTRAINT "m_loan_account_no_key" UNIQUE ("account_no"),
373
+ CONSTRAINT "m_loan_approvedon_userid_key" UNIQUE ("approvedon_userid"),
374
+ CONSTRAINT "m_loan_client_id_key" UNIQUE ("client_id"),
375
+ CONSTRAINT "m_loan_closedon_userid_key" UNIQUE ("closedon_userid"),
376
+ CONSTRAINT "m_loan_disbursedon_userid_key" UNIQUE ("disbursedon_userid"),
377
+ CONSTRAINT "m_loan_external_id_key" UNIQUE ("external_id"),
378
+ CONSTRAINT "m_loan_fund_id_key" UNIQUE ("fund_id"),
379
+ CONSTRAINT "m_loan_group_id_key" UNIQUE ("group_id"),
380
+ CONSTRAINT "m_loan_loan_officer_id_key" UNIQUE ("loan_officer_id"),
381
+ CONSTRAINT "m_loan_loanpurpose_cv_id_key" UNIQUE ("loanpurpose_cv_id"),
382
+ CONSTRAINT "m_loan_product_id_key" UNIQUE ("product_id"),
383
+ CONSTRAINT "m_loan_rejectedon_userid_key" UNIQUE ("rejectedon_userid"),
384
+ CONSTRAINT "m_loan_submittedon_userid_key" UNIQUE ("submittedon_userid"),
385
+ CONSTRAINT "m_loan_withdrawnon_userid_key" UNIQUE ("withdrawnon_userid")
386
+ );
387
+
388
+ -- Table: m_loan_arrears_aging
389
+ CREATE TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."m_loan_arrears_aging" (
390
+ "loan_id" BIGINT NOT NULL DEFAULT nextval('"fineract_0001a-mifosplatform-core-ddl-latest".m_loan_arrears_aging_loan_id_seq'::regclass),
391
+ "principal_overdue_derived" NUMERIC(19,6) NOT NULL DEFAULT 0.000000,
392
+ "interest_overdue_derived" NUMERIC(19,6) NOT NULL DEFAULT 0.000000,
393
+ "fee_charges_overdue_derived" NUMERIC(19,6) NOT NULL DEFAULT 0.000000,
394
+ "penalty_charges_overdue_derived" NUMERIC(19,6) NOT NULL DEFAULT 0.000000,
395
+ "total_overdue_derived" NUMERIC(19,6) NOT NULL DEFAULT 0.000000,
396
+ "overdue_since_date_derived" DATE,
397
+ CONSTRAINT "m_loan_arrears_aging_pkey" PRIMARY KEY ("loan_id")
398
+ );
399
+
400
+ -- Table: m_loan_charge
401
+ CREATE TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."m_loan_charge" (
402
+ "id" BIGINT NOT NULL DEFAULT nextval('"fineract_0001a-mifosplatform-core-ddl-latest".m_loan_charge_id_seq'::regclass),
403
+ "loan_id" BIGINT NOT NULL,
404
+ "charge_id" BIGINT NOT NULL,
405
+ "is_penalty" SMALLINT NOT NULL DEFAULT '0'::smallint,
406
+ "charge_time_enum" SMALLINT NOT NULL,
407
+ "due_for_collection_as_of_date" DATE,
408
+ "charge_calculation_enum" SMALLINT NOT NULL,
409
+ "calculation_percentage" NUMERIC(19,6) DEFAULT NULL::numeric,
410
+ "calculation_on_amount" NUMERIC(19,6) DEFAULT NULL::numeric,
411
+ "amount" NUMERIC(19,6) NOT NULL,
412
+ "amount_paid_derived" NUMERIC(19,6) DEFAULT NULL::numeric,
413
+ "amount_waived_derived" NUMERIC(19,6) DEFAULT NULL::numeric,
414
+ "amount_writtenoff_derived" NUMERIC(19,6) DEFAULT NULL::numeric,
415
+ "amount_outstanding_derived" NUMERIC(19,6) NOT NULL DEFAULT 0.000000,
416
+ "is_paid_derived" SMALLINT NOT NULL DEFAULT '0'::smallint,
417
+ "waived" SMALLINT NOT NULL DEFAULT '0'::smallint,
418
+ CONSTRAINT "m_loan_charge_pkey" PRIMARY KEY ("id"),
419
+ CONSTRAINT "m_loan_charge_charge_id_key" UNIQUE ("charge_id"),
420
+ CONSTRAINT "m_loan_charge_loan_id_key" UNIQUE ("loan_id")
421
+ );
422
+
423
+ -- Table: m_loan_collateral
424
+ CREATE TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."m_loan_collateral" (
425
+ "id" BIGINT NOT NULL DEFAULT nextval('"fineract_0001a-mifosplatform-core-ddl-latest".m_loan_collateral_id_seq'::regclass),
426
+ "loan_id" BIGINT NOT NULL,
427
+ "type_cv_id" INTEGER NOT NULL,
428
+ "value" NUMERIC(19,6) DEFAULT NULL::numeric,
429
+ "description" VARCHAR(500) DEFAULT NULL::character varying,
430
+ CONSTRAINT "m_loan_collateral_pkey" PRIMARY KEY ("id"),
431
+ CONSTRAINT "m_loan_collateral_loan_id_key" UNIQUE ("loan_id"),
432
+ CONSTRAINT "m_loan_collateral_type_cv_id_key" UNIQUE ("type_cv_id")
433
+ );
434
+
435
+ -- Table: m_loan_officer_assignment_history
436
+ CREATE TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."m_loan_officer_assignment_history" (
437
+ "id" BIGINT NOT NULL DEFAULT nextval('"fineract_0001a-mifosplatform-core-ddl-latest".m_loan_officer_assignment_history_id_seq'::regclass),
438
+ "loan_id" BIGINT NOT NULL,
439
+ "loan_officer_id" BIGINT,
440
+ "start_date" DATE NOT NULL,
441
+ "end_date" DATE,
442
+ "createdby_id" BIGINT,
443
+ "created_date" TIMESTAMP,
444
+ "lastmodified_date" TIMESTAMP,
445
+ "lastmodifiedby_id" BIGINT,
446
+ CONSTRAINT "m_loan_officer_assignment_history_pkey" PRIMARY KEY ("id"),
447
+ CONSTRAINT "m_loan_officer_assignment_history_loan_id_key" UNIQUE ("loan_id"),
448
+ CONSTRAINT "m_loan_officer_assignment_history_loan_officer_id_key" UNIQUE ("loan_officer_id")
449
+ );
450
+
451
+ -- Table: m_loan_repayment_schedule
452
+ CREATE TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."m_loan_repayment_schedule" (
453
+ "id" BIGINT NOT NULL DEFAULT nextval('"fineract_0001a-mifosplatform-core-ddl-latest".m_loan_repayment_schedule_id_seq'::regclass),
454
+ "loan_id" BIGINT NOT NULL,
455
+ "fromdate" DATE,
456
+ "duedate" DATE NOT NULL,
457
+ "installment" SMALLINT NOT NULL,
458
+ "principal_amount" NUMERIC(19,6) DEFAULT NULL::numeric,
459
+ "principal_completed_derived" NUMERIC(19,6) DEFAULT NULL::numeric,
460
+ "principal_writtenoff_derived" NUMERIC(19,6) DEFAULT NULL::numeric,
461
+ "interest_amount" NUMERIC(19,6) DEFAULT NULL::numeric,
462
+ "interest_completed_derived" NUMERIC(19,6) DEFAULT NULL::numeric,
463
+ "interest_writtenoff_derived" NUMERIC(19,6) DEFAULT NULL::numeric,
464
+ "fee_charges_amount" NUMERIC(19,6) DEFAULT NULL::numeric,
465
+ "fee_charges_completed_derived" NUMERIC(19,6) DEFAULT NULL::numeric,
466
+ "fee_charges_writtenoff_derived" NUMERIC(19,6) DEFAULT NULL::numeric,
467
+ "fee_charges_waived_derived" NUMERIC(19,6) DEFAULT NULL::numeric,
468
+ "penalty_charges_amount" NUMERIC(19,6) DEFAULT NULL::numeric,
469
+ "penalty_charges_completed_derived" NUMERIC(19,6) DEFAULT NULL::numeric,
470
+ "penalty_charges_writtenoff_derived" NUMERIC(19,6) DEFAULT NULL::numeric,
471
+ "penalty_charges_waived_derived" NUMERIC(19,6) DEFAULT NULL::numeric,
472
+ "completed_derived" BOOLEAN NOT NULL,
473
+ "createdby_id" BIGINT,
474
+ "created_date" TIMESTAMP,
475
+ "lastmodified_date" TIMESTAMP,
476
+ "lastmodifiedby_id" BIGINT,
477
+ "interest_waived_derived" NUMERIC(19,6) DEFAULT NULL::numeric,
478
+ CONSTRAINT "m_loan_repayment_schedule_pkey" PRIMARY KEY ("id"),
479
+ CONSTRAINT "m_loan_repayment_schedule_loan_id_key" UNIQUE ("loan_id")
480
+ );
481
+
482
+ -- Table: m_loan_transaction
483
+ CREATE TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."m_loan_transaction" (
484
+ "id" BIGINT NOT NULL DEFAULT nextval('"fineract_0001a-mifosplatform-core-ddl-latest".m_loan_transaction_id_seq'::regclass),
485
+ "loan_id" BIGINT NOT NULL,
486
+ "is_reversed" SMALLINT NOT NULL,
487
+ "transaction_type_enum" SMALLINT NOT NULL,
488
+ "transaction_date" DATE NOT NULL,
489
+ "amount" NUMERIC(19,6) NOT NULL,
490
+ "principal_portion_derived" NUMERIC(19,6) DEFAULT NULL::numeric,
491
+ "interest_portion_derived" NUMERIC(19,6) DEFAULT NULL::numeric,
492
+ "fee_charges_portion_derived" NUMERIC(19,6) DEFAULT NULL::numeric,
493
+ "penalty_charges_portion_derived" NUMERIC(19,6) DEFAULT NULL::numeric,
494
+ CONSTRAINT "m_loan_transaction_pkey" PRIMARY KEY ("id"),
495
+ CONSTRAINT "m_loan_transaction_loan_id_key" UNIQUE ("loan_id")
496
+ );
497
+
498
+ -- Table: m_note
499
+ CREATE TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."m_note" (
500
+ "id" BIGINT NOT NULL DEFAULT nextval('"fineract_0001a-mifosplatform-core-ddl-latest".m_note_id_seq'::regclass),
501
+ "client_id" BIGINT,
502
+ "group_id" BIGINT,
503
+ "loan_id" BIGINT,
504
+ "loan_transaction_id" BIGINT,
505
+ "note_type_enum" SMALLINT NOT NULL,
506
+ "note" VARCHAR(1000) DEFAULT NULL::character varying,
507
+ "created_date" TIMESTAMP,
508
+ "createdby_id" BIGINT,
509
+ "lastmodified_date" TIMESTAMP,
510
+ "lastmodifiedby_id" BIGINT,
511
+ CONSTRAINT "m_note_pkey" PRIMARY KEY ("id"),
512
+ CONSTRAINT "m_note_client_id_key" UNIQUE ("client_id"),
513
+ CONSTRAINT "m_note_createdby_id_key" UNIQUE ("createdby_id"),
514
+ CONSTRAINT "m_note_group_id_key" UNIQUE ("group_id"),
515
+ CONSTRAINT "m_note_lastmodifiedby_id_key" UNIQUE ("lastmodifiedby_id"),
516
+ CONSTRAINT "m_note_loan_id_key" UNIQUE ("loan_id"),
517
+ CONSTRAINT "m_note_loan_transaction_id_key" UNIQUE ("loan_transaction_id")
518
+ );
519
+
520
+ -- Table: m_office
521
+ CREATE TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."m_office" (
522
+ "id" BIGINT NOT NULL DEFAULT nextval('"fineract_0001a-mifosplatform-core-ddl-latest".m_office_id_seq'::regclass),
523
+ "parent_id" BIGINT,
524
+ "hierarchy" VARCHAR(100) DEFAULT NULL::character varying,
525
+ "external_id" VARCHAR(100) DEFAULT NULL::character varying,
526
+ "name" VARCHAR(50) NOT NULL,
527
+ "opening_date" DATE NOT NULL,
528
+ CONSTRAINT "m_office_pkey" PRIMARY KEY ("id"),
529
+ CONSTRAINT "m_office_external_id_key" UNIQUE ("external_id"),
530
+ CONSTRAINT "m_office_name_key" UNIQUE ("name"),
531
+ CONSTRAINT "m_office_parent_id_key" UNIQUE ("parent_id")
532
+ );
533
+
534
+ -- Table: m_office_transaction
535
+ CREATE TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."m_office_transaction" (
536
+ "id" BIGINT NOT NULL DEFAULT nextval('"fineract_0001a-mifosplatform-core-ddl-latest".m_office_transaction_id_seq'::regclass),
537
+ "from_office_id" BIGINT,
538
+ "to_office_id" BIGINT,
539
+ "currency_code" VARCHAR(3) NOT NULL,
540
+ "currency_digits" INTEGER NOT NULL,
541
+ "transaction_amount" NUMERIC(19,6) NOT NULL,
542
+ "transaction_date" DATE NOT NULL,
543
+ "description" VARCHAR(100) DEFAULT NULL::character varying,
544
+ CONSTRAINT "m_office_transaction_pkey" PRIMARY KEY ("id"),
545
+ CONSTRAINT "m_office_transaction_from_office_id_key" UNIQUE ("from_office_id"),
546
+ CONSTRAINT "m_office_transaction_to_office_id_key" UNIQUE ("to_office_id")
547
+ );
548
+
549
+ -- Table: m_organisation_currency
550
+ CREATE TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."m_organisation_currency" (
551
+ "id" BIGINT NOT NULL DEFAULT nextval('"fineract_0001a-mifosplatform-core-ddl-latest".m_organisation_currency_id_seq'::regclass),
552
+ "code" VARCHAR(3) NOT NULL,
553
+ "decimal_places" SMALLINT NOT NULL,
554
+ "name" VARCHAR(50) NOT NULL,
555
+ "display_symbol" VARCHAR(10) DEFAULT NULL::character varying,
556
+ "internationalized_name_code" VARCHAR(50) NOT NULL,
557
+ CONSTRAINT "m_organisation_currency_pkey" PRIMARY KEY ("id")
558
+ );
559
+
560
+ -- Table: m_permission
561
+ CREATE TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."m_permission" (
562
+ "id" BIGINT NOT NULL DEFAULT nextval('"fineract_0001a-mifosplatform-core-ddl-latest".m_permission_id_seq'::regclass),
563
+ "grouping" VARCHAR(45) DEFAULT NULL::character varying,
564
+ "code" VARCHAR(100) NOT NULL,
565
+ "entity_name" VARCHAR(100) DEFAULT NULL::character varying,
566
+ "action_name" VARCHAR(100) DEFAULT NULL::character varying,
567
+ "can_maker_checker" SMALLINT NOT NULL DEFAULT '1'::smallint,
568
+ CONSTRAINT "m_permission_pkey" PRIMARY KEY ("id"),
569
+ CONSTRAINT "m_permission_code_key" UNIQUE ("code")
570
+ );
571
+
572
+ -- Table: m_portfolio_command_source
573
+ CREATE TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."m_portfolio_command_source" (
574
+ "id" BIGINT NOT NULL DEFAULT nextval('"fineract_0001a-mifosplatform-core-ddl-latest".m_portfolio_command_source_id_seq'::regclass),
575
+ "action_name" VARCHAR(50) NOT NULL,
576
+ "entity_name" VARCHAR(50) NOT NULL,
577
+ "office_id" BIGINT,
578
+ "group_id" BIGINT,
579
+ "client_id" BIGINT,
580
+ "loan_id" BIGINT,
581
+ "savings_account_id" BIGINT,
582
+ "api_get_url" VARCHAR(100) NOT NULL,
583
+ "resource_id" BIGINT,
584
+ "subresource_id" BIGINT,
585
+ "command_as_json" TEXT NOT NULL,
586
+ "maker_id" BIGINT NOT NULL,
587
+ "made_on_date" TIMESTAMP NOT NULL,
588
+ "checker_id" BIGINT,
589
+ "checked_on_date" TIMESTAMP,
590
+ "status" SMALLINT NOT NULL,
591
+ CONSTRAINT "m_portfolio_command_source_pkey" PRIMARY KEY ("id"),
592
+ CONSTRAINT "m_portfolio_command_source_action_name_key" UNIQUE ("action_name"),
593
+ CONSTRAINT "m_portfolio_command_source_checked_on_date_key" UNIQUE ("checked_on_date"),
594
+ CONSTRAINT "m_portfolio_command_source_checker_id_key" UNIQUE ("checker_id"),
595
+ CONSTRAINT "m_portfolio_command_source_entity_name_resource_id_key" UNIQUE ("entity_name", "resource_id"),
596
+ CONSTRAINT "m_portfolio_command_source_made_on_date_key" UNIQUE ("made_on_date"),
597
+ CONSTRAINT "m_portfolio_command_source_maker_id_key" UNIQUE ("maker_id"),
598
+ CONSTRAINT "m_portfolio_command_source_office_id_key" UNIQUE ("office_id"),
599
+ CONSTRAINT "m_portfolio_command_source_status_key" UNIQUE ("status")
600
+ );
601
+
602
+ -- Table: m_product_loan
603
+ CREATE TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."m_product_loan" (
604
+ "id" BIGINT NOT NULL DEFAULT nextval('"fineract_0001a-mifosplatform-core-ddl-latest".m_product_loan_id_seq'::regclass),
605
+ "currency_code" VARCHAR(3) NOT NULL,
606
+ "currency_digits" SMALLINT NOT NULL,
607
+ "principal_amount" NUMERIC(19,6) NOT NULL,
608
+ "arrearstolerance_amount" NUMERIC(19,6) DEFAULT NULL::numeric,
609
+ "name" VARCHAR(100) NOT NULL,
610
+ "description" VARCHAR(500) DEFAULT NULL::character varying,
611
+ "fund_id" BIGINT,
612
+ "nominal_interest_rate_per_period" NUMERIC(19,6) NOT NULL,
613
+ "interest_period_frequency_enum" SMALLINT NOT NULL,
614
+ "annual_nominal_interest_rate" NUMERIC(19,6) NOT NULL,
615
+ "interest_method_enum" SMALLINT NOT NULL,
616
+ "interest_calculated_in_period_enum" SMALLINT NOT NULL DEFAULT '1'::smallint,
617
+ "repay_every" SMALLINT NOT NULL,
618
+ "repayment_period_frequency_enum" SMALLINT NOT NULL,
619
+ "number_of_repayments" SMALLINT NOT NULL,
620
+ "amortization_method_enum" SMALLINT NOT NULL,
621
+ "accounting_type" SMALLINT NOT NULL,
622
+ "loan_transaction_strategy_id" BIGINT,
623
+ CONSTRAINT "m_product_loan_pkey" PRIMARY KEY ("id"),
624
+ CONSTRAINT "m_product_loan_fund_id_key" UNIQUE ("fund_id"),
625
+ CONSTRAINT "m_product_loan_name_key" UNIQUE ("name")
626
+ );
627
+
628
+ -- Table: m_product_loan_charge
629
+ CREATE TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."m_product_loan_charge" (
630
+ "product_loan_id" BIGINT NOT NULL,
631
+ "charge_id" BIGINT NOT NULL,
632
+ CONSTRAINT "m_product_loan_charge_pkey" PRIMARY KEY ("product_loan_id", "charge_id"),
633
+ CONSTRAINT "m_product_loan_charge_charge_id_key" UNIQUE ("charge_id")
634
+ );
635
+
636
+ -- Table: m_role
637
+ CREATE TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."m_role" (
638
+ "id" BIGINT NOT NULL DEFAULT nextval('"fineract_0001a-mifosplatform-core-ddl-latest".m_role_id_seq'::regclass),
639
+ "name" VARCHAR(100) NOT NULL,
640
+ "description" VARCHAR(500) NOT NULL,
641
+ CONSTRAINT "m_role_pkey" PRIMARY KEY ("id"),
642
+ CONSTRAINT "m_role_name_key" UNIQUE ("name")
643
+ );
644
+
645
+ -- Table: m_role_permission
646
+ CREATE TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."m_role_permission" (
647
+ "role_id" BIGINT NOT NULL,
648
+ "permission_id" BIGINT NOT NULL,
649
+ CONSTRAINT "m_role_permission_pkey" PRIMARY KEY ("role_id", "permission_id"),
650
+ CONSTRAINT "m_role_permission_permission_id_key" UNIQUE ("permission_id"),
651
+ CONSTRAINT "m_role_permission_role_id_key" UNIQUE ("role_id")
652
+ );
653
+
654
+ -- Table: m_savings_account
655
+ CREATE TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."m_savings_account" (
656
+ "id" BIGINT NOT NULL DEFAULT nextval('"fineract_0001a-mifosplatform-core-ddl-latest".m_savings_account_id_seq'::regclass),
657
+ "account_no" VARCHAR(20) NOT NULL,
658
+ "external_id" VARCHAR(100) DEFAULT NULL::character varying,
659
+ "client_id" BIGINT,
660
+ "group_id" BIGINT,
661
+ "product_id" BIGINT,
662
+ "status_enum" SMALLINT NOT NULL DEFAULT 300,
663
+ "activation_date" DATE,
664
+ "currency_code" VARCHAR(3) NOT NULL,
665
+ "currency_digits" SMALLINT NOT NULL,
666
+ "nominal_interest_rate_per_period" NUMERIC(19,6) NOT NULL,
667
+ "nominal_interest_rate_period_frequency_enum" SMALLINT NOT NULL,
668
+ "annual_nominal_interest_rate" NUMERIC(19,6) NOT NULL,
669
+ "interest_period_enum" SMALLINT NOT NULL,
670
+ "interest_calculation_type_enum" SMALLINT NOT NULL,
671
+ "interest_calculation_days_in_year_type_enum" SMALLINT NOT NULL,
672
+ "min_required_opening_balance" NUMERIC(19,6) DEFAULT NULL::numeric,
673
+ "lockin_period_frequency" NUMERIC(19,6) DEFAULT NULL::numeric,
674
+ "lockin_period_frequency_enum" SMALLINT,
675
+ "lockedin_until_date_derived" DATE,
676
+ "total_deposits_derived" NUMERIC(19,6) DEFAULT NULL::numeric,
677
+ "total_withdrawals_derived" NUMERIC(19,6) DEFAULT NULL::numeric,
678
+ "total_interest_earned_derived" NUMERIC(19,6) DEFAULT NULL::numeric,
679
+ "total_interest_posted_derived" NUMERIC(19,6) DEFAULT NULL::numeric,
680
+ "account_balance_derived" NUMERIC(19,6) NOT NULL DEFAULT 0,
681
+ CONSTRAINT "m_savings_account_pkey" PRIMARY KEY ("id"),
682
+ CONSTRAINT "m_savings_account_account_no_key" UNIQUE ("account_no"),
683
+ CONSTRAINT "m_savings_account_client_id_key" UNIQUE ("client_id"),
684
+ CONSTRAINT "m_savings_account_external_id_key" UNIQUE ("external_id"),
685
+ CONSTRAINT "m_savings_account_group_id_key" UNIQUE ("group_id"),
686
+ CONSTRAINT "m_savings_account_product_id_key" UNIQUE ("product_id")
687
+ );
688
+
689
+ -- Table: m_savings_account_transaction
690
+ CREATE TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."m_savings_account_transaction" (
691
+ "id" BIGINT NOT NULL DEFAULT nextval('"fineract_0001a-mifosplatform-core-ddl-latest".m_savings_account_transaction_id_seq'::regclass),
692
+ "savings_account_id" BIGINT NOT NULL,
693
+ "transaction_type_enum" SMALLINT NOT NULL,
694
+ "transaction_date" DATE NOT NULL,
695
+ "amount" NUMERIC(19,6) NOT NULL,
696
+ "is_reversed" SMALLINT NOT NULL,
697
+ "running_balance_derived" NUMERIC(19,6),
698
+ "balance_number_of_days_derived" INTEGER,
699
+ "balance_end_date_derived" DATE,
700
+ "cumulative_balance_derived" NUMERIC(19,6),
701
+ CONSTRAINT "m_savings_account_transaction_pkey" PRIMARY KEY ("id"),
702
+ CONSTRAINT "m_savings_account_transaction_savings_account_id_key" UNIQUE ("savings_account_id")
703
+ );
704
+
705
+ -- Table: m_savings_product
706
+ CREATE TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."m_savings_product" (
707
+ "id" BIGINT NOT NULL DEFAULT nextval('"fineract_0001a-mifosplatform-core-ddl-latest".m_savings_product_id_seq'::regclass),
708
+ "name" VARCHAR(100) NOT NULL,
709
+ "description" VARCHAR(500) NOT NULL,
710
+ "currency_code" VARCHAR(3) NOT NULL,
711
+ "currency_digits" SMALLINT NOT NULL,
712
+ "nominal_interest_rate_per_period" NUMERIC(19,6) NOT NULL,
713
+ "nominal_interest_rate_period_frequency_enum" SMALLINT NOT NULL,
714
+ "interest_period_enum" SMALLINT NOT NULL,
715
+ "interest_calculation_type_enum" SMALLINT NOT NULL,
716
+ "interest_calculation_days_in_year_type_enum" SMALLINT NOT NULL,
717
+ "min_required_opening_balance" NUMERIC(19,6) DEFAULT NULL::numeric,
718
+ "lockin_period_frequency" NUMERIC(19,6) DEFAULT NULL::numeric,
719
+ "lockin_period_frequency_enum" SMALLINT,
720
+ CONSTRAINT "m_savings_product_pkey" PRIMARY KEY ("id"),
721
+ CONSTRAINT "m_savings_product_name_key" UNIQUE ("name")
722
+ );
723
+
724
+ -- Table: m_staff
725
+ CREATE TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."m_staff" (
726
+ "id" BIGINT NOT NULL DEFAULT nextval('"fineract_0001a-mifosplatform-core-ddl-latest".m_staff_id_seq'::regclass),
727
+ "is_loan_officer" SMALLINT NOT NULL DEFAULT '0'::smallint,
728
+ "office_id" BIGINT,
729
+ "firstname" VARCHAR(50) DEFAULT NULL::character varying,
730
+ "lastname" VARCHAR(50) DEFAULT NULL::character varying,
731
+ "display_name" VARCHAR(100) NOT NULL,
732
+ "joining_date" DATE,
733
+ CONSTRAINT "m_staff_pkey" PRIMARY KEY ("id"),
734
+ CONSTRAINT "m_staff_display_name_key" UNIQUE ("display_name"),
735
+ CONSTRAINT "m_staff_office_id_key" UNIQUE ("office_id")
736
+ );
737
+
738
+ -- Table: r_enum_value
739
+ CREATE TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."r_enum_value" (
740
+ "enum_name" VARCHAR(100) NOT NULL,
741
+ "enum_id" INTEGER NOT NULL,
742
+ "enum_message_property" VARCHAR(100) NOT NULL,
743
+ "enum_value" VARCHAR(100) NOT NULL,
744
+ CONSTRAINT "r_enum_value_pkey" PRIMARY KEY ("enum_name", "enum_id"),
745
+ CONSTRAINT "r_enum_value_enum_name_enum_message_property_key" UNIQUE ("enum_name", "enum_message_property"),
746
+ CONSTRAINT "r_enum_value_enum_name_enum_value_key" UNIQUE ("enum_name", "enum_value")
747
+ );
748
+
749
+ -- Table: rpt_sequence
750
+ CREATE TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."rpt_sequence" (
751
+ "id" INTEGER NOT NULL DEFAULT nextval('"fineract_0001a-mifosplatform-core-ddl-latest".rpt_sequence_id_seq'::regclass),
752
+ CONSTRAINT "rpt_sequence_pkey" PRIMARY KEY ("id")
753
+ );
754
+
755
+ -- Table: stretchy_parameter
756
+ CREATE TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."stretchy_parameter" (
757
+ "parameter_id" INTEGER NOT NULL DEFAULT nextval('"fineract_0001a-mifosplatform-core-ddl-latest".stretchy_parameter_parameter_id_seq'::regclass),
758
+ "parameter_name" VARCHAR(45) NOT NULL,
759
+ "parameter_variable" VARCHAR(45) DEFAULT NULL::character varying,
760
+ "parameter_label" VARCHAR(45) NOT NULL,
761
+ "parameter_displayType" VARCHAR(45) NOT NULL,
762
+ "parameter_FormatType" VARCHAR(10) NOT NULL,
763
+ "parameter_default" VARCHAR(45) NOT NULL,
764
+ "special" VARCHAR(1) DEFAULT NULL::character varying,
765
+ "selectOne" VARCHAR(1) DEFAULT NULL::character varying,
766
+ "selectAll" VARCHAR(1) DEFAULT NULL::character varying,
767
+ "parameter_sql" TEXT,
768
+ "parent_parameter_id" INTEGER,
769
+ CONSTRAINT "stretchy_parameter_pkey" PRIMARY KEY ("parameter_id"),
770
+ CONSTRAINT "stretchy_parameter_parameter_name_key" UNIQUE ("parameter_name"),
771
+ CONSTRAINT "stretchy_parameter_parent_parameter_id_key" UNIQUE ("parent_parameter_id")
772
+ );
773
+
774
+ -- Table: stretchy_report
775
+ CREATE TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."stretchy_report" (
776
+ "report_id" INTEGER NOT NULL DEFAULT nextval('"fineract_0001a-mifosplatform-core-ddl-latest".stretchy_report_report_id_seq'::regclass),
777
+ "report_name" VARCHAR(100) NOT NULL,
778
+ "report_type" VARCHAR(20) NOT NULL,
779
+ "report_subtype" VARCHAR(20) DEFAULT NULL::character varying,
780
+ "report_category" VARCHAR(45) DEFAULT NULL::character varying,
781
+ "report_sql" TEXT,
782
+ "description" TEXT,
783
+ "core_report" SMALLINT DEFAULT '0'::smallint,
784
+ "use_report" SMALLINT DEFAULT '0'::smallint,
785
+ CONSTRAINT "stretchy_report_pkey" PRIMARY KEY ("report_id"),
786
+ CONSTRAINT "stretchy_report_report_name_key" UNIQUE ("report_name")
787
+ );
788
+
789
+ -- Table: stretchy_report_parameter
790
+ CREATE TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."stretchy_report_parameter" (
791
+ "report_id" INTEGER NOT NULL,
792
+ "parameter_id" INTEGER NOT NULL,
793
+ "report_parameter_name" VARCHAR(45) DEFAULT NULL::character varying,
794
+ CONSTRAINT "stretchy_report_parameter_pkey" PRIMARY KEY ("report_id", "parameter_id"),
795
+ CONSTRAINT "stretchy_report_parameter_report_id_report_parameter_name_key" UNIQUE ("report_id", "report_parameter_name")
796
+ );
797
+
798
+ -- Table: x_registered_table
799
+ CREATE TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."x_registered_table" (
800
+ "registered_table_name" VARCHAR(50) NOT NULL,
801
+ "application_table_name" VARCHAR(50) NOT NULL,
802
+ CONSTRAINT "x_registered_table_pkey" PRIMARY KEY ("registered_table_name")
803
+ );
804
+
805
+ -- Foreign Keys
806
+ ALTER TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."acc_gl_account" ADD CONSTRAINT "fk_acc_gl_account_0" FOREIGN KEY ("parent_id") REFERENCES "fineract_0001a-mifosplatform-core-ddl-latest"."acc_gl_account" ("id") ON DELETE NO ACTION ON UPDATE NO ACTION;
807
+ ALTER TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."acc_gl_closure" ADD CONSTRAINT "fk_acc_gl_closure_0" FOREIGN KEY ("createdby_id") REFERENCES "fineract_0001a-mifosplatform-core-ddl-latest"."m_appuser" ("id") ON DELETE NO ACTION ON UPDATE NO ACTION;
808
+ ALTER TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."acc_gl_closure" ADD CONSTRAINT "fk_acc_gl_closure_1" FOREIGN KEY ("lastmodifiedby_id") REFERENCES "fineract_0001a-mifosplatform-core-ddl-latest"."m_appuser" ("id") ON DELETE NO ACTION ON UPDATE NO ACTION;
809
+ ALTER TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."acc_gl_closure" ADD CONSTRAINT "fk_acc_gl_closure_2" FOREIGN KEY ("office_id") REFERENCES "fineract_0001a-mifosplatform-core-ddl-latest"."m_office" ("id") ON DELETE NO ACTION ON UPDATE NO ACTION;
810
+ ALTER TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."acc_gl_journal_entry" ADD CONSTRAINT "fk_acc_gl_journal_entry_0" FOREIGN KEY ("account_id") REFERENCES "fineract_0001a-mifosplatform-core-ddl-latest"."acc_gl_account" ("id") ON DELETE NO ACTION ON UPDATE NO ACTION;
811
+ ALTER TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."acc_gl_journal_entry" ADD CONSTRAINT "fk_acc_gl_journal_entry_1" FOREIGN KEY ("reversal_id") REFERENCES "fineract_0001a-mifosplatform-core-ddl-latest"."acc_gl_journal_entry" ("id") ON DELETE NO ACTION ON UPDATE NO ACTION;
812
+ ALTER TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."acc_gl_journal_entry" ADD CONSTRAINT "fk_acc_gl_journal_entry_2" FOREIGN KEY ("createdby_id") REFERENCES "fineract_0001a-mifosplatform-core-ddl-latest"."m_appuser" ("id") ON DELETE NO ACTION ON UPDATE NO ACTION;
813
+ ALTER TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."acc_gl_journal_entry" ADD CONSTRAINT "fk_acc_gl_journal_entry_3" FOREIGN KEY ("lastmodifiedby_id") REFERENCES "fineract_0001a-mifosplatform-core-ddl-latest"."m_appuser" ("id") ON DELETE NO ACTION ON UPDATE NO ACTION;
814
+ ALTER TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."acc_gl_journal_entry" ADD CONSTRAINT "fk_acc_gl_journal_entry_4" FOREIGN KEY ("office_id") REFERENCES "fineract_0001a-mifosplatform-core-ddl-latest"."m_office" ("id") ON DELETE NO ACTION ON UPDATE NO ACTION;
815
+ ALTER TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."m_appuser" ADD CONSTRAINT "fk_m_appuser_0" FOREIGN KEY ("office_id") REFERENCES "fineract_0001a-mifosplatform-core-ddl-latest"."m_office" ("id") ON DELETE NO ACTION ON UPDATE NO ACTION;
816
+ ALTER TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."m_appuser_role" ADD CONSTRAINT "fk_m_appuser_role_0" FOREIGN KEY ("role_id") REFERENCES "fineract_0001a-mifosplatform-core-ddl-latest"."m_role" ("id") ON DELETE NO ACTION ON UPDATE NO ACTION;
817
+ ALTER TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."m_appuser_role" ADD CONSTRAINT "fk_m_appuser_role_1" FOREIGN KEY ("appuser_id") REFERENCES "fineract_0001a-mifosplatform-core-ddl-latest"."m_appuser" ("id") ON DELETE NO ACTION ON UPDATE NO ACTION;
818
+ ALTER TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."m_calendar_instance" ADD CONSTRAINT "fk_m_calendar_instance_0" FOREIGN KEY ("calendar_id") REFERENCES "fineract_0001a-mifosplatform-core-ddl-latest"."m_calendar" ("id") ON DELETE NO ACTION ON UPDATE NO ACTION;
819
+ ALTER TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."m_client" ADD CONSTRAINT "fk_m_client_0" FOREIGN KEY ("office_id") REFERENCES "fineract_0001a-mifosplatform-core-ddl-latest"."m_office" ("id") ON DELETE NO ACTION ON UPDATE NO ACTION;
820
+ ALTER TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."m_client_identifier" ADD CONSTRAINT "fk_m_client_identifier_0" FOREIGN KEY ("client_id") REFERENCES "fineract_0001a-mifosplatform-core-ddl-latest"."m_client" ("id") ON DELETE NO ACTION ON UPDATE NO ACTION;
821
+ ALTER TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."m_client_identifier" ADD CONSTRAINT "fk_m_client_identifier_1" FOREIGN KEY ("document_type_id") REFERENCES "fineract_0001a-mifosplatform-core-ddl-latest"."m_code_value" ("id") ON DELETE NO ACTION ON UPDATE NO ACTION;
822
+ ALTER TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."m_code_value" ADD CONSTRAINT "fk_m_code_value_0" FOREIGN KEY ("code_id") REFERENCES "fineract_0001a-mifosplatform-core-ddl-latest"."m_code" ("id") ON DELETE NO ACTION ON UPDATE NO ACTION;
823
+ ALTER TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."m_group_client" ADD CONSTRAINT "fk_m_group_client_1" FOREIGN KEY ("client_id") REFERENCES "fineract_0001a-mifosplatform-core-ddl-latest"."m_client" ("id") ON DELETE NO ACTION ON UPDATE NO ACTION;
824
+ ALTER TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."m_group_level" ADD CONSTRAINT "fk_m_group_level_0" FOREIGN KEY ("parent_id") REFERENCES "fineract_0001a-mifosplatform-core-ddl-latest"."m_group_level" ("id") ON DELETE NO ACTION ON UPDATE NO ACTION;
825
+ ALTER TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."m_guarantor" ADD CONSTRAINT "fk_m_guarantor_0" FOREIGN KEY ("client_reln_cv_id") REFERENCES "fineract_0001a-mifosplatform-core-ddl-latest"."m_code_value" ("id") ON DELETE NO ACTION ON UPDATE NO ACTION;
826
+ ALTER TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."m_loan" ADD CONSTRAINT "fk_m_loan_0" FOREIGN KEY ("fund_id") REFERENCES "fineract_0001a-mifosplatform-core-ddl-latest"."m_fund" ("id") ON DELETE NO ACTION ON UPDATE NO ACTION;
827
+ ALTER TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."m_loan" ADD CONSTRAINT "fk_m_loan_1" FOREIGN KEY ("client_id") REFERENCES "fineract_0001a-mifosplatform-core-ddl-latest"."m_client" ("id") ON DELETE NO ACTION ON UPDATE NO ACTION;
828
+ ALTER TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."m_loan" ADD CONSTRAINT "fk_m_loan_10" FOREIGN KEY ("withdrawnon_userid") REFERENCES "fineract_0001a-mifosplatform-core-ddl-latest"."m_appuser" ("id") ON DELETE NO ACTION ON UPDATE NO ACTION;
829
+ ALTER TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."m_loan" ADD CONSTRAINT "fk_m_loan_2" FOREIGN KEY ("product_id") REFERENCES "fineract_0001a-mifosplatform-core-ddl-latest"."m_product_loan" ("id") ON DELETE NO ACTION ON UPDATE NO ACTION;
830
+ ALTER TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."m_loan" ADD CONSTRAINT "fk_m_loan_3" FOREIGN KEY ("approvedon_userid") REFERENCES "fineract_0001a-mifosplatform-core-ddl-latest"."m_appuser" ("id") ON DELETE NO ACTION ON UPDATE NO ACTION;
831
+ ALTER TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."m_loan" ADD CONSTRAINT "fk_m_loan_4" FOREIGN KEY ("closedon_userid") REFERENCES "fineract_0001a-mifosplatform-core-ddl-latest"."m_appuser" ("id") ON DELETE NO ACTION ON UPDATE NO ACTION;
832
+ ALTER TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."m_loan" ADD CONSTRAINT "fk_m_loan_5" FOREIGN KEY ("disbursedon_userid") REFERENCES "fineract_0001a-mifosplatform-core-ddl-latest"."m_appuser" ("id") ON DELETE NO ACTION ON UPDATE NO ACTION;
833
+ ALTER TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."m_loan" ADD CONSTRAINT "fk_m_loan_6" FOREIGN KEY ("loanpurpose_cv_id") REFERENCES "fineract_0001a-mifosplatform-core-ddl-latest"."m_code_value" ("id") ON DELETE NO ACTION ON UPDATE NO ACTION;
834
+ ALTER TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."m_loan" ADD CONSTRAINT "fk_m_loan_7" FOREIGN KEY ("loan_officer_id") REFERENCES "fineract_0001a-mifosplatform-core-ddl-latest"."m_staff" ("id") ON DELETE NO ACTION ON UPDATE NO ACTION;
835
+ ALTER TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."m_loan" ADD CONSTRAINT "fk_m_loan_8" FOREIGN KEY ("rejectedon_userid") REFERENCES "fineract_0001a-mifosplatform-core-ddl-latest"."m_appuser" ("id") ON DELETE NO ACTION ON UPDATE NO ACTION;
836
+ ALTER TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."m_loan" ADD CONSTRAINT "fk_m_loan_9" FOREIGN KEY ("submittedon_userid") REFERENCES "fineract_0001a-mifosplatform-core-ddl-latest"."m_appuser" ("id") ON DELETE NO ACTION ON UPDATE NO ACTION;
837
+ ALTER TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."m_loan_arrears_aging" ADD CONSTRAINT "fk_m_loan_arrears_aging_0" FOREIGN KEY ("loan_id") REFERENCES "fineract_0001a-mifosplatform-core-ddl-latest"."m_loan" ("id") ON DELETE NO ACTION ON UPDATE NO ACTION;
838
+ ALTER TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."m_loan_charge" ADD CONSTRAINT "fk_m_loan_charge_0" FOREIGN KEY ("charge_id") REFERENCES "fineract_0001a-mifosplatform-core-ddl-latest"."m_charge" ("id") ON DELETE NO ACTION ON UPDATE NO ACTION;
839
+ ALTER TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."m_loan_charge" ADD CONSTRAINT "fk_m_loan_charge_1" FOREIGN KEY ("loan_id") REFERENCES "fineract_0001a-mifosplatform-core-ddl-latest"."m_loan" ("id") ON DELETE NO ACTION ON UPDATE NO ACTION;
840
+ ALTER TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."m_loan_collateral" ADD CONSTRAINT "fk_m_loan_collateral_0" FOREIGN KEY ("loan_id") REFERENCES "fineract_0001a-mifosplatform-core-ddl-latest"."m_loan" ("id") ON DELETE NO ACTION ON UPDATE NO ACTION;
841
+ ALTER TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."m_loan_collateral" ADD CONSTRAINT "fk_m_loan_collateral_1" FOREIGN KEY ("type_cv_id") REFERENCES "fineract_0001a-mifosplatform-core-ddl-latest"."m_code_value" ("id") ON DELETE NO ACTION ON UPDATE NO ACTION;
842
+ ALTER TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."m_loan_officer_assignment_history" ADD CONSTRAINT "fk_m_loan_officer_assignment_history_0" FOREIGN KEY ("loan_id") REFERENCES "fineract_0001a-mifosplatform-core-ddl-latest"."m_loan" ("id") ON DELETE NO ACTION ON UPDATE NO ACTION;
843
+ ALTER TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."m_loan_officer_assignment_history" ADD CONSTRAINT "fk_m_loan_officer_assignment_history_1" FOREIGN KEY ("loan_officer_id") REFERENCES "fineract_0001a-mifosplatform-core-ddl-latest"."m_staff" ("id") ON DELETE NO ACTION ON UPDATE NO ACTION;
844
+ ALTER TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."m_loan_repayment_schedule" ADD CONSTRAINT "fk_m_loan_repayment_schedule_0" FOREIGN KEY ("loan_id") REFERENCES "fineract_0001a-mifosplatform-core-ddl-latest"."m_loan" ("id") ON DELETE NO ACTION ON UPDATE NO ACTION;
845
+ ALTER TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."m_loan_transaction" ADD CONSTRAINT "fk_m_loan_transaction_0" FOREIGN KEY ("loan_id") REFERENCES "fineract_0001a-mifosplatform-core-ddl-latest"."m_loan" ("id") ON DELETE NO ACTION ON UPDATE NO ACTION;
846
+ ALTER TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."m_note" ADD CONSTRAINT "fk_m_note_0" FOREIGN KEY ("loan_transaction_id") REFERENCES "fineract_0001a-mifosplatform-core-ddl-latest"."m_loan_transaction" ("id") ON DELETE NO ACTION ON UPDATE NO ACTION;
847
+ ALTER TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."m_note" ADD CONSTRAINT "fk_m_note_1" FOREIGN KEY ("loan_id") REFERENCES "fineract_0001a-mifosplatform-core-ddl-latest"."m_loan" ("id") ON DELETE NO ACTION ON UPDATE NO ACTION;
848
+ ALTER TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."m_note" ADD CONSTRAINT "fk_m_note_2" FOREIGN KEY ("createdby_id") REFERENCES "fineract_0001a-mifosplatform-core-ddl-latest"."m_appuser" ("id") ON DELETE NO ACTION ON UPDATE NO ACTION;
849
+ ALTER TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."m_note" ADD CONSTRAINT "fk_m_note_3" FOREIGN KEY ("client_id") REFERENCES "fineract_0001a-mifosplatform-core-ddl-latest"."m_client" ("id") ON DELETE NO ACTION ON UPDATE NO ACTION;
850
+ ALTER TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."m_note" ADD CONSTRAINT "fk_m_note_5" FOREIGN KEY ("lastmodifiedby_id") REFERENCES "fineract_0001a-mifosplatform-core-ddl-latest"."m_appuser" ("id") ON DELETE NO ACTION ON UPDATE NO ACTION;
851
+ ALTER TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."m_office" ADD CONSTRAINT "fk_m_office_0" FOREIGN KEY ("parent_id") REFERENCES "fineract_0001a-mifosplatform-core-ddl-latest"."m_office" ("id") ON DELETE NO ACTION ON UPDATE NO ACTION;
852
+ ALTER TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."m_office_transaction" ADD CONSTRAINT "fk_m_office_transaction_0" FOREIGN KEY ("from_office_id") REFERENCES "fineract_0001a-mifosplatform-core-ddl-latest"."m_office" ("id") ON DELETE NO ACTION ON UPDATE NO ACTION;
853
+ ALTER TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."m_office_transaction" ADD CONSTRAINT "fk_m_office_transaction_1" FOREIGN KEY ("to_office_id") REFERENCES "fineract_0001a-mifosplatform-core-ddl-latest"."m_office" ("id") ON DELETE NO ACTION ON UPDATE NO ACTION;
854
+ ALTER TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."m_portfolio_command_source" ADD CONSTRAINT "fk_m_portfolio_command_source_0" FOREIGN KEY ("checker_id") REFERENCES "fineract_0001a-mifosplatform-core-ddl-latest"."m_appuser" ("id") ON DELETE NO ACTION ON UPDATE NO ACTION;
855
+ ALTER TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."m_portfolio_command_source" ADD CONSTRAINT "fk_m_portfolio_command_source_1" FOREIGN KEY ("maker_id") REFERENCES "fineract_0001a-mifosplatform-core-ddl-latest"."m_appuser" ("id") ON DELETE NO ACTION ON UPDATE NO ACTION;
856
+ ALTER TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."m_product_loan" ADD CONSTRAINT "fk_m_product_loan_0" FOREIGN KEY ("fund_id") REFERENCES "fineract_0001a-mifosplatform-core-ddl-latest"."m_fund" ("id") ON DELETE NO ACTION ON UPDATE NO ACTION;
857
+ ALTER TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."m_product_loan_charge" ADD CONSTRAINT "fk_m_product_loan_charge_0" FOREIGN KEY ("charge_id") REFERENCES "fineract_0001a-mifosplatform-core-ddl-latest"."m_charge" ("id") ON DELETE NO ACTION ON UPDATE NO ACTION;
858
+ ALTER TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."m_product_loan_charge" ADD CONSTRAINT "fk_m_product_loan_charge_1" FOREIGN KEY ("product_loan_id") REFERENCES "fineract_0001a-mifosplatform-core-ddl-latest"."m_product_loan" ("id") ON DELETE NO ACTION ON UPDATE NO ACTION;
859
+ ALTER TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."m_role_permission" ADD CONSTRAINT "fk_m_role_permission_0" FOREIGN KEY ("permission_id") REFERENCES "fineract_0001a-mifosplatform-core-ddl-latest"."m_permission" ("id") ON DELETE NO ACTION ON UPDATE NO ACTION;
860
+ ALTER TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."m_role_permission" ADD CONSTRAINT "fk_m_role_permission_1" FOREIGN KEY ("role_id") REFERENCES "fineract_0001a-mifosplatform-core-ddl-latest"."m_role" ("id") ON DELETE NO ACTION ON UPDATE NO ACTION;
861
+ ALTER TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."m_savings_account" ADD CONSTRAINT "fk_m_savings_account_0" FOREIGN KEY ("client_id") REFERENCES "fineract_0001a-mifosplatform-core-ddl-latest"."m_client" ("id") ON DELETE NO ACTION ON UPDATE NO ACTION;
862
+ ALTER TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."m_savings_account" ADD CONSTRAINT "fk_m_savings_account_2" FOREIGN KEY ("product_id") REFERENCES "fineract_0001a-mifosplatform-core-ddl-latest"."m_savings_product" ("id") ON DELETE NO ACTION ON UPDATE NO ACTION;
863
+ ALTER TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."m_savings_account_transaction" ADD CONSTRAINT "fk_m_savings_account_transaction_0" FOREIGN KEY ("savings_account_id") REFERENCES "fineract_0001a-mifosplatform-core-ddl-latest"."m_savings_account" ("id") ON DELETE NO ACTION ON UPDATE NO ACTION;
864
+ ALTER TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."m_staff" ADD CONSTRAINT "fk_m_staff_0" FOREIGN KEY ("office_id") REFERENCES "fineract_0001a-mifosplatform-core-ddl-latest"."m_office" ("id") ON DELETE NO ACTION ON UPDATE NO ACTION;
865
+ ALTER TABLE "fineract_0001a-mifosplatform-core-ddl-latest"."stretchy_parameter" ADD CONSTRAINT "fk_stretchy_parameter_0" FOREIGN KEY ("parent_parameter_id") REFERENCES "fineract_0001a-mifosplatform-core-ddl-latest"."stretchy_parameter" ("parameter_id") ON DELETE NO ACTION ON UPDATE NO ACTION;
public/fineract/0001b-gk-datatables/ddl.sql ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ -- Schema: fineract_0001b-gk-datatables
2
+ CREATE SCHEMA IF NOT EXISTS "fineract_0001b-gk-datatables";
3
+
4
+ -- Table: risk_analysis
5
+ CREATE TABLE "fineract_0001b-gk-datatables"."risk_analysis" (
6
+ "client_id" BIGINT NOT NULL,
7
+ "proposed_loan_amount" NUMERIC(19,6) DEFAULT NULL::numeric,
8
+ "assets_cash" NUMERIC(19,6) DEFAULT NULL::numeric,
9
+ "assets_bank_accounts" NUMERIC(19,6) DEFAULT NULL::numeric,
10
+ "assets_accounts_receivable" NUMERIC(19,6) DEFAULT NULL::numeric,
11
+ "assets_inventory" NUMERIC(19,6) DEFAULT NULL::numeric,
12
+ "assets_total_fixed_business" NUMERIC(19,6) DEFAULT NULL::numeric,
13
+ "assets_total_business" NUMERIC(19,6) DEFAULT NULL::numeric,
14
+ "assets_total_household" NUMERIC(19,6) DEFAULT NULL::numeric,
15
+ "liabilities_accounts_payable" NUMERIC(19,6) DEFAULT NULL::numeric,
16
+ "liabilities_business_debts" NUMERIC(19,6) DEFAULT NULL::numeric,
17
+ "liabilities_total_business" NUMERIC(19,6) DEFAULT NULL::numeric,
18
+ "liabilities_equity_working_capital" NUMERIC(19,6) DEFAULT NULL::numeric,
19
+ "liabilities_total_household" NUMERIC(19,6) DEFAULT NULL::numeric,
20
+ "liabilities_household_equity" NUMERIC(19,6) DEFAULT NULL::numeric,
21
+ "cashflow_cash_sales" NUMERIC(19,6) DEFAULT NULL::numeric,
22
+ "cashflow_cash_sales2" NUMERIC(19,6) DEFAULT NULL::numeric,
23
+ "cashflow_cost_goods_sold" NUMERIC(19,6) DEFAULT NULL::numeric,
24
+ "cashflow_cost_goods_sold2" NUMERIC(19,6) DEFAULT NULL::numeric,
25
+ "cashflow_gross_profit" NUMERIC(19,6) DEFAULT NULL::numeric,
26
+ "cashflow_other_income1" NUMERIC(19,6) DEFAULT NULL::numeric,
27
+ "cashflow_total_income2" NUMERIC(19,6) DEFAULT NULL::numeric,
28
+ "cashflow_household_expense" NUMERIC(19,6) DEFAULT NULL::numeric,
29
+ "cashflow_payments_to_savings" NUMERIC(19,6) DEFAULT NULL::numeric,
30
+ "cashflow_operational_expenses" NUMERIC(19,6) DEFAULT NULL::numeric,
31
+ "cashflow_disposable_income" NUMERIC(19,6) DEFAULT NULL::numeric,
32
+ "cashflow_amount_loan_installment" NUMERIC(19,6) DEFAULT NULL::numeric,
33
+ "cashflow_available_surplus" NUMERIC(19,6) DEFAULT NULL::numeric,
34
+ "fi_inventory_turnover" NUMERIC(19,6) DEFAULT NULL::numeric,
35
+ "fi_gross_margin" NUMERIC(19,6) DEFAULT NULL::numeric,
36
+ "fi_indebtedness" NUMERIC(19,6) DEFAULT NULL::numeric,
37
+ "fi_loan_recommendation" NUMERIC(19,6) DEFAULT NULL::numeric,
38
+ "fi_roe" NUMERIC(19,6) DEFAULT NULL::numeric,
39
+ "fi_repayment_capacity" NUMERIC(19,6) DEFAULT NULL::numeric,
40
+ CONSTRAINT "risk_analysis_pkey" PRIMARY KEY ("client_id")
41
+ );
public/fineract/barebones_db/data/acc_accounting_rule.csv ADDED
@@ -0,0 +1 @@
 
 
1
+ id,name,office_id,debit_account_id,allow_multiple_debits,credit_account_id,allow_multiple_credits,description,system_defined
public/fineract/barebones_db/data/acc_gl_account.csv ADDED
@@ -0,0 +1 @@
 
 
1
+ id,name,parent_id,hierarchy,gl_code,disabled,manual_journal_entries_allowed,account_usage,classification_enum,tag_id,description
public/fineract/barebones_db/data/acc_gl_closure.csv ADDED
@@ -0,0 +1 @@
 
 
1
+ id,office_id,closing_date,is_deleted,createdby_id,lastmodifiedby_id,created_date,lastmodified_date,comments
public/fineract/barebones_db/data/acc_gl_financial_activity_account.csv ADDED
@@ -0,0 +1 @@
 
 
1
+ id,gl_account_id,financial_activity_type
public/fineract/barebones_db/data/acc_gl_journal_entry.csv ADDED
@@ -0,0 +1 @@
 
 
1
+ id,account_id,office_id,reversal_id,currency_code,transaction_id,loan_transaction_id,savings_transaction_id,client_transaction_id,reversed,ref_num,manual_entry,entry_date,type_enum,amount,description,entity_type_enum,entity_id,createdby_id,lastmodifiedby_id,created_date,lastmodified_date,is_running_balance_calculated,office_running_balance,organization_running_balance,payment_details_id,share_transaction_id
public/fineract/barebones_db/data/acc_product_mapping.csv ADDED
@@ -0,0 +1 @@
 
 
1
+ id,gl_account_id,product_id,product_type,payment_type,charge_id,financial_account_type
public/fineract/barebones_db/data/acc_rule_tags.csv ADDED
@@ -0,0 +1 @@
 
 
1
+ id,acc_rule_id,tag_id,acc_type_enum
public/fineract/barebones_db/data/c_account_number_format.csv ADDED
@@ -0,0 +1 @@
 
 
1
+ id,account_type_enum,prefix_type_enum
public/fineract/barebones_db/data/c_cache.csv ADDED
@@ -0,0 +1 @@
 
 
1
+ id,cache_type_enum
public/fineract/barebones_db/data/c_configuration.csv ADDED
@@ -0,0 +1 @@
 
 
1
+ id,name,value,date_value,enabled,is_trap_door,description
public/fineract/barebones_db/data/c_external_service.csv ADDED
@@ -0,0 +1 @@
 
 
1
+ id,name
public/fineract/barebones_db/data/c_external_service_properties.csv ADDED
@@ -0,0 +1 @@
 
 
1
+ name,value,external_service_id
public/fineract/barebones_db/data/job.csv ADDED
@@ -0,0 +1 @@
 
 
1
+ id,name,display_name,cron_expression,create_time,task_priority,group_name,previous_run_start_time,next_run_time,job_key,initializing_errorlog,is_active,currently_running,updates_allowed,scheduler_group,is_misfired
public/fineract/barebones_db/data/job_run_history.csv ADDED
@@ -0,0 +1 @@
 
 
1
+ id,job_id,version,start_time,end_time,status,error_message,trigger_type,error_log
public/fineract/barebones_db/data/m_account_transfer_details.csv ADDED
@@ -0,0 +1 @@
 
 
1
+ id,from_office_id,to_office_id,from_client_id,to_client_id,from_savings_account_id,to_savings_account_id,from_loan_account_id,to_loan_account_id,transfer_type
public/fineract/barebones_db/data/m_account_transfer_standing_instructions.csv ADDED
@@ -0,0 +1 @@
 
 
1
+ id,name,account_transfer_details_id,priority,status,instruction_type,amount,valid_from,valid_till,recurrence_type,recurrence_frequency,recurrence_interval,recurrence_on_day,recurrence_on_month,last_run_date
public/fineract/barebones_db/data/m_account_transfer_transaction.csv ADDED
@@ -0,0 +1 @@
 
 
1
+ id,account_transfer_details_id,from_savings_transaction_id,from_loan_transaction_id,to_savings_transaction_id,to_loan_transaction_id,is_reversed,transaction_date,currency_code,currency_digits,currency_multiplesof,amount,description
public/fineract/barebones_db/data/m_address.csv ADDED
@@ -0,0 +1 @@
 
 
1
+ id,street,address_line_1,address_line_2,address_line_3,town_village,city,county_district,state_province_id,country_id,postal_code,latitude,longitude,created_by,created_on,updated_by,updated_on
public/fineract/barebones_db/data/m_appuser_previous_password.csv ADDED
@@ -0,0 +1 @@
 
 
1
+ id,user_id,password,removal_date
public/fineract/barebones_db/data/m_appuser_role.csv ADDED
@@ -0,0 +1 @@
 
 
1
+ appuser_id,role_id
public/fineract/barebones_db/data/m_calendar.csv ADDED
@@ -0,0 +1 @@
 
 
1
+ id,title,description,location,start_date,end_date,duration,calendar_type_enum,repeating,recurrence,remind_by_enum,first_reminder,second_reminder,createdby_id,lastmodifiedby_id,created_date,lastmodified_date,meeting_time
public/fineract/barebones_db/data/m_calendar_history.csv ADDED
@@ -0,0 +1 @@
 
 
1
+ id,calendar_id,title,description,location,start_date,end_date,duration,calendar_type_enum,repeating,recurrence,remind_by_enum,first_reminder,second_reminder
public/fineract/barebones_db/data/m_calendar_instance.csv ADDED
@@ -0,0 +1 @@
 
 
1
+ id,calendar_id,entity_id,entity_type_enum
public/fineract/barebones_db/data/m_cashier_transactions.csv ADDED
@@ -0,0 +1 @@
 
 
1
+ id,cashier_id,txn_type,txn_amount,txn_date,created_date,entity_type,entity_id,txn_note,currency_code
public/fineract/barebones_db/data/m_cashiers.csv ADDED
@@ -0,0 +1 @@
 
 
1
+ id,staff_id,teller_id,description,start_date,end_date,start_time,end_time,full_day
public/fineract/barebones_db/data/m_charge.csv ADDED
@@ -0,0 +1 @@
 
 
1
+ id,name,currency_code,charge_applies_to_enum,charge_time_enum,charge_calculation_enum,charge_payment_mode_enum,amount,fee_on_day,fee_interval,fee_on_month,is_penalty,is_active,is_deleted,min_cap,max_cap,fee_frequency,income_or_liability_account_id,tax_group_id
public/fineract/barebones_db/data/m_client.csv ADDED
@@ -0,0 +1 @@
 
 
1
+ id,account_no,external_id,status_enum,sub_status,activation_date,office_joining_date,office_id,transfer_to_office_id,staff_id,firstname,middlename,lastname,fullname,display_name,mobile_no,gender_cv_id,date_of_birth,image_id,closure_reason_cv_id,closedon_date,updated_by,updated_on,submittedon_date,submittedon_userid,activatedon_userid,closedon_userid,default_savings_product,default_savings_account,client_type_cv_id,client_classification_cv_id,reject_reason_cv_id,rejectedon_date,rejectedon_userid,withdraw_reason_cv_id,withdrawn_on_date,withdraw_on_userid,reactivated_on_date,reactivated_on_userid,legal_form_enum,reopened_on_date,reopened_by_userid
public/fineract/barebones_db/data/m_client_address.csv ADDED
@@ -0,0 +1 @@
 
 
1
+ id,client_id,address_id,address_type_id,is_active
public/fineract/barebones_db/data/m_client_attendance.csv ADDED
@@ -0,0 +1 @@
 
 
1
+ id,client_id,meeting_id,attendance_type_enum
public/fineract/barebones_db/data/m_client_charge.csv ADDED
@@ -0,0 +1 @@
 
 
1
+ id,client_id,charge_id,is_penalty,charge_time_enum,charge_due_date,charge_calculation_enum,amount,amount_paid_derived,amount_waived_derived,amount_writtenoff_derived,amount_outstanding_derived,is_paid_derived,waived,is_active,inactivated_on_date
public/fineract/barebones_db/data/m_client_charge_paid_by.csv ADDED
@@ -0,0 +1 @@
 
 
1
+ id,client_transaction_id,client_charge_id,amount
public/fineract/barebones_db/data/m_client_identifier.csv ADDED
@@ -0,0 +1 @@
 
 
1
+ id,client_id,document_type_id,document_key,status,active,description,createdby_id,lastmodifiedby_id,created_date,lastmodified_date
public/fineract/barebones_db/data/m_client_non_person.csv ADDED
@@ -0,0 +1 @@
 
 
1
+ id,client_id,constitution_cv_id,incorp_no,incorp_validity_till,main_business_line_cv_id,remarks
public/fineract/barebones_db/data/m_client_transaction.csv ADDED
@@ -0,0 +1 @@
 
 
1
+ id,client_id,office_id,currency_code,payment_detail_id,is_reversed,external_id,transaction_date,transaction_type_enum,amount,created_date,appuser_id
public/fineract/barebones_db/data/m_code.csv ADDED
@@ -0,0 +1 @@
 
 
1
+ id,code_name,is_system_defined
public/fineract/barebones_db/data/m_code_value.csv ADDED
@@ -0,0 +1 @@
 
 
1
+ id,code_id,code_value,code_description,order_position,code_score,is_active,is_mandatory
public/fineract/barebones_db/data/m_currency.csv ADDED
@@ -0,0 +1 @@
 
 
1
+ id,code,decimal_places,currency_multiplesof,display_symbol,name,internationalized_name_code
public/fineract/barebones_db/data/m_deposit_account_on_hold_transaction.csv ADDED
@@ -0,0 +1 @@
 
 
1
+ id,savings_account_id,amount,transaction_type_enum,transaction_date,is_reversed,created_date
public/fineract/barebones_db/data/m_deposit_account_recurring_detail.csv ADDED
@@ -0,0 +1 @@
 
 
1
+ id,savings_account_id,mandatory_recommended_deposit_amount,is_mandatory,allow_withdrawal,adjust_advance_towards_future_payments,is_calendar_inherited,total_overdue_amount,no_of_overdue_installments
public/fineract/barebones_db/data/m_deposit_account_term_and_preclosure.csv ADDED
@@ -0,0 +1 @@
 
 
1
+ id,savings_account_id,min_deposit_term,max_deposit_term,min_deposit_term_type_enum,max_deposit_term_type_enum,in_multiples_of_deposit_term,in_multiples_of_deposit_term_type_enum,pre_closure_penal_applicable,pre_closure_penal_interest,pre_closure_penal_interest_on_enum,deposit_period,deposit_period_frequency_enum,deposit_amount,maturity_amount,maturity_date,on_account_closure_enum,expected_firstdepositon_date,transfer_interest_to_linked_account
public/fineract/barebones_db/data/m_deposit_product_interest_rate_chart.csv ADDED
@@ -0,0 +1 @@
 
 
1
+ deposit_product_id,interest_rate_chart_id
public/fineract/barebones_db/data/m_deposit_product_recurring_detail.csv ADDED
@@ -0,0 +1 @@
 
 
1
+ id,savings_product_id,is_mandatory,allow_withdrawal,adjust_advance_towards_future_payments
public/fineract/barebones_db/data/m_deposit_product_term_and_preclosure.csv ADDED
@@ -0,0 +1 @@
 
 
1
+ id,savings_product_id,min_deposit_term,max_deposit_term,min_deposit_term_type_enum,max_deposit_term_type_enum,in_multiples_of_deposit_term,in_multiples_of_deposit_term_type_enum,pre_closure_penal_applicable,pre_closure_penal_interest,pre_closure_penal_interest_on_enum,min_deposit_amount,max_deposit_amount,deposit_amount
public/fineract/barebones_db/data/m_document.csv ADDED
@@ -0,0 +1 @@
 
 
1
+ id,parent_entity_type,parent_entity_id,name,file_name,size,type,description,location,storage_type_enum
public/fineract/barebones_db/data/m_entity_datatable_check.csv ADDED
@@ -0,0 +1 @@
 
 
1
+ id,application_table_name,x_registered_table_name,status_enum,system_defined,product_id
public/fineract/barebones_db/data/m_entity_relation.csv ADDED
@@ -0,0 +1 @@
 
 
1
+ id,from_entity_type,to_entity_type,code_name
public/fineract/barebones_db/data/m_entity_to_entity_access.csv ADDED
@@ -0,0 +1 @@
 
 
1
+ id,entity_type,entity_id,access_type_code_value_id,second_entity_type,second_entity_id