Add renew_ts column and check with renew_ts

This commit is contained in:
Jana Cupova 2023-04-21 08:53:01 +02:00 committed by Tomas Kopecek
parent ce0ce20e3a
commit 6a033ea948
3 changed files with 17 additions and 4 deletions

View file

@ -120,6 +120,7 @@ CREATE TABLE sessions (
update_time TIMESTAMPTZ NOT NULL DEFAULT NOW(),
exclusive BOOLEAN CHECK (exclusive),
closed BOOLEAN NOT NULL DEFAULT FALSE,
renew_time TIMESTAMPTZ DEFAULT NULL,
CONSTRAINT no_exclusive_subsessions CHECK (
master IS NULL OR "exclusive" IS NULL),
CONSTRAINT no_closed_exclusive CHECK (