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
+2
View File
@@ -20,6 +20,7 @@ tee -a docker.azaion.com << END
server {
listen 443 ssl;
server_name docker.azaion.com;
client_max_body_size 900M;
ssl_certificate /etc/letsencrypt/live/docker.azaion.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/docker.azaion.com/privkey.pem;
@@ -39,6 +40,7 @@ server {
server {
listen 80;
server_name docker.azaion.com;
client_max_body_size 900M;
location / {
auth_basic "Registry";
+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;