From 545e5e205a197d5252945e65b02d1c0dd6f09ddf Mon Sep 17 00:00:00 2001 From: crunk Date: Sun, 21 Apr 2024 20:47:33 +0200 Subject: [PATCH] delete moved files --- verse/distribusimodel.py | 23 ----------------------- verse/usermodel.py | 22 ---------------------- 2 files changed, 45 deletions(-) delete mode 100644 verse/distribusimodel.py delete mode 100644 verse/usermodel.py diff --git a/verse/distribusimodel.py b/verse/distribusimodel.py deleted file mode 100644 index 6e1b5c0..0000000 --- a/verse/distribusimodel.py +++ /dev/null @@ -1,23 +0,0 @@ -from app import db - - -class Distribusis(db.Model): - """distribusi model class for a single distribusi in distribusi-verse""" - - __tablename__ = "distribusis" - - id = db.Column(db.Integer, primary_key=True) - distribusiname = db.Column(db.String(300), nullable=False, unique=True) - userid = db.Column(db.Integer, db.ForeignKey("users.id")) - term = db.Column(db.String(5), nullable=False, unique=False) - course = 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) - tags = db.Column(db.String(500), nullable=True, unique=False) - publictheme = db.Column(db.String(300), unique=True, nullable=True) - - visible = db.Column(db.Boolean, default=False) - - def __repr__(self): - return "" % self.distribusiname diff --git a/verse/usermodel.py b/verse/usermodel.py deleted file mode 100644 index 333d3e5..0000000 --- a/verse/usermodel.py +++ /dev/null @@ -1,22 +0,0 @@ -from app import db -from flask_login import UserMixin - - -class User(UserMixin, db.Model): - """User model class for a user in distribusi-verse""" - - __tablename__ = "users" - - id = db.Column(db.Integer, primary_key=True) - username = db.Column(db.String(150), unique=True, nullable=False) - email = db.Column(db.String(150), unique=True, nullable=False) - password = db.Column(db.String(300), nullable=False, unique=False) - currentdistribusi = db.Column(db.String(300), nullable=True, unique=False) - resethash = db.Column(db.String(300), nullable=True, unique=True) - resettime = db.Column(db.DateTime) - #active = db.Column(db.Boolean, default=False) - tutor = db.Column(db.Boolean, default=False) - admin = db.Column(db.Boolean, default=False) - - def __repr__(self): - return "" % self.email