-
Notifications
You must be signed in to change notification settings - Fork 7
/
mongo_modules.py
28 lines (26 loc) · 918 Bytes
/
mongo_modules.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# =============================================================================
# FileName: mongo_modules.py
# Desc: 2015-15/1/5:下午2:10
# Author: 苦咖啡
# Email: [email protected]
# HomePage: http://blog.kukafei520.net
# History:
# =============================================================================
from mongoengine import *
from datetime import datetime
class mongo_swan(Document):
project_name = StringField(max_length=50, required=True)
swan_name = StringField()
project_id = IntField()
choose = IntField()
salt_sls = StringField()
config_name = StringField()
check_port_status = BooleanField()
check_port = StringField()
bat_push = BooleanField()
script = StringField()
tgt = StringField()
argall_str = StringField()
datetime = DateTimeField(default=datetime.now())