old_contents: from . import db
  from .mixins import HistoryMixin
  
  
  class Customer(HistoryMixin, db.Model):
  
      def __repr__(self):
          return '<Customer %s (added_by id %s)>' % (self.id, self.added_by_id)
  
      id = db.Column(db.String, primary_key=True)
      added_by_id = db.Column('added_by', db.Integer, db.ForeignKey('user.id'), primary_key=True)
      ban_begin = db.Column(db.DateTime)
      ban_end = db.Column(db.DateTime)
      phone_number = db.Column(db.String, nullable=False)
      reprieve_begin = db.Column(db.DateTime)
      reprieve_end = db.Column(db.DateTime)
  
      added_by = db.relationship('User', foreign_keys=[added_by_id], lazy='raise')
  
new_contents: from . import db
  from .mixins import HistoryMixin
  
  
  class Customer(HistoryMixin, db.Model):
  
      def __repr__(self):
          return '<Customer %s (added_by id %s)>' % (self.id, self.added_by_id)
  
      # Customer IDs are unique per moteur
      id = db.Column(db.String, primary_key=True)
      added_by_id = db.Column('added_by', db.Integer, db.ForeignKey('user.id'), primary_key=True)
  
      ban_begin = db.Column(db.DateTime)
      ban_end = db.Column(db.DateTime)
      phone_number = db.Column(db.String, nullable=False)
      reprieve_begin = db.Column(db.DateTime)
      reprieve_end = db.Column(db.DateTime)
  
      added_by = db.relationship('User', foreign_keys=[added_by_id], lazy='raise')
  
subject: comment so I don't get bitten again