Spaces:
Sleeping
Sleeping
Download users/models.py from SAGAR142/fraud-detection-bot: direct link, hf CLI and curl.
- Browser
- Download file 1.03 kB
-
https://huggingface.co/spaces/SAGAR142/fraud-detection-bot/resolve/main/users/models.py
- Command line
-
hf download hf://spaces/SAGAR142/fraud-detection-bot/users/models.py
-
curl -L -o models.py https://huggingface.co/spaces/SAGAR142/fraud-detection-bot/resolve/main/users/models.py
1.03 kB
| from django.db import models | |
| # Create your models here. | |
| from django.db import models | |
| # Create your models here. | |
| from django.db import models | |
| # Create your models here. | |
| from django.db import models | |
| class UserRegistrationModel(models.Model): | |
| name = models.CharField(max_length=100) | |
| loginid = models.CharField(unique=True, max_length=100) | |
| password = models.CharField(max_length=100) | |
| mobile = models.CharField(unique=True, max_length=10) # Adjusted max_length to 10 for mobile numbers | |
| email = models.EmailField(unique=True, max_length=100) # Use EmailField for better validation | |
| locality = models.CharField(max_length=100) | |
| address = models.TextField(max_length=1000) # Use TextField for longer addresses | |
| city = models.CharField(max_length=100) | |
| state = models.CharField(max_length=100) | |
| status = models.CharField(max_length=100, default='waiting') | |
| def __str__(self): | |
| return self.loginid | |
| class Meta: | |
| db_table = 'user_registrations' | |