aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/models.py
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2014-04-12 12:12:52 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2014-04-12 12:12:52 +0200
commita019e8901b30526b9d7a5443c9355fe87ce620bf (patch)
tree3ad3128de9116c7e9ed9a891529c2f6f2e8af8ec /pyaggr3g470r/models.py
parentBetter use of the decorator 'feed_access_required'. (diff)
downloadnewspipe-a019e8901b30526b9d7a5443c9355fe87ce620bf.tar.gz
newspipe-a019e8901b30526b9d7a5443c9355fe87ce620bf.tar.bz2
newspipe-a019e8901b30526b9d7a5443c9355fe87ce620bf.zip
New ForeignKey between Article and User.
Diffstat (limited to 'pyaggr3g470r/models.py')
-rw-r--r--pyaggr3g470r/models.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/pyaggr3g470r/models.py b/pyaggr3g470r/models.py
index da9c2e25..a21cfbfb 100644
--- a/pyaggr3g470r/models.py
+++ b/pyaggr3g470r/models.py
@@ -118,6 +118,7 @@ class Article(db.Model):
date = db.Column(db.DateTime(), default=datetime.now)
retrieved_date = db.Column(db.DateTime(), default=datetime.now)
+ user_id = db.Column(db.Integer, db.ForeignKey('user.id'))
feed_id = db.Column(db.Integer, db.ForeignKey('feed.id'))
def __repr__(self):
bgstack15