1
0
Fork 0
miniflux/database/sql/schema_version_27.sql
2020-03-01 18:22:45 -08:00

10 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)
);