CREATE TABLE pending_invitations ( tenant_id TEXT NOT NULL REFERENCES tenants(id), email TEXT NOT NULL, PRIMARY KEY (tenant_id, email) );