qsl designer

This commit is contained in:
2026-06-11 21:54:35 +02:00
parent 6150498a9e
commit 408b29896c
252 changed files with 13989 additions and 277 deletions
@@ -0,0 +1,14 @@
-- QSL card designer templates. The json column holds the full template
-- document (schema v1, internal/qslcard). Photos referenced by a template
-- are copied into <dataDir>/qsl/templates/<id>/ — never referenced at their
-- original path. profile_id scopes the "default template" choice; a NULL
-- profile keeps the template usable by everyone.
CREATE TABLE qsl_templates (
id INTEGER PRIMARY KEY,
name TEXT NOT NULL,
profile_id INTEGER REFERENCES station_profiles(id) ON DELETE SET NULL,
json TEXT NOT NULL,
is_default INTEGER NOT NULL DEFAULT 0,
created_at TEXT NOT NULL DEFAULT (strftime('%Y-%m-%dT%H:%M:%fZ','now')),
updated_at TEXT NOT NULL DEFAULT (strftime('%Y-%m-%dT%H:%M:%fZ','now'))
);
@@ -0,0 +1,4 @@
-- Operator's personal name (e.g. "Greg"), distinct from the ADIF OPERATOR
-- callsign. Used by the QSL card designer for the signature/script line; may
-- feed correspondence and exports later. Optional, blank by default.
ALTER TABLE station_profiles ADD COLUMN op_name TEXT NOT NULL DEFAULT '';