from django.db import models

# Create your models here.

class Family(models.Model):
    name = models.CharField(max_length=100)

class Animal(models.Model):
    animal_name = models.CharField(max_length = 50, null=True)
    legs = models.IntegerField()
    weight = models.FloatField()
    height = models.FloatField()
    speed = models.FloatField()
    family = models.ForeignKey(Family, on_delete=models.CASCADE) 


