From 5640b974eca1f95e13f39828708975febb154b9c Mon Sep 17 00:00:00 2001 From: Laura Hawkins Date: Tue, 28 Apr 2015 09:38:44 -0700 Subject: [PATCH] User Flashcard --- flashy/flashcards/models.py | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) 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') + -- 1.9.1