CREATE TABLE tb_configuracoes (
    id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
    id_plano UUID NOT NULL REFERENCES tb_planos(id),
    id_rotina UUID NOT NULL REFERENCES tb_rotinas(id),
    id_modelo UUID NOT NULL REFERENCES tb_modelos(id),
	deleted CHAR(1) NOT NULL DEFAULT '' CHECK (deleted IN ('', '*')),
	UNIQUE (id_plano, id_rotina)
);