{
  "id": "python/django-auth-user-email-unique",
  "signature": "django.db.utils.IntegrityError: UNIQUE constraint failed: auth_user.email",
  "signature_zh": "Django数据库完整性错误：唯一约束失败：auth_user.email",
  "regex": "django\\.db\\.utils\\.IntegrityError:\\ UNIQUE\\ constraint\\ failed:\\ auth_user\\.email",
  "domain": "python",
  "category": "data_error",
  "subcategory": null,
  "root_cause": "Attempting to create a user with an email that already exists.",
  "root_cause_type": "generic",
  "root_cause_zh": "尝试创建具有已存在电子邮件的用户。",
  "versions": [
    {
      "version": "3.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "User is not created, no feedback to user.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Allows duplicate emails, breaking user identification.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.9,
      "how": "Check email existence before creation: if User.objects.filter(email=email).exists(): return error",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": null,
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.84,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-09-03",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}