ALTER TABLE rotinas ADD CONSTRAINT rotinas_pk PRIMARY KEY ( id );

ALTER TABLE rotinas ADD CONSTRAINT rotinas_idx_slug_sistema UNIQUE ( slug,
                                                                     sistema_id );