Fix missing NOT NULL

This commit is contained in:
ekzyis 2023-09-09 22:52:50 +02:00
parent 04f3feaf8c
commit 68ae16173f
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
CREATE TABLE lnauth( CREATE TABLE lnauth(
k1 VARCHAR(64) NOT NULL PRIMARY KEY, k1 VARCHAR(64) NOT NULL PRIMARY KEY,
lnurl TEXT NOT NULL, lnurl TEXT NOT NULL,
created TIMESTAMP WITH TIME ZONE DEFAULT CURRENT_TIMESTAMP, created TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT CURRENT_TIMESTAMP,
session_id VARCHAR(48) NOT NULL DEFAULT encode(gen_random_uuid()::text::bytea, 'base64') session_id VARCHAR(48) NOT NULL DEFAULT encode(gen_random_uuid()::text::bytea, 'base64')
); );
CREATE TABLE sessions( CREATE TABLE sessions(