mirror of
https://github.com/openziti/zrok.git
synced 2025-08-09 08:05:04 +02:00
initial pass for forgot password
This commit is contained in:
@ -0,0 +1,15 @@
|
||||
-- +migrate up
|
||||
|
||||
--
|
||||
-- password_reset_requests
|
||||
---
|
||||
|
||||
create table password_reset_requests (
|
||||
id serial primary key,
|
||||
token varchar(32) not null unique,
|
||||
created_at timestamptz not null default(current_timestamp),
|
||||
updated_at timestamptz not null default(current_timestamp),
|
||||
account_id integer not null unique constraint fk_accounts_password_reset_requests references accounts on delete cascade,
|
||||
|
||||
constraint chk_token check(token <> '')
|
||||
);
|
Reference in New Issue
Block a user