2023-05-09 05:11:21 +00:00
|
|
|
create table `salix`.`authCode`
|
|
|
|
(
|
|
|
|
userFk int UNSIGNED not null,
|
|
|
|
code int not null,
|
2023-06-21 12:17:25 +00:00
|
|
|
expires bigint not null,
|
2023-05-09 05:11:21 +00:00
|
|
|
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
|
|
|
|
);
|