示例#1
0
文件: models.py 项目: rfeng-hub/bijia
class Tickets(db.Document):
    meta = {'collection': 'tickets'}
    city = db.StringField()
    url = db.StringField()
    cinema_name = db.StringField()
    address = db.StringField()
    phone = db.StringField()
    name = db.StringField()
    score = db.StringField()
    image = db.StringField()
    date = db.ListField(db.StringField(), default=list)
    plist = db.DictField(
        db.ListField(db.DictField(db.StringField()), default=list))
示例#2
0
class All_Result(db.Document):
    '''
    一次域名扫描后的结果:扫描时间、响应code、域名、任务id、事件列表
    '''
    meta = {'collection': 'all_result'}
    time = db.DateTimeField(default=datetime.now)
    code = db.IntField()
    domain = db.StringField()
    jobid = db.StringField()
    keyword_data = db.ListField()
    jump_url = db.ListField()
    events_list = db.ListField()
    websousec = db.StringField()
    img = db.StringField()
    message = db.StringField()
示例#3
0
class Event_Spider(db.Document):
    '''
    爬虫匹配到的事件数据库:自增长ID、自定义ID、域名、任务ID、命中的规则、来源、首次发现时间、最新发现事件、
                            审核详情、审核状态、快照
    '''
    meta = {'collection': 'sec_event'}
    _id = db.IntField(required=False, primary_key=True)
    id = db.StringField(required=False)
    domain = db.StringField(required=False)
    jobid = db.StringField(required=False)
    event = db.ReferenceField(Rule)
    _from = db.StringField(required=False)
    first_time = db.DateTimeField(default=datetime.now)
    last_time = db.ListField(required=False)
    audit = db.ListField(required=False)
    status = db.StringField(required=False)
    img = db.StringField(required=False)
示例#4
0
class Event_Search_Engine(db.Document):
    '''
    搜索引擎事件数据库:自增长ID、自定义ID、域名、任务ID、命中的规则、来源、首次发现时间、最新发现事件、
                        审核详情、审核状态、快照
    '''
    meta = {'collection': 'sec_event_test'}
    _id = db.IntField(required=False, default='num')
    id = db.StringField(required=False)
    domain = db.StringField(required=False)
    jobid = db.StringField(required=False)
    event = db.StringField(required=False)
    keyword = db.StringField(required=False)
    _from = db.StringField(required=False)
    first_time = db.DateTimeField(default=datetime.now)
    last_time = db.ListField(required=False)
    audit = db.ListField(required=False)
    status = db.StringField(required=False)
    suggestion = db.StringField(required=False)
    img = db.StringField(required=False)
示例#5
0
文件: models.py 项目: rfeng-hub/bijia
class City_Movie(db.Document):
    meta = {'collection': 'city_movies'}
    key = db.StringField()
    cities = db.ListField(db.StringField(), default=list)
    c_m = db.DictField(db.DictField(db.DictField(db.StringField())))