I am currently using Cognito and Django together. I also have a rds postgres instance as my db.
I am curious what are the pros and cons of using CognitoId as my User's primary key versus having unique uuid4 primary key for my user and a cognito_id field.
class User(AbstractUser):
user_id = models.UUIDField(primary_key=True, default=uuid4)
cognito_id = models.UUIDField(default=uuid.uuid4, editable=False)
OR
class User(AbstractUser):
cognito_id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)
Are there any reasons the second version that uses cognitoID would run into issues?