import datetime

from lib.model.database.Database import Database

from sqlalchemy import Column, Integer, String, Date, DateTime, ForeignKey

Base = Database.get_declarative_base()


class AntiEmulator(Base):
    __tablename__ = 'anti_emulator'

    id = Column(Integer, primary_key=True)
    property = Column(String)
    real_value = Column(String)
    return_value = Column(String)
    date = Column(DateTime, default=datetime.datetime.utcnow)
    application_id = Column(Integer, ForeignKey('application.id'))

    def __init__(self, property, real_value, return_value):
        self.property = property
        self.real_value = real_value
        self.return_value = return_value


    def __repr__(self):
        return f'<AntiEmulator(id={self.id},property="{self.property}",real_value="{self.real_value}",return_value="{self.return_value}",date="{self.date}")>'

import datetime

from lib.model.database.Database import Database

from sqlalchemy import Column, Integer, String, Date, DateTime, ForeignKey

Base = Database.get_declarative_base()


class AntiEmulator(Base):
    __tablename__ = 'anti_emulator'

    id = Column(Integer, primary_key=True)
    property = Column(String)
    real_value = Column(String)
    return_value = Column(String)
    date = Column(DateTime, default=datetime.datetime.utcnow)
    application_id = Column(Integer, ForeignKey('application.id'))

    def __init__(self, property, real_value, return_value):
        self.property = property
        self.real_value = real_value
        self.return_value = return_value


    def __repr__(self):
        return f'<AntiEmulator(id={self.id},property="{self.property}",real_value="{self.real_value}",return_value="{self.return_value}",date="{self.date}")>'
