title: How do I configure ORM if I want to reference foreign keys for a particular column?
body: <pre class="lang-py prettyprint-override"><code>class Member(models.Model):
      user_Id = models.CharField(max_length=50, primary_key=True)
      user_Nick = models.CharField(max_length=10, unique=True)
      user_Name = models.CharField(max_length=10)
      user_Driver = models.IntegerField()
      user_Phone = models.CharField(max_length=30, unique=True)
      user_Points = models.IntegerField(default=0)
      user_Email = models.CharField(max_length=50, unique=True)
  
      def __str__(self):
          return self.user_Id
  
      class Meta:
          db_table = 'TB_MEMBER'
  
  
  class LogPoint(models.Model):
      pot_Id = models.ForeignKey(
          &quot;Member&quot;, related_name=&quot;MemberId&quot;,
          on_delete=models.CASCADE, db_column=&quot;pot_Id&quot;
      )
      pot_Amount = models.ForeignKey(
          &quot;Member&quot;, related_name=&quot;MemberAmount&quot;,
          on_delete=models.CASCADE, db_column=&quot;pot_Amount&quot;
      )
      pot_date = models.DateTimeField(auto_now_add=True)
      pot_Reason = models.CharField(max_length=20)
      pot_Change = models.IntegerField()
  
      def __str__(self):
          return self.pot_Id
  
      class Meta:
          db_table = 'TB_LOGPOINT'
  </code></pre>
  <p>I want to refer to the attribute user_Points in the User model as Foreign Key.<br />
  I've done migration, but I don't think it's properly referenced because the data type becomes varcar, not integer.<br />
  How do I configure ORM if I want to reference foreign keys for a particular column?</p>