mirror of
https://github.com/azaion/admin.git
synced 2026-04-22 08:16:34 +00:00
f5e466108a
add ToHash for encryption Key
23 lines
714 B
SQL
23 lines
714 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 text null,
|
|
hardware_hash 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;
|
|
|
|
INSERT INTO public.users
|
|
(id, email, password_hash, hardware, hardware_hash, role)
|
|
VALUES ('d90a36ca-e237-4fbd-9c7c-127040ac8556',
|
|
'admin@azaion.com',
|
|
'282wqVHZU0liTxphiGkKIaJtUA1W6rILdvfEOx8Ez350x0XLbgNtrSUYCK1r/ajq',
|
|
null,
|
|
null,
|
|
'ApiAdmin');
|