Files
mkd/backend/migrate_legal_penalties.sql
2026-02-04 00:17:04 +05:00

10 lines
606 B
SQL
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
-- ========= ЮРИДИЧЕСКИЙ ОТДЕЛ: ПЕНИ ПО ДЕЛАМ =========
-- Дополнение к legal_court_cases: сумма пени, дата начала просрочки
ALTER TABLE legal_court_cases
ADD COLUMN IF NOT EXISTS penalty_amount NUMERIC(15, 2) DEFAULT 0,
ADD COLUMN IF NOT EXISTS overdue_since DATE;
COMMENT ON COLUMN legal_court_cases.penalty_amount IS 'Сумма пени по делу (1/300, с 91 дня 1/130 ключевой ставки)';
COMMENT ON COLUMN legal_court_cases.overdue_since IS 'Дата начала просрочки оплаты';