diff --git a/flashy/flashcards/models.py b/flashy/flashcards/models.py index 71a8362..c8e8d4f 100644 --- a/flashy/flashcards/models.py +++ b/flashy/flashcards/models.py @@ -1,3 +1,14 @@ from django.db import models - -# Create your models here. +""" + Represents the relationship between a user and a flashcard by: + 1. A user has a flashcard in their deck + 2. A user used to have a flashcard in their deck + 3. A user has a flashcard hidden from them +""" +Class UserFlashcard(models.Models): + user = models.ForeignKey(User) + mask = models.ForeignKey(FlashcardMask) + pulled = models.DateTimeField('date pulled') + flashcard = models.ForeignKey(Flashcard) + unpulled = model.DateTimeField('date unpulled') +