Skip to content

Instantly share code, notes, and snippets.

@rririanto
Created January 25, 2021 11:00
Show Gist options
  • Save rririanto/56d288d6c6243df26f38e0145889453a to your computer and use it in GitHub Desktop.
Save rririanto/56d288d6c6243df26f38e0145889453a to your computer and use it in GitHub Desktop.
class User(AbstractUser, Timestampable):
id = models.UUIDField(
primary_key=True,
default=uuid.uuid4,
editable=False)
customer = models.ForeignKey(Customer, null=True, blank=True, on_delete=models.SET_NULL)
subscription = models.ForeignKey(Subscription, null=True, blank=True, on_delete=models.SET_NULL)
payment_id = models.CharField(max_length=255, blank=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment