Files
tg_code/job_models/project_ip.py
Administrator 37e9d4038c gfregfregfr
2025-11-12 12:50:39 +08:00

19 lines
734 B
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

from models import db
from peewee import *
class ProjectType(Model):
server_ip = CharField(max_length=255, primary_key=True)
two_server_ip = CharField(max_length=255, )
status = IntegerField(null=True, help_text='是否运行 0没有运行1运行中')
project_id = IntegerField(null=True, help_text='项目1仓鼠2cats')
text = TextField(null=True, help_text='主机注释 不如说:是否能跑任务,设备是否踢完')
num = IntegerField(null=True)
session_start = CharField(max_length=255, null=True)
session_mun = CharField(max_length=255, null=True)
do_project = IntegerField(null=True)
class Meta:
database = db
table_name = 'project_type'