~willvaughn/grsroot-auth

57fce2afeaf1d9e5548acece977bb0221c1f1c56 — William Vaughn 5 months ago ce23d7b
add refresh_token table in migrations
M resources/migrations/20220211035117-grsroot-auth.down.sql => resources/migrations/20220211035117-grsroot-auth.down.sql +2 -0
@@ 4,4 4,6 @@ drop table app_role;
--;;
drop table app;
--;;
drop table refresh_token;
--;;
drop table app_user;

M resources/migrations/20220211035117-grsroot-auth.up.sql => resources/migrations/20220211035117-grsroot-auth.up.sql +8 -0
@@ 23,3 23,11 @@ create table app_user_role (
  app_role_id      uuid not null references app_role(app_role_id),
  unique(app_user_id, app_role_id)
);
--;;
create table refresh_token (
  refresh_token_id bigserial primary key,
  app_user_id      uuid not null references app_user(app_user_id),
  issued_at        timestamp not null,
  token            text not null,
  is_valid         boolean not null
);