CREATE TABLE user_devices (
    user_id uuid NOT NULL,
    device_id text NOT NULL,
    token text,
    verified boolean DEFAULT false,
    enabled boolean DEFAULT true,
    description jsonb,
    phone character varying(24),
    advertising_token text,
    advertising_token_type text,
    advertising_token_timestamp integer,

    PRIMARY KEY(user_id, device_id),
    FOREIGN KEY(user_id) REFERENCES "user"(id)
);
