23 lines
783 B
Python
23 lines
783 B
Python
|
|
from sqlalchemy import Integer, Column, String
|
||
|
|
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')
|
||
|
|
config_json = Column(String(200), 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='更新者')
|
||
|
|
|
||
|
|
|
||
|
|
|