- Add avatar upload functionality with public URL access. - Implement user login with email and password authentication. - Create endpoints for fetching and updating the authenticated user's profile. - Set up database migrations for user profiles, including email and role management. - Introduce personal data management linked to user profiles. - Add email verification process with welcome email templates.
12 lines
360 B
SQL
12 lines
360 B
SQL
CREATE TABLE welcome_tokens (
|
|
token UUID PRIMARY KEY,
|
|
user_id UUID NOT NULL,
|
|
email TEXT NOT NULL,
|
|
created_at TIMESTAMPTZ NOT NULL DEFAULT NOW(),
|
|
expires_at TIMESTAMPTZ NOT NULL,
|
|
used_at TIMESTAMPTZ
|
|
);
|
|
|
|
CREATE INDEX welcome_tokens_user_id_idx ON welcome_tokens (user_id);
|
|
CREATE INDEX welcome_tokens_email_idx ON welcome_tokens (email);
|