from django.db import models
from django.contrib.auth.models import User

# Create your models here.
class Languages(models.Model):
    name = models.CharField(max_length=20)
    learnt = models.BooleanField(default=False)
    user = models.ForeignKey(User, on_delete=models.CASCADE)

    def __str__(self):
        return self.name
