DROP TABLE beacon_config;
CREATE TABLE beacon_config (
    config_id integer PRIMARY KEY AUTOINCREMENT NOT NULL,
    config_name varchar NOT NULL,

    mode text check (mode in ('single', 'regular', 'random', 'cron')),

    regular_interval int,

    random_min_time int,
    random_max_time int,

    cron_schedule varchar,
    cron_mode text check (cron_mode in ('local', 'utc'))
);
