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,8 @@
-- Миграция: добавление поля inventory в таблицу districts
-- Склад участка хранится в JSONB поле для гибкости структуры
ALTER TABLE districts
ADD COLUMN IF NOT EXISTS inventory JSONB DEFAULT '[]'::jsonb;
-- Создаем индекс для быстрого поиска по inventory (опционально, если нужно)
-- CREATE INDEX IF NOT EXISTS idx_districts_inventory ON districts USING GIN (inventory);