from django.db import models


class Categoy(models.Model):
    name=models.CharField(max_length=50)
    time=models.DateTimeField(auto_now_add=True)

class Book(models.Model):
    title=models.CharField( max_length=250)
    author=models.CharField(max_length=100)
    def __str__(self):
        return self.title


   

