Initial commit MKD fixes

This commit is contained in:
Arsen
2026-02-04 00:17:04 +05:00
commit de94ad707b
312 changed files with 138754 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
-- Миграция для добавления массива файлов закрывающих документов в payment_invoices
DO $$
BEGIN
IF NOT EXISTS (
SELECT 1
FROM information_schema.columns
WHERE table_name = 'payment_invoices'
AND column_name = 'closing_docs_files'
) THEN
ALTER TABLE payment_invoices
ADD COLUMN closing_docs_files JSONB DEFAULT '[]';
COMMENT ON COLUMN payment_invoices.closing_docs_files IS 'Список файлов закрывающих документов: [{filename, url, size, mimetype, uploadedAt, storedFilename}]';
END IF;
END $$;