
DROP TABLE IF EXISTS pricequote.core_target;

CREATE TABLE pricequote.core_target (
    compset TEXT        NOT NULL,
    stlc    TEXT        NOT NULL,
    floor   NUMERIC     NOT NULL,
    options JSONB       NOT NULL,
    PRIMARY KEY (stlc)
);

GRANT SELECT, INSERT, UPDATE, DELETE ON pricequote.target_prices TO PUBLIC;

DROP TABLE IF EXISTS import.core_target;

CREATE TABLE import.core_target AS (SELECT * FROM pricequote.core_target);
