# Path: APITaxi_models2/mixins.py
# class HistoryMixin:
#     added_at = db.Column(db.DateTime)
#     added_via = db.Column(db.Enum('form', 'api', name='sources'), nullable=False)
#     source = db.Column(db.String(255), nullable=False)
#     last_update_at = db.Column(db.DateTime)


from . import db
from .mixins import HistoryMixin


class Taxi(HistoryMixin, db.Model):

    def __repr__(self):
        return '<Taxi %s (vehicle %s, ADS %s, driver %s, added_by %s)>' % (
            self.id,

# Path: APITaxi_models2/mixins.py
# class HistoryMixin:
#     added_at = db.Column(db.DateTime)
#     added_via = db.Column(db.Enum('form', 'api', name='sources'), nullable=False)
#     source = db.Column(db.String(255), nullable=False)
#     last_update_at = db.Column(db.DateTime)


# Path: APITaxi_models2/taxi.py
from . import db
from .mixins import HistoryMixin



class Taxi(HistoryMixin, db.Model):

    def __repr__(self):
        return '<Taxi %s (vehicle %s, ADS %s, driver %s, added_by %s)>' % (
            self.id,

            self.vehicle_id,