mirror of
https://github.com/openziti/zrok.git
synced 2024-11-21 23:53:19 +01:00
frontend_grants for both databases (#539)
This commit is contained in:
parent
d22b292587
commit
c2878dcd85
@ -0,0 +1,15 @@
|
|||||||
|
-- +migrate Up
|
||||||
|
|
||||||
|
create table frontend_grants (
|
||||||
|
id serial primary key,
|
||||||
|
|
||||||
|
account_id integer references accounts (id) not null,
|
||||||
|
frontend_id integer references frontends (id) not null,
|
||||||
|
|
||||||
|
created_at timestamptz not null default(current_timestamp),
|
||||||
|
updated_at timestamptz not null default(current_timestamp),
|
||||||
|
deleted boolean not null default(false)
|
||||||
|
);
|
||||||
|
|
||||||
|
create index frontend_grants_account_id_idx on frontend_grants (account_id);
|
||||||
|
create index frontend_grants_frontend_id_idx on frontend_grants (frontend_id);
|
15
controller/store/sql/sqlite3/027_v0_4_32_frontend_grants.sql
Normal file
15
controller/store/sql/sqlite3/027_v0_4_32_frontend_grants.sql
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
-- +migrate Up
|
||||||
|
|
||||||
|
create table frontend_grants (
|
||||||
|
id integer primary key,
|
||||||
|
|
||||||
|
account_id integer references accounts (id) not null,
|
||||||
|
frontend_id integer references frontends (id) not null,
|
||||||
|
|
||||||
|
created_at datetime not null default(strftime('%Y-%m-%d %H:%M:%f', 'now')),
|
||||||
|
updated_at datetime not null default(strftime('%Y-%m-%d %H:%M:%f', 'now')),
|
||||||
|
deleted boolean not null default(false)
|
||||||
|
);
|
||||||
|
|
||||||
|
create index frontend_grants_account_id_idx on frontend_grants (account_id);
|
||||||
|
create index frontend_grants_frontend_id_idx on frontend_grants (frontend_id);
|
Loading…
Reference in New Issue
Block a user