add user management functionality with OTP verification and consent handling, DI introduced
This commit is contained in:
9
internal/db/migrations/001_init.sql
Normal file
9
internal/db/migrations/001_init.sql
Normal 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
|
||||
|
||||
);
|
||||
Reference in New Issue
Block a user