Files
RustProxy/migrations/0003_certificate_renewals.sql
T
2026-11-28 17:36:53 +01:00

11 lines
364 B
SQL

CREATE TABLE IF NOT EXISTS certificate_renewals (
certificate_id TEXT PRIMARY KEY,
last_checked INTEGER NOT NULL DEFAULT 0,
next_check INTEGER NOT NULL DEFAULT 0,
last_renewed INTEGER,
not_after INTEGER,
failures INTEGER NOT NULL DEFAULT 0 CHECK (failures >= 0),
status TEXT NOT NULL DEFAULT '',
message TEXT NOT NULL DEFAULT ''
);