Auto-count storefront page views with 6-month event retention and lifetime counters, track product visit/cart/sale stats, persist SSL cert expiry with daily probes, and support owner titles plus annual contract renewal. Co-authored-by: Cursor <cursoragent@cursor.com>
9 lines
343 B
SQL
9 lines
343 B
SQL
-- Store Let's Encrypt / TLS notAfter after a successful SSL issue.
|
|
-- List Valid/Invalid prefers this date; live probes run at most once per day.
|
|
ALTER TABLE domains
|
|
ADD COLUMN IF NOT EXISTS ssl_expires_at TIMESTAMPTZ;
|
|
|
|
CREATE INDEX IF NOT EXISTS idx_domains_ssl_expires_at
|
|
ON domains (ssl_expires_at)
|
|
WHERE ssl_expires_at IS NOT NULL;
|