# 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


OWNER_TYPES = ('company', 'individual')


class ADS(HistoryMixin, db.Model):

    __table_args__ = (
        db.Index('ads_insee_index', 'insee'),

# 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/ads.py
from . import db
from .mixins import HistoryMixin



OWNER_TYPES = ('company', 'individual')


class ADS(HistoryMixin, db.Model):

    __table_args__ = (
        db.Index('ads_insee_index', 'insee'),

        db.Index('ads_numero_index', 'numero'),