START TRANSACTION;

CREATE TABLE IF NOT EXISTS resource_unit_config
(
    resource_id  BIGSERIAL PRIMARY KEY REFERENCES resource (id) ON DELETE CASCADE ON UPDATE CASCADE,
    default_unit SHORT_TEXT NOT NULL,
    settings     JSONB NOT NULL DEFAULT '{}'
);


COMMIT;
