|
@ -9,14 +9,10 @@ class Distribusis(db.Model): |
|
|
id = db.Column(db.Integer, primary_key=True) |
|
|
id = db.Column(db.Integer, primary_key=True) |
|
|
distribusiname = db.Column(db.String(300), nullable=False, unique=True) |
|
|
distribusiname = db.Column(db.String(300), nullable=False, unique=True) |
|
|
userid = db.Column(db.Integer, db.ForeignKey("users.id")) |
|
|
userid = db.Column(db.Integer, db.ForeignKey("users.id")) |
|
|
term = db.Column(db.String(5), nullable=False, unique=False) |
|
|
|
|
|
category = db.Column(db.String(500), nullable=True, unique=False) |
|
|
category = db.Column(db.String(500), nullable=True, unique=False) |
|
|
|
|
|
|
|
|
# Academic year eg:2020-2021, so no need for a Datetime object |
|
|
|
|
|
year = db.Column(db.String(9), nullable=True, unique=False) |
|
|
year = db.Column(db.String(9), nullable=True, unique=False) |
|
|
tags = db.Column(db.String(500), nullable=True, unique=False) |
|
|
tags = db.Column(db.String(500), nullable=True, unique=False) |
|
|
publictheme = db.Column(db.String(300), unique=True, nullable=True) |
|
|
publictheme = db.Column(db.String(300), unique=True, nullable=True) |
|
|
|
|
|
|
|
|
visible = db.Column(db.Boolean, default=False) |
|
|
visible = db.Column(db.Boolean, default=False) |
|
|
|
|
|
|
|
|
def __repr__(self): |
|
|
def __repr__(self): |
|
|