sbt-idp/cope2n-api/fwd_api/models/UserProfile.py

21 lines
942 B
Python
Raw Normal View History

2023-11-30 11:19:06 +00:00
from django.utils import timezone
from django.db import models
from fwd_api.constant.common import EntityStatus
class UserProfile(models.Model):
2024-11-04 07:11:09 +00:00
id = models.AutoField(primary_key=True, db_index=True)
2023-12-05 05:59:06 +00:00
user_name: str = models.CharField(max_length=200, null=True)
password: str = models.CharField(max_length=200, null=True)
full_name: str = models.CharField(max_length=200, null=True)
sync_id: str = models.CharField(max_length=100, null=True)
2023-11-30 11:19:06 +00:00
provider_id: str = models.CharField(max_length=100, default='Ctel') # CTel/GCP/Azure :v
current_total_pages: int = models.IntegerField(default=0)
limit_total_pages: int = models.IntegerField(default=0)
status = models.IntegerField(default=EntityStatus.INACTIVE.value) # 0 INACTIVE 1 ACTIVE
created_at = models.DateTimeField(default=timezone.now)
updated_at = models.DateTimeField(auto_now=True)
email = models.CharField(max_length=200, null=True)