mirror of
https://github.com/azaion/admin.git
synced 2026-04-22 22:06:33 +00:00
14 lines
374 B
SQL
14 lines
374 B
SQL
-- users table
|
|
drop table users;
|
|
create table users
|
|
(
|
|
id uuid primary key,
|
|
email varchar(160) not null,
|
|
password_hash varchar(255) not null,
|
|
hardware_id varchar(120) null,
|
|
role varchar(20) not null
|
|
);
|
|
grant select, insert, update, delete on public.users to azaion_admin;
|
|
grant select on table public.users to azaion_reader;
|
|
|