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,12 @@
-- Справочник должностей (для панели управления и выбора при создании сотрудника)
CREATE TABLE IF NOT EXISTS positions (
id VARCHAR(50) PRIMARY KEY,
name TEXT NOT NULL,
is_managerial BOOLEAN NOT NULL DEFAULT FALSE,
sort_order INTEGER NOT NULL DEFAULT 0,
created_at TIMESTAMPTZ NOT NULL DEFAULT NOW(),
updated_at TIMESTAMPTZ NOT NULL DEFAULT NOW()
);
CREATE INDEX IF NOT EXISTS idx_positions_sort ON positions(sort_order);
COMMENT ON TABLE positions IS 'Справочник должностей; is_managerial — руководящая должность';