cursor access time non-null

This commit is contained in:
Mike McLean 2026-09-14 13:55:02 -04:00 • committed by Mike McLean
commit 3e2904ffc2
2 changed files with 2 additions and 2 deletions

View file

@ -22,7 +22,7 @@ CREATE TABLE message_cursor (
id SERIAL PRIMARY KEY,
user_id INTEGER NOT NULL REFERENCES users(id),
create_time TIMESTAMPTZ NOT NULL DEFAULT NOW(),
access_time TIMESTAMPTZ,
access_time TIMESTAMPTZ NOT NULL DEFAULT NOW(),
batch_offset INTEGER NOT NULL DEFAULT 0,
message_offset INTEGER NOT NULL DEFAULT 0
) WITHOUT OIDS;

View file

@ -1088,7 +1088,7 @@ CREATE TABLE message_cursor (
id SERIAL PRIMARY KEY,
user_id INTEGER NOT NULL REFERENCES users(id),
create_time TIMESTAMPTZ NOT NULL DEFAULT NOW(),
access_time TIMESTAMPTZ,
access_time TIMESTAMPTZ NOT NULL DEFAULT NOW(),
batch_offset INTEGER NOT NULL DEFAULT 0,
message_offset INTEGER NOT NULL DEFAULT 0
) WITHOUT OIDS;