Add LastLogin and CreatedAt to User

This commit is contained in:
Oleksandr Bezdieniezhnykh
2025-09-21 23:57:37 +03:00
parent 1fcaba383e
commit 0af74ec278
7 changed files with 49 additions and 3 deletions
+3 -1
View File
@@ -8,7 +8,9 @@ create table users
hardware text null,
hardware_hash varchar(120) null,
role varchar(20) not null,
user_config varchar(512) null
user_config varchar(512) null,
created_at timestamp not null default now(),
last_login timestamp null
);
grant select, insert, update, delete on public.users to azaion_admin;
grant select on table public.users to azaion_reader;
+3
View File
@@ -0,0 +1,3 @@
ALTER TABLE public.users
ADD COLUMN IF NOT EXISTS created_at timestamp not null default now(),
ADD COLUMN IF NOT EXISTS last_login timestamp null;