DROP INDEX IF EXISTS idx_invites_tenant_id;
CREATE INDEX IF NOT EXISTS idx_invites_tenant_id ON invites(tenant_id);
ALTER TABLE invites ALTER COLUMN tenant_id SET NOT NULL;
