{
  "id": 194158,
  "title": "How can a single `content_id` have two `content_type_id`?",
  "url": "/competitions/riiid-test-answer-prediction/discussion/194158",
  "author_name": "",
  "post_date": "2020-10-31T01:50:00.480136300Z",
  "votes": 1,
  "comment_count": 3,
  "views": 0,
  "content": "<p>For a specific user, <code>content_id=89</code> of <code>content_type_id=0</code> is different with <code>content_id=89</code> of <code>content_type_id=1</code>? or they can be same each other?</p>",
  "messages": [
    {
      "id": "1065186",
      "postDate": "10/31/2020 01:50:00",
      "content": "<p>For a specific user, <code>content_id=89</code> of <code>content_type_id=0</code> is different with <code>content_id=89</code> of <code>content_type_id=1</code>? or they can be same each other?</p>",
      "rawMarkdown": "For a specific user, `content_id=89` of `content_type_id=0` is different with `content_id=89` of `content_type_id=1`? or they can be same each other?",
      "votes": null
    },
    {
      "id": "1065300",
      "postDate": "10/31/2020 06:12:24",
      "content": "<p>content_id is the foreign key into two tables(questions and lectures). Content_type_id determines which table this content_id refers to. In short (content_id,content_type_id) is a compound foreign key from lectures/questions.</p>",
      "rawMarkdown": "content_id is the foreign key into two tables(questions and lectures). Content_type_id determines which table this content_id refers to. In short (content_id,content_type_id) is a compound foreign key from lectures/questions.",
      "votes": null
    },
    {
      "id": "1065490",
      "postDate": "10/31/2020 10:51:24",
      "content": "<p><a href=\"https://www.kaggle.com/abhimanyud\" target=\"_blank\">@abhimanyud</a> Thanks for your answer. But I want to make it clear more. In my example, <code>content_id=89</code> in <code>(content_id=89, content_type_id=0)</code> and <code>content_id=89</code> in <code>(content_id=89, content_type_id=1)</code> are different content even though they are having same <code>content_id</code>?</p>",
      "rawMarkdown": "abhimanyud Thanks for your answer. But I want to make it clear more. In my example, `content_id=89` in `(content_id=89, content_type_id=0)` and `content_id=89` in `(content_id=89, content_type_id=1)` are different content even though they are having same `content_id`?",
      "votes": null
    },
    {
      "id": "1065575",
      "postDate": "10/31/2020 13:11:39",
      "content": "<p>Yes, one of them is a question and the other a lecture.</p>",
      "rawMarkdown": "Yes, one of them is a question and the other a lecture.",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 1065300,
      "author_name": "abhimanyud",
      "author_url": "",
      "post_date": "10/31/2020 06:12:24",
      "content": "<p>content_id is the foreign key into two tables(questions and lectures). Content_type_id determines which table this content_id refers to. In short (content_id,content_type_id) is a compound foreign key from lectures/questions.</p>",
      "votes": null,
      "replies": [
        {
          "id": 1065490,
          "author_name": "choisgood",
          "author_url": "",
          "post_date": "10/31/2020 10:51:24",
          "content": "<p><a href=\"https://www.kaggle.com/abhimanyud\" target=\"_blank\">@abhimanyud</a> Thanks for your answer. But I want to make it clear more. In my example, <code>content_id=89</code> in <code>(content_id=89, content_type_id=0)</code> and <code>content_id=89</code> in <code>(content_id=89, content_type_id=1)</code> are different content even though they are having same <code>content_id</code>?</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1065575,
          "author_name": "christoffer",
          "author_url": "",
          "post_date": "10/31/2020 13:11:39",
          "content": "<p>Yes, one of them is a question and the other a lecture.</p>",
          "votes": null,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "1065186": "For a specific user, `content_id=89` of `content_type_id=0` is different with `content_id=89` of `content_type_id=1`? or they can be same each other?",
    "1065300": "content_id is the foreign key into two tables(questions and lectures). Content_type_id determines which table this content_id refers to. In short (content_id,content_type_id) is a compound foreign key from lectures/questions.",
    "1065490": "abhimanyud Thanks for your answer. But I want to make it clear more. In my example, `content_id=89` in `(content_id=89, content_type_id=0)` and `content_id=89` in `(content_id=89, content_type_id=1)` are different content even though they are having same `content_id`?",
    "1065575": "Yes, one of them is a question and the other a lecture."
  },
  "source": "meta"
}