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

10
model/node.py Normal file
View File

@@ -0,0 +1,10 @@
from mongoengine import *
from model.base import BaseModel
class Node(BaseModel):
_id = ObjectIdField()
node_ip = StringField()
node_name = StringField()
node_description = StringField()