CREATE TABLE IF NOT EXISTS sentry_kubectl_cluster_settings (
    name varchar NOT NULL,
    organization_id uuid NOT NULL,
    partner_id uuid NOT NULL,
    disable_web_kubectl boolean NOT NULL DEFAULT FALSE,
    disable_cli_kubectl boolean NOT NULL DEFAULT FALSE,
    modified_at timestamp WITH time zone,
    created_at timestamp WITH time zone NOT NULL,
    deleted_at timestamp WITH time zone
);

ALTER TABLE sentry_kubectl_cluster_settings OWNER TO admindbuser;

ALTER TABLE ONLY sentry_kubectl_cluster_settings ADD CONSTRAINT sentry_kubectl_cluster_settings_pkey PRIMARY KEY (name);

ALTER TABLE ONLY sentry_kubectl_cluster_settings
    ADD CONSTRAINT sentry_kubectl_cluster_settin_name_partner_id_organization__key UNIQUE (name, partner_id, organization_id);