-- Richer per-reference metadata, mirroring Log4OM's reference editor:
-- a per-reference regexp, validity window, score/bonus, grid, alias, a
-- "valid" flag, and a multi-DXCC list (JSON array) on top of the single
-- primary dxcc kept for fast filtering.
ALTER TABLE award_references ADD COLUMN dxcc_list  TEXT    NOT NULL DEFAULT '';
ALTER TABLE award_references ADD COLUMN pattern    TEXT    NOT NULL DEFAULT '';
ALTER TABLE award_references ADD COLUMN valid      INTEGER NOT NULL DEFAULT 1;
ALTER TABLE award_references ADD COLUMN valid_from TEXT    NOT NULL DEFAULT '';
ALTER TABLE award_references ADD COLUMN valid_to   TEXT    NOT NULL DEFAULT '';
ALTER TABLE award_references ADD COLUMN score      INTEGER NOT NULL DEFAULT 0;
ALTER TABLE award_references ADD COLUMN bonus      INTEGER NOT NULL DEFAULT 0;
ALTER TABLE award_references ADD COLUMN gridsquare TEXT    NOT NULL DEFAULT '';
ALTER TABLE award_references ADD COLUMN alias      TEXT    NOT NULL DEFAULT '';
