Exemplo n.º 1
0
class Operation(db.Document):
    """
    获取用户页面停留等行为
    """
    user_name = db.StringField()
    user_ip = db.StringField()
    country = db.StringField()
    stay_time = db.IntField(default=0)
    router = db.StringField()
    create_time = db.IntField()
Exemplo n.º 2
0
class OauthActivity(db.Document):
    """
    记录不同平台不同来源的活动
    """
    name = db.StringField()
    fname = db.StringField()
    grade = db.IntField(choice=gradeChoice)
    phone = db.StringField()
    equipments = db.ListField(db.StringField(max_length=50))
    sex = db.IntField(choice=sexChoice)
    city = db.StringField()
    create_time = db.IntField()
    source = db.StringField()
    type = db.StringField()
    ip_city = db.StringField()
Exemplo n.º 3
0
class Activity(db.Document):
    """
    9.20 作业帮活动
    """
    sexChoice = ((0, '女'),
                 (1, '男'))
    gradeChoice = (1, 2, 3, 4, 5, 6)

    name = db.StringField()
    fname = db.StringField()
    grade = db.IntField(choice=gradeChoice)
    phone = db.StringField()
    equipments = db.ListField(db.StringField(max_length=50))
    sex = db.IntField(choice=sexChoice)
    city = db.StringField()
    create_time = db.IntField()
    source = db.StringField()
Exemplo n.º 4
0
class File(db.Document):
    """
    文件
    """
    filename = db.StringField()
    size = db.IntField()
    content = db.BinaryField()
    md5 = db.StringField()
    time = db.DateTimeField()
    mime = db.StringField()
Exemplo n.º 5
0
class Day(db.Document):
    """
    优秀作品
    """
    name = db.StringField()
    homeWork = db.StringField()
    imgfile = db.StringField()
    text = db.StringField()
    comments = db.StringField()
    kadaUrl = db.StringField()
    title = db.StringField()
    videofile = db.StringField()
    create_time = db.IntField()
Exemplo n.º 6
0
class Demo(db.Document):
    """
    demo
    """
    name = db.StringField()
    both = db.IntField()