Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
test_platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Wallen姚文辉
test_platform
Commits
45cbba8f
Commit
45cbba8f
authored
Jun 26, 2024
by
Wallen姚文辉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
暂存加审核
parent
7fa61ca1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
Model.py
model/Model.py
+26
-0
No files found.
model/Model.py
View file @
45cbba8f
...
@@ -116,6 +116,32 @@ class Uploadecase(db.Model):
...
@@ -116,6 +116,32 @@ class Uploadecase(db.Model):
case_count
=
Column
(
Integer
,
nullable
=
False
,
server_default
=
text
(
"0"
),
comment
=
'状态 0-执行中 1-已结束'
)
case_count
=
Column
(
Integer
,
nullable
=
False
,
server_default
=
text
(
"0"
),
comment
=
'状态 0-执行中 1-已结束'
)
create_time
=
Column
(
DateTime
,
nullable
=
False
,
comment
=
"创建时间"
)
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__"
:
if
__name__
==
"__main__"
:
with
server
.
app
.
app_context
():
with
server
.
app
.
app_context
():
db
.
create_all
()
db
.
create_all
()
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment