mirror of
https://github.com/miniflux/v2.git
synced 2024-09-05 19:09:21 +02:00
11 lines
332 B
SQL
11 lines
332 B
SQL
create table api_keys (
|
|
id serial not null,
|
|
user_id int not null references users(id) on delete cascade,
|
|
token text not null unique,
|
|
description text not null,
|
|
last_used_at timestamp with time zone,
|
|
created_at timestamp with time zone default now(),
|
|
primary key(id),
|
|
unique (user_id, description)
|
|
);
|