Commit 45cbba8f authored by Wallen姚文辉's avatar Wallen姚文辉

暂存加审核

parent 7fa61ca1
......@@ -116,6 +116,32 @@ class Uploadecase(db.Model):
case_count=Column(Integer, nullable=False,server_default=text("0"),comment='状态 0-执行中 1-已结束')
create_time=Column(DateTime,nullable=False,comment="创建时间")
class Testreport(db.Model):
__tablename__="test_report"
__table_args__ = {'mysql_engine' : 'InnoDB', 'mysql_charset' : 'utf8mb4'}
id=Column(Integer, primary_key=True,autoincrement=True)
project=Column(String(64), nullable=False,comment='项目名称')
story=Column(String(64), nullable=False,comment='迭代')
save_remark=Column(String(64), nullable=True,comment='保存备注')
create_time=Column(DateTime,nullable=False,comment="创建时间")
create_user=Column(Integer, nullable=False,comment='创建人员id')
update_time=Column(DateTime,nullable=True,comment="更新时间")
audit_time=Column(DateTime,nullable=True,comment="审核时间")
audit_user=Column(Integer, nullable=True,comment='审核人员id')
audit_remark=Column(String(64), nullable=True,comment='审核备注')
type=Column(Integer, nullable=False,server_default=text("0"),comment='存储类型 0-暂存 1-审核')
audit_status=Column(Integer, nullable=False,server_default=text("0"),comment='审核状态 0-待审核 1-审核通过 2-审核驳回')
report_status=Column(Integer, nullable=False,server_default=text("0"),comment='发送状态 0-未发送 1-已发送')
report_data=Column(Text(16777216), nullable=False,comment='报告内容')
class Audituser(db.Model):
__tablename__="audit_user"
__table_args__ = {'mysql_engine' : 'InnoDB', 'mysql_charset' : 'utf8mb4'}
id=Column(Integer, primary_key=True,autoincrement=True)
user_id=Column(Integer, nullable=False,comment='可审核人员id')
if __name__=="__main__":
with server.app.app_context():
db.create_all()
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment