# Path: repocribro/database.py



import flask_sqlalchemy
import sqlalchemy
import flask_login
import datetime
import fnmatch
import re
        import uuid
        import hashlib
from .database import db
        return self.visibility_type == self.VISIBILITY_PUBLIC

    @property
    def is_private(self):
        """Check if repository is private within app"""
        return self.visibility_type == self.VISIBILITY_PRIVATE

    @property
    def is_hidden(self):
        """Check if repository is hidden within app"""
        return self.visibility_type == self.VISIBILITY_HIDDEN

    def events_updated(self):
        """Set that now was performed last events update of repo

        .. todo:: How about some past events before adding to app?
        """
        self.last_event = datetime.datetime.now()

    def __repr__(self):
        """Standard string representation of DB object

        :return: Unique string representation
        :rtype: str
        """
        return '<GH Repository {}, {} (#{})>'.format(
            self.full_name, self.github_id, self.id
        )



# Path: repocribro/database.py



# Path: repocribro/models.py
import flask_sqlalchemy
import sqlalchemy
import flask_login
import datetime
import fnmatch
import re
        import uuid
        import hashlib
from .database import db

        return self.visibility_type == self.VISIBILITY_PUBLIC

    @property
    def is_private(self):
        """Check if repository is private within app"""
        return self.visibility_type == self.VISIBILITY_PRIVATE

    @property
    def is_hidden(self):
        """Check if repository is hidden within app"""
        return self.visibility_type == self.VISIBILITY_HIDDEN

    def events_updated(self):
        """Set that now was performed last events update of repo

        .. todo:: How about some past events before adding to app?
        """
        self.last_event = datetime.datetime.now()

    def __repr__(self):
        """Standard string representation of DB object

        :return: Unique string representation
        :rtype: str
        """
        return '<GH Repository {}, {} (#{})>'.format(
            self.full_name, self.github_id, self.id
        )



class Push(db.Model, SearchableMixin, SerializableMixin):