Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
H
hengli
Project
Project
Details
Activity
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
deploy
hengli
Commits
de4641a3
Commit
de4641a3
authored
May 11, 2023
by
吴文龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
补充SQL
parent
0ad0621f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
59 additions
and
0 deletions
+59
-0
htwin_dbapi0511.sql
db/updata/htwin_dbapi0511.sql
+59
-0
No files found.
db/updata/htwin_dbapi0511.sql
0 → 100644
View file @
de4641a3
/*
Navicat Premium Data Transfer
Source Server : 121.41.94.47(mysql8)
Source Server Type : MySQL
Source Server Version : 80026
Source Host : 121.41.94.47:33066
Source Schema : htwin_dbapi
Target Server Type : MySQL
Target Server Version : 80026
File Encoding : 65001
Date: 11/05/2023 11:15:39
*/
SET
NAMES
utf8mb4
;
SET
FOREIGN_KEY_CHECKS
=
0
;
-- ----------------------------
-- Table structure for hs_scene_model_parts
-- ----------------------------
DROP
TABLE
IF
EXISTS
`hs_scene_model_parts`
;
CREATE
TABLE
`hs_scene_model_parts`
(
`id`
bigint
unsigned
NOT
NULL
AUTO_INCREMENT
,
`creator`
varchar
(
255
)
DEFAULT
NULL
,
`create_time`
datetime
DEFAULT
NULL
,
`modifier`
varchar
(
255
)
DEFAULT
NULL
,
`update_time`
datetime
DEFAULT
NULL
,
`scene_model_id`
bigint
unsigned
DEFAULT
NULL
,
`parts_name`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'部件名称'
,
`parts_x`
decimal
(
5
,
2
)
DEFAULT
NULL
,
`parts_y`
decimal
(
5
,
2
)
DEFAULT
NULL
,
`parts_z`
decimal
(
5
,
2
)
DEFAULT
NULL
,
`scene_id`
bigint
unsigned
DEFAULT
NULL
,
PRIMARY
KEY
(
`id`
)
USING
BTREE
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
180
DEFAULT
CHARSET
=
utf8mb3
COMMENT
=
'模型部件'
;
-- ----------------------------
-- Table structure for workforce_sta
-- ----------------------------
DROP
TABLE
IF
EXISTS
`workforce_sta`
;
CREATE
TABLE
`workforce_sta`
(
`id`
int
NOT
NULL
AUTO_INCREMENT
,
`did`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'设备id'
,
`workforce`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'当前班次'
,
`statues`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'状态'
,
`times`
int
DEFAULT
NULL
COMMENT
'时长(s)'
,
`numbers`
int
DEFAULT
NULL
COMMENT
'当班累计变化次数'
,
`start_time`
datetime
DEFAULT
NULL
,
`end_time`
datetime
DEFAULT
NULL
,
`device_type`
int
DEFAULT
NULL
COMMENT
'设备类型0-设备 '
,
`ts`
datetime
DEFAULT
NULL
COMMENT
'更新时间'
,
PRIMARY
KEY
(
`id`
)
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
1804
DEFAULT
CHARSET
=
utf8mb3
;
ALTER
TABLE
`hs_scene_model_param`
ADD
parts_id
bigint
(
20
);
SET
FOREIGN_KEY_CHECKS
=
1
;
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