class User(AbstractUser):
is_phamacy = models.BooleanField(default=False)
is_restaurant = models.BooleanField(default=False)
is_grocery_shop = models.BooleanField(default=False)
is_rider = models.BooleanField(default=False)
class Restaurant(models.Model):
restaurant_user = models.OneToOneField(
settings.AUTH_USER_MODEL, on_delete=models.CASCADE, blank=True, null=True)
restaurant_name = models.CharField(max_length=255,blank=True)
full_name_of_merchant = models.CharField(max_length=255,blank=True)
government_id = models.ImageField(upload_to = 'media/government_id' , null = True, blank=True)
images_of_restaurants = models.ImageField(upload_to = 'media/images_of_restaurants' , null = True, blank=True)
position_in_restaurant = models.CharField(max_length=255,blank=True)
is_your_business_registered = models.BooleanField(default=True)
tin_number = models.CharField(max_length=255,blank=True)
longitude = models.FloatField(default=0000)
latitude = models.FloatField(default=0000)
long_you_have_been_working = models.IntegerField()
want_delivery_guy = models.BooleanField(default=True)
is_verified = models.BooleanField(default=False)
is_active = models.BooleanField(default=True)
is_staff = models.BooleanField(default=False)
created_at = models.DateTimeField(auto_now_add=True)
updated_at = models.DateTimeField(auto_now=True)