mirror of
https://github.com/azaion/admin.git
synced 2026-04-22 06:46:33 +00:00
Add LastLogin and CreatedAt to User
This commit is contained in:
Vendored
+2
@@ -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";
|
||||
|
||||
Vendored
+3
-1
@@ -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;
|
||||
|
||||
Vendored
+3
@@ -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;
|
||||
Reference in New Issue
Block a user