added models

This commit is contained in:
Yeqing Zhang
2019-02-12 13:08:04 +08:00
parent 9f84e2fad1
commit 4f2a29bd42
11 changed files with 168 additions and 34 deletions

12
model/spider.py Normal file
View File

@@ -0,0 +1,12 @@
from mongoengine import *
from model.base import BaseModel
class Spider(BaseModel):
_id = ObjectIdField()
spider_name = StringField()
spider_type = IntField()
lang_type = IntField()
execute_cmd = StringField()
file_path = StringField()