from django.db import models

class Author(models.Model):
  name = models.TextField()


class Book(models.Model):
  title = models.TextField()
  author = models.ForeignKey(Author, on_delete=models.CASCADE)