You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
1.3 KiB

#!/usr/bin/env python
# -*- encoding: utf-8 -*-
'''
@Date:2022/07/13 14:55:55
'''
# 已同步本地数据库
from sqlalchemy import Column, String, Integer, Text
from sqlalchemy.ext.declarative import declarative_base
class EntityWarning(declarative_base()):
__tablename__ = "rms_warning"
__table_args__ = (
{
"comment": "预警信息实体类"
}
)
warning_id = Column(String(50), primary_key=True, comment="预警ID")
customer_id = Column(String(50), comment="客户ID")
object_type = Column(String(50), comment="预警对象类型")
object_id = Column(String(50), comment="预警对象")
object_name = Column(String(50), comment="对象名称")
warning_content = Column(String(50), comment="预警内容")
warning_date = Column(String(50), comment="预警日期")
warning_user_id = Column(String(50), comment="预警用户ID")
warning_user_name = Column(String(50), comment="预警用户名")
is_solve = Column(Integer, comment="是否解决")
solve_user_id = Column(String(50), comment="解决用户ID")
solve_user_name = Column(String(50), comment="解决用户名")
solve_date = Column(String(50), comment="解决日期")
solve_content = Column(Text, comment="解决内容")
is_add = Column(Integer, comment="")