salix/db/changes/232601/00-authCode.sql

14 lines
396 B
MySQL
Raw Normal View History

2023-05-09 05:11:21 +00:00
create table `salix`.`authCode`
(
userFk int UNSIGNED not null,
code int not null,
expires TIMESTAMP not null,
constraint authCode_pk
primary key (userFk),
constraint authCode_unique
unique (code),
constraint authCode_user_id_fk
foreign key (userFk) references `account`.`user` (id)
on update cascade on delete cascade
);