Kit.Db/projects/pg/kit_auth_pg/auth/tables/user_cabinet.psql

10 lines
750 B
Plaintext
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.

-- LEGACY (оставлена для совместимости, в дальнейшем будет убрана).
-- Соединительная таблица «пользователь ↔ кабинет». Структура сохранена как в исходных
-- init-скриптах: без первичного ключа и внешних ключей — чтобы не менять поведение
-- существующего кода (auth.user_cabinet_bulk_insert / auth.user_cabinet_select).
-- Конвенциям junction (правило 03: serial id / FK) намеренно НЕ приводится — это legacy.
CREATE TABLE auth.user_cabinet
(
user_id integer not null,
cabinet_id integer not null
);