27 lines
1.2 KiB
Python
27 lines
1.2 KiB
Python
from sqlalchemy import Integer, BigInteger, Column, String, Text
|
||
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')
|
||
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(旧)')
|
||
memo = Column(String(200), nullable=True, comment='备注说明')
|
||
update_time = Column(String(20), nullable=True, comment='更新时间')
|
||
update_by = Column(String(20), nullable=True, comment='更新者')
|
||
|
||
|
||
|