ETest-Vue-FastAPI/ruoyi-fastapi-backend/module_admin/system/entity/do/test_item_do.py

27 lines
1.2 KiB
Python
Raw Normal View History

2026-03-30 10:38:36 +08:00
from sqlalchemy import Integer, BigInteger, Column, String, Text
2025-12-19 10:12:59 +08:00
from config.database import Base
class TestItem(Base):
"""
测试单元表
"""
__tablename__ = 'test_item'
id = Column(Integer, primary_key=True, autoincrement=True, nullable=False, comment='ID')
name = Column(String(20), nullable=False, comment='名称')
test_category_id = Column(Integer, nullable=False, comment='测试类别ID')
eut_type_id = Column(Integer, nullable=False, comment='产品类别ID')
2026-03-30 10:38:36 +08:00
condition_form_id = Column(BigInteger, nullable=True, comment='测试条件表单模板ID')
condition_data = Column(Text, nullable=True, comment='测试条件填写数据JSON')
result_form_id = Column(BigInteger, nullable=True, comment='测试结果表单模板ID')
condition_json = Column(Text, nullable=True, comment='测试条件模板JSON')
config_json = Column(Text, nullable=True, comment='测试结果模板JSON')
2025-12-19 10:12:59 +08:00
memo = Column(String(200), nullable=True, comment='备注说明')
update_time = Column(String(20), nullable=True, comment='更新时间')
update_by = Column(String(20), nullable=True, comment='更新者')