🐛 Fix [#13] phone, nickname, custom_url 필드 unique 처리
This commit is contained in:
@@ -35,12 +35,12 @@ class User(BaseModel, AbstractBaseUser, PermissionsMixin):
|
||||
is_consent_personal_info = models.BooleanField(default=False)
|
||||
is_consent_third_party_sharing = models.BooleanField(default=False)
|
||||
is_consent_marketing = models.BooleanField(default=False)
|
||||
phone = models.CharField(max_length=11, blank=True)
|
||||
phone = models.CharField(max_length=11, unique=True, blank=True)
|
||||
# is_phone_verified = models.BooleanField(default=False)
|
||||
nickname = models.CharField(max_length=20, blank=True)
|
||||
nickname = models.CharField(max_length=20, unique=True, blank=True)
|
||||
gender = models.CharField(choices=GenderChoices.choices, max_length=1, blank=True)
|
||||
birth_date = models.CharField(max_length=10, blank=True)
|
||||
custom_url = models.CharField(max_length=20, blank=True)
|
||||
custom_url = models.CharField(max_length=20, unique=True, blank=True)
|
||||
is_custom_url = models.BooleanField(default=False)
|
||||
job_and_interests = ArrayField(models.CharField(max_length=20), default=list, blank=True)
|
||||
skills = ArrayField(models.CharField(max_length=20), default=list, blank=True)
|
||||
|
||||
Reference in New Issue
Block a user