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))
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()
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)
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)
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())))