Initial commit
This commit is contained in:
12
Models/Tag.py
Normal file
12
Models/Tag.py
Normal file
@@ -0,0 +1,12 @@
|
||||
from app import db, ma
|
||||
|
||||
class Tag(db.Model):
|
||||
__tablename__ = "tags"
|
||||
id = db.Column(db.Integer, primary_key=True)
|
||||
name = db.Column(db.String(50))
|
||||
|
||||
|
||||
def __repr__(self):
|
||||
return '<Tag %s>' % self.name
|
||||
|
||||
|
Reference in New Issue
Block a user