old_contents: from datetime import datetime
  from app import db
  
  
  # Define a base model for other database tables to inherit
  class Base(db.Model):
      __abstract__ = True
      id = db.Column(db.Integer, primary_key=True)
      date_created = db.Column(db.DateTime, default=db.func.current_timestamp())
      date_modified = db.Column(db.DateTime, default=db.func.current_timestamp(),
                                onupdate=db.func.current_timestamp())
  
  
  class User(Base):
      __tablename__ = "users"
      id = db.Column('user_id', db.Integer, primary_key=True)
      email = db.Column('email', db.String(50), unique=True, nullable=False)
      password = db.Column('password', db.String(192), nullable=False)
      phone = db.Column('phone', db.String(11))
      registered_on = db.Column('registered_on', db.DateTime)
      first_name = db.Column('first_name', db.String(15))
      last_name = db.Column('last_name', db.String(15))
  
      def __init__(self, email, password, first_name, last_name):
          self.email = email
          self.password = password
          self.registered_on = datetime.utcnow()
          self.first_name = first_name
          self.last_name = last_name
  
      @staticmethod
      def is_authenticated():
          return True
  
      @staticmethod
      def is_active():
          return True
  
      @staticmethod
      def is_anonymous():
          return False
  
      def get_id(self):
          return str(self.id)
  
      def __repr__(self):
          return '<User %r>' % (self.first_name + self.last_name)
  
new_contents: from datetime import datetime
  from app import db
  
  
  # Define a base model for other database tables to inherit
  class Base(db.Model):
      __abstract__ = True
      id = db.Column(db.Integer, primary_key=True)
      date_created = db.Column(db.DateTime, default=db.func.current_timestamp())
      date_modified = db.Column(db.DateTime, default=db.func.current_timestamp(),
                                onupdate=db.func.current_timestamp())
  
  
  class User(Base):
      __tablename__ = "users"
      id = db.Column('id', db.Integer, primary_key=True)
      email = db.Column('email', db.String(50), unique=True, nullable=False)
      password = db.Column('password', db.String(192), nullable=False)
      phone = db.Column('phone', db.String(11))
      first_name = db.Column('first_name', db.String(15))
      last_name = db.Column('last_name', db.String(15))
  
      def __init__(self, email, password, phone, first_name, last_name):
          self.email = email
          self.password = password
          self.phone = phone
          self.first_name = first_name
          self.last_name = last_name
  
      @staticmethod
      def is_authenticated():
          return True
  
      @staticmethod
      def is_active():
          return True
  
      @staticmethod
      def is_anonymous():
          return False
  
      def get_id(self):
          return str(self.id)
  
      def __repr__(self):
          return '<User %r>' % (self.first_name + self.last_name)
  
subject: add initial User class, connects #32