dscf-credit 0.4.6 → 0.4.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/db/migrate/20260219000001_create_dscf_credit_banks.rb +1 -0
- data/db/migrate/20260219000002_create_dscf_credit_scoring_tables.rb +1 -0
- data/db/migrate/20260219000003_create_dscf_credit_categories.rb +1 -0
- data/db/migrate/20260219000004_create_dscf_credit_bank_branches.rb +1 -0
- data/db/migrate/20260219000005_create_dscf_credit_credit_lines.rb +1 -0
- data/db/migrate/20260219000006_create_dscf_credit_information_sources.rb +1 -0
- data/db/migrate/20260219000007_create_dscf_credit_scoring_parameters.rb +1 -0
- data/db/migrate/20260219000008_create_dscf_credit_credit_line_specs.rb +1 -0
- data/db/migrate/20260219000009_create_dscf_credit_scoring_table_parameters.rb +1 -0
- data/db/migrate/20260219000010_create_dscf_credit_scoring_table_normalizers.rb +1 -0
- data/db/migrate/20260219000011_create_dscf_credit_system_config_definitions.rb +1 -0
- data/db/migrate/20260219000012_create_dscf_credit_system_configs.rb +1 -0
- data/db/migrate/20260219000013_create_dscf_credit_loan_applications.rb +1 -0
- data/db/migrate/20260219000014_create_dscf_credit_loan_profiles.rb +1 -0
- data/db/migrate/20260219000015_create_dscf_credit_scoring_results.rb +1 -0
- data/db/migrate/20260219000016_create_dscf_credit_facilitator_applications.rb +1 -0
- data/db/migrate/20260219000017_create_dscf_credit_facilitators.rb +1 -0
- data/db/migrate/20260219000018_create_dscf_credit_facilitator_performances.rb +1 -0
- data/db/migrate/20260219000019_create_dscf_credit_loans.rb +1 -0
- data/db/migrate/20260219000020_create_dscf_credit_loan_transactions.rb +1 -0
- data/db/migrate/20260219000021_create_dscf_credit_daily_routine_transactions.rb +1 -0
- data/db/migrate/20260219000022_create_dscf_credit_accounting_audit_requests.rb +1 -0
- data/db/migrate/20260219000023_create_dscf_credit_failed_operations_logs.rb +1 -0
- data/db/migrate/20260219000024_create_dscf_credit_accounting_entries.rb +1 -0
- data/db/migrate/20260219000025_create_dscf_credit_bank_staff.rb +1 -0
- data/db/migrate/20260219000026_create_dscf_credit_eligible_credit_lines.rb +1 -0
- data/db/migrate/20260219000027_create_dscf_credit_loan_accruals.rb +1 -0
- data/db/migrate/20260219000028_create_dscf_credit_loan_application_data.rb +1 -0
- data/lib/dscf/credit/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e417a4eaa87df5024219120b1e6e465dcdb7c0c3f2e5ac61a88246aa0bac2632
|
|
4
|
+
data.tar.gz: ca8376f951f8e52482323ebd2b1484f2277712ad1ddf71a01cef256d56b4032c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 725ebd4181dcc6ed8c0a3e9cbf9ffac9f2e503ab7e25703f0abf23337533c313b6d5725f187a70d4e94137133f525dc71eb8c4c41bc2e6ad4195f5d5f342324b
|
|
7
|
+
data.tar.gz: 5ea033a572bbf190249c4d50713872b6cfdd6bd7261ef56a802b380dedd8a9f6062775e82bb93be947de4473ee9bc183ab7b860d0cb4591779e589ce6a4a4e0a
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
class CreateDscfCreditScoringTables < ActiveRecord::Migration[8.0]
|
|
2
2
|
def change
|
|
3
|
+
return if table_exists?(:dscf_credit_scoring_tables)
|
|
3
4
|
create_table :dscf_credit_scoring_tables do |t|
|
|
4
5
|
t.references :bank, foreign_key: { to_table: :dscf_credit_banks }, null: true
|
|
5
6
|
t.string :code, null: false
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
class CreateDscfCreditBankBranches < ActiveRecord::Migration[8.0]
|
|
2
2
|
def change
|
|
3
|
+
return if table_exists?(:dscf_credit_bank_branches)
|
|
3
4
|
create_table :dscf_credit_bank_branches do |t|
|
|
4
5
|
t.references :bank, null: false, foreign_key: { to_table: :dscf_credit_banks }
|
|
5
6
|
t.string :branch_name, null: false
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
class CreateDscfCreditCreditLines < ActiveRecord::Migration[8.0]
|
|
2
2
|
def change
|
|
3
|
+
return if table_exists?(:dscf_credit_credit_lines)
|
|
3
4
|
create_table :dscf_credit_credit_lines do |t|
|
|
4
5
|
t.references :bank, null: false, foreign_key: { to_table: :dscf_credit_banks }
|
|
5
6
|
t.references :category, null: false, foreign_key: { to_table: :dscf_credit_categories }
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
class CreateDscfCreditInformationSources < ActiveRecord::Migration[8.0]
|
|
2
2
|
def change
|
|
3
|
+
return if table_exists?(:dscf_credit_information_sources)
|
|
3
4
|
create_table :dscf_credit_information_sources do |t|
|
|
4
5
|
t.references :bank, foreign_key: { to_table: :dscf_credit_banks }, null: true
|
|
5
6
|
t.string :code, null: false
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
class CreateDscfCreditScoringParameters < ActiveRecord::Migration[8.0]
|
|
2
2
|
def change
|
|
3
|
+
return if table_exists?(:dscf_credit_scoring_parameters)
|
|
3
4
|
create_table :dscf_credit_scoring_parameters do |t|
|
|
4
5
|
t.references :bank, null: true, foreign_key: { to_table: :dscf_credit_banks }
|
|
5
6
|
t.references :category, null: false, foreign_key: { to_table: :dscf_credit_categories }
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
class CreateDscfCreditCreditLineSpecs < ActiveRecord::Migration[8.0]
|
|
2
2
|
def change
|
|
3
|
+
return if table_exists?(:dscf_credit_credit_line_specs)
|
|
3
4
|
create_table :dscf_credit_credit_line_specs do |t|
|
|
4
5
|
t.references :credit_line, null: false, foreign_key: { to_table: :dscf_credit_credit_lines }
|
|
5
6
|
t.decimal :min_amount, precision: 15, scale: 2, null: false
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
class CreateDscfCreditScoringTableParameters < ActiveRecord::Migration[8.0]
|
|
2
2
|
def change
|
|
3
|
+
return if table_exists?(:dscf_credit_scoring_table_parameters)
|
|
3
4
|
create_table :dscf_credit_scoring_table_parameters do |t|
|
|
4
5
|
t.references :scoring_table, null: false, foreign_key: { to_table: :dscf_credit_scoring_tables }
|
|
5
6
|
t.references :scoring_parameter, null: false, foreign_key: { to_table: :dscf_credit_scoring_parameters }
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
class CreateDscfCreditScoringTableNormalizers < ActiveRecord::Migration[8.0]
|
|
2
2
|
def change
|
|
3
|
+
return if table_exists?(:dscf_credit_scoring_table_normalizers)
|
|
3
4
|
create_table :dscf_credit_scoring_table_normalizers do |t|
|
|
4
5
|
t.references :scoring_table_parameter, null: false,
|
|
5
6
|
foreign_key: { to_table: :dscf_credit_scoring_table_parameters }
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
class CreateDscfCreditSystemConfigDefinitions < ActiveRecord::Migration[8.0]
|
|
2
2
|
def change
|
|
3
|
+
return if table_exists?(:dscf_credit_system_config_definitions)
|
|
3
4
|
create_table :dscf_credit_system_config_definitions do |t|
|
|
4
5
|
t.references :bank, null: false, foreign_key: { to_table: :dscf_credit_banks }
|
|
5
6
|
t.string :config_key, null: false
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
class CreateDscfCreditSystemConfigs < ActiveRecord::Migration[8.0]
|
|
2
2
|
def change
|
|
3
|
+
return if table_exists?(:dscf_credit_system_configs)
|
|
3
4
|
create_table :dscf_credit_system_configs do |t|
|
|
4
5
|
t.references :config_definition, null: false, foreign_key: { to_table: :dscf_credit_system_config_definitions }, index: { unique: true }
|
|
5
6
|
t.text :config_value, null: false
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
class CreateDscfCreditLoanApplications < ActiveRecord::Migration[8.0]
|
|
2
2
|
def change
|
|
3
|
+
return if table_exists?(:dscf_credit_loan_applications)
|
|
3
4
|
create_table :dscf_credit_loan_applications do |t|
|
|
4
5
|
t.references :bank, null: false, foreign_key: { to_table: :dscf_credit_banks }
|
|
5
6
|
t.references :user, null: false, foreign_key: { to_table: :dscf_core_users }
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
class CreateDscfCreditLoanProfiles < ActiveRecord::Migration[8.0]
|
|
2
2
|
def change
|
|
3
|
+
return if table_exists?(:dscf_credit_loan_profiles)
|
|
3
4
|
create_table :dscf_credit_loan_profiles do |t|
|
|
4
5
|
t.references :loan_application, null: false, foreign_key: { to_table: :dscf_credit_loan_applications }
|
|
5
6
|
t.string :code, null: false, limit: 8
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
class CreateDscfCreditScoringResults < ActiveRecord::Migration[8.0]
|
|
2
2
|
def change
|
|
3
|
+
return if table_exists?(:dscf_credit_scoring_results)
|
|
3
4
|
create_table :dscf_credit_scoring_results do |t|
|
|
4
5
|
t.references :loan_profile, null: false, foreign_key: { to_table: :dscf_credit_loan_profiles }
|
|
5
6
|
t.references :scoring_table, null: true, foreign_key: { to_table: :dscf_credit_scoring_tables }
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
class CreateDscfCreditFacilitatorApplications < ActiveRecord::Migration[8.0]
|
|
2
2
|
def change
|
|
3
|
+
return if table_exists?(:dscf_credit_facilitator_applications)
|
|
3
4
|
create_table :dscf_credit_facilitator_applications do |t|
|
|
4
5
|
t.references :user, null: false, foreign_key: { to_table: :dscf_core_users }
|
|
5
6
|
t.references :bank, null: false, foreign_key: { to_table: :dscf_credit_banks }
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
class CreateDscfCreditFacilitators < ActiveRecord::Migration[8.0]
|
|
2
2
|
def change
|
|
3
|
+
return if table_exists?(:dscf_credit_facilitators)
|
|
3
4
|
create_table :dscf_credit_facilitators do |t|
|
|
4
5
|
t.references :facilitator_application, null: false, foreign_key: { to_table: :dscf_credit_facilitator_applications }
|
|
5
6
|
t.decimal :total_limit, precision: 15, scale: 2
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
class CreateDscfCreditFacilitatorPerformances < ActiveRecord::Migration[8.0]
|
|
2
2
|
def change
|
|
3
|
+
return if table_exists?(:dscf_credit_facilitator_performances)
|
|
3
4
|
create_table :dscf_credit_facilitator_performances do |t|
|
|
4
5
|
t.references :facilitator, null: false, foreign_key: { to_table: :dscf_credit_facilitators }
|
|
5
6
|
t.decimal :score, precision: 5, scale: 2
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
class CreateDscfCreditLoans < ActiveRecord::Migration[8.0]
|
|
2
2
|
def change
|
|
3
|
+
return if table_exists?(:dscf_credit_loans)
|
|
3
4
|
create_table :dscf_credit_loans do |t|
|
|
4
5
|
t.references :loan_profile, null: false, foreign_key: { to_table: :dscf_credit_loan_profiles }
|
|
5
6
|
t.references :credit_line, null: false, foreign_key: { to_table: :dscf_credit_credit_lines }
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
class CreateDscfCreditLoanTransactions < ActiveRecord::Migration[8.0]
|
|
2
2
|
def change
|
|
3
|
+
return if table_exists?(:dscf_credit_loan_transactions)
|
|
3
4
|
create_table :dscf_credit_loan_transactions do |t|
|
|
4
5
|
t.references :loan, null: false, foreign_key: { to_table: :dscf_credit_loans }
|
|
5
6
|
t.string :transaction_type, null: false
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
class CreateDscfCreditDailyRoutineTransactions < ActiveRecord::Migration[8.0]
|
|
2
2
|
def change
|
|
3
|
+
return if table_exists?(:dscf_credit_daily_routine_transactions)
|
|
3
4
|
create_table :dscf_credit_daily_routine_transactions do |t|
|
|
4
5
|
t.references :loan, null: false, foreign_key: { to_table: :dscf_credit_loans }
|
|
5
6
|
t.string :routine_type, null: false
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
class CreateDscfCreditAccountingAuditRequests < ActiveRecord::Migration[8.0]
|
|
2
2
|
def change
|
|
3
|
+
return if table_exists?(:dscf_credit_accounting_audit_requests)
|
|
3
4
|
create_table :dscf_credit_accounting_audit_requests do |t|
|
|
4
5
|
t.references :source_entity, polymorphic: true, null: false
|
|
5
6
|
t.string :transaction_type, null: false
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
class CreateDscfCreditFailedOperationsLogs < ActiveRecord::Migration[8.0]
|
|
2
2
|
def change
|
|
3
|
+
return if table_exists?(:dscf_credit_failed_operations_logs)
|
|
3
4
|
create_table :dscf_credit_failed_operations_logs do |t|
|
|
4
5
|
t.references :entity, polymorphic: true, null: false
|
|
5
6
|
t.string :failure_type, null: false
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
class CreateDscfCreditAccountingEntries < ActiveRecord::Migration[8.0]
|
|
2
2
|
def change
|
|
3
|
+
return if table_exists?(:dscf_credit_accounting_entries)
|
|
3
4
|
create_table :dscf_credit_accounting_entries do |t|
|
|
4
5
|
t.references :audit_request, null: false, foreign_key: { to_table: :dscf_credit_accounting_audit_requests }
|
|
5
6
|
t.string :account_code, null: false
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
class CreateDscfCreditBankStaff < ActiveRecord::Migration[8.0]
|
|
2
2
|
def change
|
|
3
|
+
return if table_exists?(:dscf_credit_bank_staffs)
|
|
3
4
|
create_table :dscf_credit_bank_staffs do |t|
|
|
4
5
|
t.references :user, null: false, foreign_key: { to_table: :dscf_core_users }, index: true
|
|
5
6
|
t.references :bank_branch, null: false, foreign_key: { to_table: :dscf_credit_bank_branches }, index: true
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
class CreateDscfCreditEligibleCreditLines < ActiveRecord::Migration[8.0]
|
|
2
2
|
def change
|
|
3
|
+
return if table_exists?(:dscf_credit_eligible_credit_lines)
|
|
3
4
|
create_table :dscf_credit_eligible_credit_lines do |t|
|
|
4
5
|
t.references :loan_profile, null: false, foreign_key: { to_table: :dscf_credit_loan_profiles }
|
|
5
6
|
t.references :credit_line, null: false, foreign_key: { to_table: :dscf_credit_credit_lines }
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
class CreateDscfCreditLoanAccruals < ActiveRecord::Migration[8.0]
|
|
2
2
|
def change
|
|
3
|
+
return if table_exists?(:dscf_credit_loan_accruals)
|
|
3
4
|
create_table :dscf_credit_loan_accruals do |t|
|
|
4
5
|
t.references :loan, null: false, foreign_key: { to_table: :dscf_credit_loans }
|
|
5
6
|
t.string :accrual_type, null: false
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
class CreateDscfCreditLoanApplicationData < ActiveRecord::Migration[8.0]
|
|
2
2
|
def change
|
|
3
|
+
return if table_exists?(:dscf_credit_loan_application_data)
|
|
3
4
|
create_table :dscf_credit_loan_application_data do |t|
|
|
4
5
|
t.references :loan_application, null: false, foreign_key: { to_table: :dscf_credit_loan_applications }
|
|
5
6
|
t.references :information_source, null: false, foreign_key: { to_table: :dscf_credit_information_sources }
|
data/lib/dscf/credit/version.rb
CHANGED