Permalink
Browse files

New tags table

  • Loading branch information...
1 parent 3aa0393 commit f43f735e0180e8ab2017e3047126b56bc3e604ba @baijum committed Feb 4, 2011
Showing with 7 additions and 0 deletions.
  1. +7 −0 py3k/model.py
View
@@ -66,3 +66,10 @@ class Comment(db.Model):
platform = db.Column(db.String(50))
comment = db.Column(db.String(5000))
datetime = db.Column(db.DateTime())
+
+
+class Tag(db.Model):
+ __tablename__ = 'tags'
+ id = db.Column(db.Integer, primary_key=True)
+ distribution_id = db.Column("distribution_id", db.Integer, db.ForeignKey('distributions.id'))
+ name = db.Column(db.String(50))

0 comments on commit f43f735

Please sign in to comment.