-- Allow each tenant to reuse the same login username and role code.
DROP INDEX `User_username_key` ON `User`;
DROP INDEX `Role_code_key` ON `Role`;

CREATE UNIQUE INDEX `User_tenantId_username_key` ON `User`(`tenantId`, `username`);
CREATE UNIQUE INDEX `Role_tenantId_code_key` ON `Role`(`tenantId`, `code`);
