Загрузка данных


INSERT INTO debt_component_dependency (
    debt_component_dependency_id,
    created_at,
    updated_at,
    oper_date_create,
    oper_date_update,
    debt_child_component_type_cd,
    debt_parent_component_type_cd,
    deal_rate_type_cd,
    daily_posting_requirement_flg,
    is_active_flg
) VALUES
    -- Ежедневное начисление процентов на срочный ОД
    (gen_random_uuid(), now(), now(), current_date, current_date,
     'INTEREST_DEBT', 'PRINCIPAL_DEBT', 'LOAN_RATE', true, true),

    -- Начисление пеней на просроченный ОД
    (gen_random_uuid(), now(), now(), current_date, current_date,
     'PENALTY_ON_OVERDUE_PRINCIPAL_DEBT', 'OVERDUE_PRINCIPAL_DEBT', 'PENALTY_ON_OVERDUE_PRINCIPAL_RATE', true, true),

    -- Начисление пеней на просроченные проценты
    (gen_random_uuid(), now(), now(), current_date, current_date,
     'PENALTY_ON_OVERDUE_INTEREST_DEBT', 'OVERDUE_INTEREST_DEBT', 'PENALTY_ON_OVERDUE_INTEREST_RATE', true, true);