Beispiel #1
0
class User(db.Document, UserMixin):
    email = db.StringField(max_length=255)
    password = db.StringField(max_length=255)
    active = db.BooleanField(default=True)
    fs_uniquifier = db.StringField(max_length=255)
    confirmed_at = db.DateTimeField()
    roles = db.ListField(db.ReferenceField(Role), default=[])
Beispiel #2
0
class Classifier(db.EmbeddedDocument):
    development_status = db.StringField()
    programming_language = db.StringField()
    topic = db.StringField()
    framework = db.StringField()
    license = db.StringField()
    operating_system = db.StringField()
    environment = db.StringField()
    intended_audience = db.StringField()
    natural_language = db.StringField()
    typing = db.StringField()
Beispiel #3
0
class Project(db.Document):
    meta = {'collection': 'flask_packages'}
    name = db.StringField(unique=True, null=False)
    description = db.StringField()
    lastest_version = db.StringField()
    maintainer = db.StringField()
    homepage = db.StringField()
    pypi_link = db.StringField(unique=True)

    versions = db.ListField(db.EmbeddedDocumentField(Version))
    github_stats = db.EmbeddedDocumentField(GithubStats)
    tags = db.ListField(db.StringField())
    classifiers = db.EmbeddedDocumentField(Classifier)

    released = db.DateTimeField()
    license = db.StringField()
Beispiel #4
0
class Role(db.Document, RoleMixin):
    name = db.StringField(max_length=80, unique=True)
    description = db.StringField(max_length=255)
Beispiel #5
0
class Version(db.EmbeddedDocument):
    version = db.StringField()
    date = db.DateTimeField()
    link = db.StringField()
    sha256 = db.StringField()