-- Copyright (C) 2026  Eduard Wisch  <data@data-it-solution.de>
--
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later version.

-- Konfigurierbare Tracking-Pattern (Regex + URL-Template) pro Versand-Provider.

CREATE TABLE llx_mahnung_trackingpattern (
    rowid        INTEGER AUTO_INCREMENT PRIMARY KEY,
    entity       INTEGER DEFAULT 1 NOT NULL,
    provider     VARCHAR(20) NOT NULL,
    label        VARCHAR(80) NOT NULL,
    regex        VARCHAR(255) NOT NULL,
    url_template VARCHAR(255) NOT NULL,
    priority     INTEGER DEFAULT 100,
    active       TINYINT DEFAULT 1,
    datec        DATETIME,
    tms          TIMESTAMP
) ENGINE=InnoDB;
