communicate time as epoch ms; better disable of durations in ui (#33)

This commit is contained in:
Michael Quigley
2022-11-01 16:52:02 -04:00
parent 225e00861b
commit 95b4143a85
10 changed files with 52 additions and 34 deletions

View File

@ -8,8 +8,8 @@ create table accounts (
email varchar(1024) not null unique,
password char(128) not null,
token varchar(32) not null unique,
created_at timestamp not null default(current_timestamp),
updated_at timestamp not null default(current_timestamp),
created_at timestamptz not null default(current_timestamp),
updated_at timestamptz not null default(current_timestamp),
constraint chk_email check (email <> ''),
constraint chk_password check (password <> ''),
@ -24,8 +24,8 @@ create table account_requests (
token varchar(32) not null unique,
email varchar(1024) not null unique,
source_address varchar(64) not null,
created_at timestamp not null default(current_timestamp),
updated_at timestamp not null default(current_timestamp)
created_at timestamptz not null default(current_timestamp),
updated_at timestamptz not null default(current_timestamp)
);
--
@ -38,8 +38,8 @@ create table environments (
host varchar(256),
address varchar(64),
z_id varchar(32) not null unique,
created_at timestamp not null default(current_timestamp),
updated_at timestamp not null default(current_timestamp),
created_at timestamptz not null default(current_timestamp),
updated_at timestamptz not null default(current_timestamp),
constraint chk_z_id check (z_id <> '')
);
@ -54,8 +54,8 @@ create table services (
name varchar(32) not null unique,
frontend varchar(1024),
backend varchar(1024),
created_at timestamp not null default(current_timestamp),
updated_at timestamp not null default(current_timestamp),
created_at timestamptz not null default(current_timestamp),
updated_at timestamptz not null default(current_timestamp),
constraint chk_z_id check (z_id <> ''),
constraint chk_name check (name <> '')