from django.conf import settings
from django.db import models

__all__ = (
    'Collection',
)


class Collection(models.Model):
    """
    Recipes which are Bookmarked by user
    """
    name = models.CharField(max_length=255)
    user = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.CASCADE)
    # bookmarked_recipe = models.ManyToManyField(
    #     Bookmark,
    #     verbose_name='북마크 콜렉션',
    #     blank=True
    # )

    def __str__(self):
        return f'{self.user}의 북마크콜렉션 {self.name}'
