CREATE TABLE oauth
(
    id               uuid              NOT NULL,
    display_name     character varying NOT NULL,
    application_name character varying NOT NULL,
    install_url      character varying,
    uninstall_url    character varying,
    data             jsonb
);

CREATE TABLE publishable_api_keys
(
    id         uuid                                   NOT NULL,
    created_at timestamp with time zone DEFAULT now() NOT NULL,
    updated_at timestamp with time zone DEFAULT now() NOT NULL,
    created_by character varying,
    revoked_by character varying,
    revoked_at timestamp with time zone,
    title      character varying                      NOT NULL
);

CREATE TABLE publishable_api_key_sales_channels
(
    sales_channel_id   uuid NOT NULL,
    publishable_key_id uuid NOT NULL
);
