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

9
model/task.py Normal file
View File

@@ -0,0 +1,9 @@
from mongoengine import *
from model.base import BaseModel
class Task(BaseModel):
node_id = ObjectIdField()
spider_id = ObjectIdField()
file_path = StringField()