from django.db import models

# List of todo items
class List(models.Model):
    user_id = models.CharField(max_length=200)
    name = models.CharField(max_length=200)
    description = models.CharField(max_length=500)

    def __str__(self):
        return self.name

# Todo items
class Item(models.Model):
    user_id = models.CharField(max_length=200)
    todo_list = models.ForeignKey(List, on_delete=models.CASCADE)
    content = models.CharField(max_length=500)
    done = models.BooleanField(default=False)

    def __str__(self):
        return self.content

f768fb16a4bb57475bbd2b2925c82b10b0c10f8d
<mask token>


class Item(models.Model):
    user_id = models.CharField(max_length=200)
    todo_list = models.ForeignKey(List, on_delete=models.CASCADE)
    content = models.CharField(max_length=500)
    done = models.BooleanField(default=False)

    def __str__(self):
        return self.content

<mask token>


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


class Item(models.Model):
    user_id = models.CharField(max_length=200)
    todo_list = models.ForeignKey(List, on_delete=models.CASCADE)
    content = models.CharField(max_length=500)
    done = models.BooleanField(default=False)

    def __str__(self):
        return self.content

<mask token>


class List(models.Model):
    user_id = models.CharField(max_length=200)
    name = models.CharField(max_length=200)
    description = models.CharField(max_length=500)

    def __str__(self):
        return self.name


class Item(models.Model):
    user_id = models.CharField(max_length=200)
    todo_list = models.ForeignKey(List, on_delete=models.CASCADE)
    content = models.CharField(max_length=500)
    done = models.BooleanField(default=False)

    def __str__(self):
        return self.content

from django.db import models


class List(models.Model):
    user_id = models.CharField(max_length=200)
    name = models.CharField(max_length=200)
    description = models.CharField(max_length=500)

    def __str__(self):
        return self.name


class Item(models.Model):
    user_id = models.CharField(max_length=200)
    todo_list = models.ForeignKey(List, on_delete=models.CASCADE)
    content = models.CharField(max_length=500)
    done = models.BooleanField(default=False)

    def __str__(self):
        return self.content

from django.db import models

# List of todo items
class List(models.Model):
    user_id = models.CharField(max_length=200)
    name = models.CharField(max_length=200)
    description = models.CharField(max_length=500)

    def __str__(self):
        return self.name

# Todo items
class Item(models.Model):
    user_id = models.CharField(max_length=200)
    todo_list = models.ForeignKey(List, on_delete=models.CASCADE)
    content = models.CharField(max_length=500)
    done = models.BooleanField(default=False)

    def __str__(self):
        return self.content
