CREATE TABLE promo_codes_meta (
    id uuid NOT NULL PRIMARY KEY,
    code text NOT NULL UNIQUE,
    usage_limit INTEGER NOT NULL,
    activity_start BIGINT NOT NULL,
    activity_deadline BIGINT NOT NULL,
    removing_deadline BIGINT NOT NULL,
    type BIGINT NOT NULL,
    prefix text NOT NULL,
    given_out TEXT,
    meta JSON,
    FOREIGN KEY(type) REFERENCES promo_code_types(id)
);
