database: Add itime and xtime

This commit is contained in:
2025-06-03 20:46:34 +02:00
parent 351228bf30
commit 6aceebde0e
5 changed files with 65 additions and 29 deletions

View File

@ -28,6 +28,8 @@ CREATE TABLE payment_variant (
data TEXT NOT NULL,
ctime INTEGER NOT NULL DEFAULT (UNIXEPOCH()),
mtime INTEGER NOT NULL DEFAULT (UNIXEPOCH()),
xtime INTEGER DEFAULT NULL,
itime INTEGER DEFAULT NULL,
CONSTRAINT pk_payment PRIMARY KEY (year, avnr)
) STRICT;
@ -189,6 +191,8 @@ CREATE TABLE credit (
ctime INTEGER NOT NULL DEFAULT (UNIXEPOCH()),
mtime INTEGER NOT NULL DEFAULT (UNIXEPOCH()),
xtime INTEGER DEFAULT NULL,
itime INTEGER DEFAULT NULL,
CONSTRAINT pk_credit PRIMARY KEY (year, tgnr),
CONSTRAINT sk_credit_payment_member UNIQUE (year, avnr, mgnr),