Начало реализации сервиса.

This commit is contained in:
Grbisba
2026-10-30 12:25:56 +03:00
parent 65003b6119
commit 20f2f00a60
52 changed files with 4351 additions and 1 deletions
@@ -0,0 +1,17 @@
CREATE TABLE IF NOT EXISTS auth_identities
(
id UUID PRIMARY KEY,
role VARCHAR(12) NOT NULL,
user_id UUID NOT NULL,
provider TEXT NOT NULL,
identifier TEXT NOT NULL,
password_hash TEXT,
status VARCHAR(24) NOT NULL DEFAULT 'PENDING',
created_at TIMESTAMPTZ NOT NULL DEFAULT NOW(),
updated_at TIMESTAMPTZ NOT NULL DEFAULT NOW(),
CONSTRAINT fk_auth_identities_users FOREIGN KEY (user_id) REFERENCES users (id),
UNIQUE (provider, identifier)
);
---- create above / drop below ----
DROP TABLE IF EXISTS auth_identities;