add user management functionality with OTP verification and consent handling, DI introduced

This commit is contained in:
2025-08-10 10:38:49 +03:00
parent 6a9061a3de
commit 5d80a68b44
30 changed files with 828 additions and 528 deletions

View File

@ -0,0 +1,9 @@
CREATE TABLE IF NOT EXISTS users
(
uuid UUID PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
phone_number VARCHAR(20) NOT NULL CHECK (phone_number ~ '^\+[0-9]{10,15}$'),
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL,
verified BOOLEAN DEFAULT FALSE NOT NULL,
verified_at TIMESTAMP NULL
);