Semaphore/db/sql/migrations/v1.2.0.sql

9 lines
238 B
MySQL
Raw Normal View History

create table `user__token` (
`id` varchar(32) not null primary key,
2016-04-29 09:33:08 +02:00
`created` datetime not null,
2021-08-24 17:20:34 +02:00
`expired` boolean not null default false,
2020-11-28 22:49:44 +01:00
`user_id` int not null,
2020-11-28 22:49:44 +01:00
foreign key (`user_id`) references `user`(`id`) on delete cascade
);