from django.db import models


# Create your models here.
class Library(models.Model):
    name = models.CharField(max_length=100)
    address = models.TextField()
    city = models.CharField(max_length=25)
    date_created = models.DateTimeField(auto_now_add=True)
    date_updated = models.DateTimeField(auto_now=True)


class Reviews(models.Model):
    library = models.ForeignKey(Library, on_delete=models.CASCADE)
    review = models.TextField()
    guest = models.CharField(max_length=50)
    address = models.TextField()
    phone = models.IntegerField()
    email = models.EmailField(max_length=100)
    is_approve = models.BooleanField(default=False)
    date_created = models.DateTimeField(auto_now_add=True)
    date_updated = models.DateTimeField(auto_now=True)


7f6857ded4c90108501e21f4b57e4d4ef5c3b194
<mask token>


class Reviews(models.Model):
    library = models.ForeignKey(Library, on_delete=models.CASCADE)
    review = models.TextField()
    guest = models.CharField(max_length=50)
    address = models.TextField()
    phone = models.IntegerField()
    email = models.EmailField(max_length=100)
    is_approve = models.BooleanField(default=False)
    date_created = models.DateTimeField(auto_now_add=True)
    date_updated = models.DateTimeField(auto_now=True)

<mask token>


class Library(models.Model):
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>


class Reviews(models.Model):
    library = models.ForeignKey(Library, on_delete=models.CASCADE)
    review = models.TextField()
    guest = models.CharField(max_length=50)
    address = models.TextField()
    phone = models.IntegerField()
    email = models.EmailField(max_length=100)
    is_approve = models.BooleanField(default=False)
    date_created = models.DateTimeField(auto_now_add=True)
    date_updated = models.DateTimeField(auto_now=True)

<mask token>


class Library(models.Model):
    name = models.CharField(max_length=100)
    address = models.TextField()
    city = models.CharField(max_length=25)
    date_created = models.DateTimeField(auto_now_add=True)
    date_updated = models.DateTimeField(auto_now=True)


class Reviews(models.Model):
    library = models.ForeignKey(Library, on_delete=models.CASCADE)
    review = models.TextField()
    guest = models.CharField(max_length=50)
    address = models.TextField()
    phone = models.IntegerField()
    email = models.EmailField(max_length=100)
    is_approve = models.BooleanField(default=False)
    date_created = models.DateTimeField(auto_now_add=True)
    date_updated = models.DateTimeField(auto_now=True)

from django.db import models


class Library(models.Model):
    name = models.CharField(max_length=100)
    address = models.TextField()
    city = models.CharField(max_length=25)
    date_created = models.DateTimeField(auto_now_add=True)
    date_updated = models.DateTimeField(auto_now=True)


class Reviews(models.Model):
    library = models.ForeignKey(Library, on_delete=models.CASCADE)
    review = models.TextField()
    guest = models.CharField(max_length=50)
    address = models.TextField()
    phone = models.IntegerField()
    email = models.EmailField(max_length=100)
    is_approve = models.BooleanField(default=False)
    date_created = models.DateTimeField(auto_now_add=True)
    date_updated = models.DateTimeField(auto_now=True)

from django.db import models


# Create your models here.
class Library(models.Model):
    name = models.CharField(max_length=100)
    address = models.TextField()
    city = models.CharField(max_length=25)
    date_created = models.DateTimeField(auto_now_add=True)
    date_updated = models.DateTimeField(auto_now=True)


class Reviews(models.Model):
    library = models.ForeignKey(Library, on_delete=models.CASCADE)
    review = models.TextField()
    guest = models.CharField(max_length=50)
    address = models.TextField()
    phone = models.IntegerField()
    email = models.EmailField(max_length=100)
    is_approve = models.BooleanField(default=False)
    date_created = models.DateTimeField(auto_now_add=True)
    date_updated = models.DateTimeField(auto_now=True)

