mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-24 17:41:03 +01:00
added models
This commit is contained in:
12
model/spider.py
Normal file
12
model/spider.py
Normal 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()
|
||||
Reference in New Issue
Block a user