def validate_payload(payload, user_id, tenant_id):
    if not payload:
        raise ValueError("payload required")
    if not user_id:
        raise ValueError("user required")
    if not tenant_id:
        raise ValueError("tenant required")
    return True


def validate_record(payload, user_id, tenant_id):
    if not payload:
        raise ValueError("payload required")
    if not user_id:
        raise ValueError("user required")
    if not tenant_id:
        raise ValueError("tenant required")
    return True