class SplitHistoryBase4(BaseHistory):
    """
    A history log for the fourth segment of the cookie
    """
    visitor_id = db.Column(db.Integer, db.ForeignKey('splitTrackableUUID4.id'), nullable=False)
    visitor = db.relationship(SplitTrackableUUID4)

    def __repr__(self):
        return '<SplitHistoryBase4 id=%r, site=%r, visitor=%r>' % (self.id, self.site, self.visitor)
Beispiel #2
0
class FirstPartyHistory(BaseHistory):
    """
    History log table that creates logs of the visited sites for each user identifier (model above)
    """
    visitor_id = db.Column(db.Integer, db.ForeignKey('firstpartyUUID.id'), nullable=False)
    visitor = db.relationship(FirstPartyUUID)

    def __repr__(self):
        return '<FirstPartyHistory id=%r, site=%r, visitor=%r>' % (self.id, self.site, self.visitor)
class JoinedHistory(BaseHistory):
    """
    A history log for the joined segments of the cookie (the user in the model above) which tracks the recently visited
    sites.
    """
    visitor_id = db.Column(db.Integer, db.ForeignKey('joinedTrackableUUID.id'), nullable=False)
    visitor = db.relationship(JoinedTrackableUUID)

    def __repr__(self):
        return '<JoinedHistory id=%r, site=%r, visitor=%r>' % (self.id, self.site, self.visitor)
Beispiel #4
0
class FirstPartyClickHistory(BaseHistory):
    """
    For the malicious first party sites, this creates a log of the recently clicked external sites for each
    user identifier
    """
    visitor_id = db.Column(db.Integer, db.ForeignKey('firstpartyUUID.id'), nullable=False)
    visitor = db.relationship(FirstPartyUUID)

    def __repr__(self):
        return '<FirstPartyClickHistory id=%r, site=%r, visitor=%r>' % (self.id, self.site, self.visitor)