diff --git a/flashy/flashcards/models.py b/flashy/flashcards/models.py index cc1326e..e94518c 100644 --- a/flashy/flashcards/models.py +++ b/flashy/flashcards/models.py @@ -1,15 +1,15 @@ from django.db import models +class UserFlashcard(models.Models): """ 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) + pulled = models.DateTimeField('date pulled') unpulled = model.DateTimeField('date unpulled')