Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
MyEMS
MyEMS能源管理系统
提交
313d6e2c
M
MyEMS能源管理系统
项目概览
MyEMS
/
MyEMS能源管理系统
通知
46
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
MyEMS能源管理系统
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
313d6e2c
编写于
5月 21, 2023
作者:
nengyuangzhang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
added microgrid tables to myems_system_db in database
上级
cbefe309
变更
10
隐藏空白更改
内联
并排
Showing
10 changed file
with
183 addition
and
8 deletion
+183
-8
LICENSE
LICENSE
+1
-1
database/install/myems_system_db.sql
database/install/myems_system_db.sql
+78
-0
database/upgrade/upgrade3.4.0RC.sql
database/upgrade/upgrade3.4.0RC.sql
+87
-0
myems-admin/LICENSE
myems-admin/LICENSE
+1
-1
myems-aggregation/LICENSE
myems-aggregation/LICENSE
+1
-1
myems-api/LICENSE
myems-api/LICENSE
+3
-1
myems-cleaning/LICENSE
myems-cleaning/LICENSE
+3
-1
myems-modbus-tcp/LICENSE
myems-modbus-tcp/LICENSE
+3
-1
myems-normalization/LICENSE
myems-normalization/LICENSE
+3
-1
myems-web/LICENSE
myems-web/LICENSE
+3
-1
未找到文件。
LICENSE
浏览文件 @
313d6e2c
MIT License
Copyright (c) 202
2
MyEMS
Copyright (c) 202
3
MyEMS
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
...
...
database/install/myems_system_db.sql
浏览文件 @
313d6e2c
...
...
@@ -553,6 +553,84 @@ CREATE TABLE IF NOT EXISTS `myems_system_db`.`tbl_meters_points` (
PRIMARY
KEY
(
`id`
));
CREATE
INDEX
`tbl_meters_points_index_1`
ON
`myems_system_db`
.
`tbl_meters_points`
(
`meter_id`
);
-- ---------------------------------------------------------------------------------------------------------------------
-- Table `myems_system_db`.`tbl_microgrids`
-- ---------------------------------------------------------------------------------------------------------------------
DROP
TABLE
IF
EXISTS
`myems_system_db`
.
`tbl_microgrids`
;
CREATE
TABLE
IF
NOT
EXISTS
`myems_system_db`
.
`tbl_microgrids`
(
`id`
BIGINT
NOT
NULL
AUTO_INCREMENT
,
`name`
VARCHAR
(
255
)
NOT
NULL
,
`uuid`
CHAR
(
36
)
NOT
NULL
,
`address`
VARCHAR
(
255
)
NOT
NULL
,
`latitude`
DECIMAL
(
9
,
6
)
NOT
NULL
,
`longitude`
DECIMAL
(
9
,
6
)
NOT
NULL
,
`installed_capacity`
DECIMAL
(
18
,
3
)
NOT
NULL
,
`microgrid_type_id`
BIGINT
NOT
NULL
,
`microgrid_owner_type_id`
BIGINT
NOT
NULL
,
`is_input_counted`
BOOL
NOT
NULL
,
`is_output_counted`
BOOL
NOT
NULL
,
`contact_id`
BIGINT
NOT
NULL
,
`cost_center_id`
BIGINT
NOT
NULL
,
`description`
VARCHAR
(
255
),
PRIMARY
KEY
(
`id`
));
CREATE
INDEX
`tbl_microgrids_index_1`
ON
`myems_system_db`
.
`tbl_microgrids`
(
`name`
);
-- ---------------------------------------------------------------------------------------------------------------------
-- Table `myems_system_db`.`tbl_microgrid_types`
-- ---------------------------------------------------------------------------------------------------------------------
DROP
TABLE
IF
EXISTS
`myems_system_db`
.
`tbl_microgrid_types`
;
CREATE
TABLE
IF
NOT
EXISTS
`myems_system_db`
.
`tbl_microgrid_types`
(
`id`
BIGINT
NOT
NULL
AUTO_INCREMENT
,
`name`
VARCHAR
(
255
)
NOT
NULL
,
`uuid`
CHAR
(
36
)
NOT
NULL
,
`description`
VARCHAR
(
255
)
NOT
NULL
,
`simplified_code`
VARCHAR
(
255
)
NOT
NULL
,
PRIMARY
KEY
(
`id`
));
CREATE
INDEX
`tbl_microgrid_types_index_1`
ON
`myems_system_db`
.
`tbl_microgrid_types`
(
`name`
);
-- ---------------------------------------------------------------------------------------------------------------------
-- Default data for table `myems_system_db`.`tbl_microgrid_types`
-- ---------------------------------------------------------------------------------------------------------------------
INSERT
INTO
`myems_system_db`
.
`tbl_microgrid_types`
(
`id`
,
`name`
,
`uuid`
,
`description`
,
`simplified_code`
)
VALUES
(
1
,
'Battery+PV+Load+Grid'
,
'0683741e-df76-4b43-b0c3-4851d20767ca'
,
'Battery+PV+Load+Grid'
,
'BPLG'
),
(
2
,
'Battery+Load+Grid'
,
'b8f0bc44-f9f8-4dfd-9b08-271ee1627a46'
,
'Battery+Load+Grid'
,
'BLG'
),
(
3
,
'PV+Load+Grid'
,
'd067d432-bc04-4184-81a1-df3fb2f30480'
,
'PV+Load+Grid'
,
'PLG'
);
-- ---------------------------------------------------------------------------------------------------------------------
-- Table `myems_system_db`.`tbl_microgrid_owner_types`
-- ---------------------------------------------------------------------------------------------------------------------
DROP
TABLE
IF
EXISTS
`myems_system_db`
.
`tbl_microgrid_owner_types`
;
CREATE
TABLE
IF
NOT
EXISTS
`myems_system_db`
.
`tbl_microgrid_owner_types`
(
`id`
BIGINT
NOT
NULL
AUTO_INCREMENT
,
`name`
VARCHAR
(
255
)
NOT
NULL
,
`uuid`
CHAR
(
36
)
NOT
NULL
,
`description`
VARCHAR
(
255
)
NOT
NULL
,
`simplified_code`
VARCHAR
(
255
)
NOT
NULL
,
PRIMARY
KEY
(
`id`
));
CREATE
INDEX
`tbl_microgrid_owner_types_index_1`
ON
`myems_system_db`
.
`tbl_microgrid_owner_types`
(
`name`
);
-- ---------------------------------------------------------------------------------------------------------------------
-- Default data for table `myems_system_db`.`tbl_microgrid_owner_types`
-- ---------------------------------------------------------------------------------------------------------------------
INSERT
INTO
`myems_system_db`
.
`tbl_microgrid_owner_types`
(
`id`
,
`name`
,
`uuid`
,
`description`
,
`simplified_code`
)
VALUES
(
1
,
'Residential'
,
'b0b5334a-99a6-4a34-b99f-7c6c6f423c47'
,
'Residential'
,
'RES'
),
(
2
,
'Commerical'
,
'0017276e-8541-48fc-ae0a-b04d6c31db2d'
,
'Commerical'
,
'COM'
),
(
3
,
'Industrial'
,
'e99fceda-1b34-4b6a-8bd2-c8532c835322'
,
'Industry'
,
'IND'
);
-- ---------------------------------------------------------------------------------------------------------------------
-- Table `myems_system_db`.`tbl_offline_meters`
-- ---------------------------------------------------------------------------------------------------------------------
...
...
database/upgrade/upgrade3.4.0RC.sql
0 → 100644
浏览文件 @
313d6e2c
-- ---------------------------------------------------------------------------------------------------------------------
-- WARNING: BACKUP YOUR DATABASE BEFORE UPGRADING
-- THIS SCRIPT IS ONLY FOR UPGRADING 3.3.0 TO 3.4.0RC
-- THE CURRENT VERSION CAN BE FOUND AT `myems_system_db`.`tbl_versions`
-- ---------------------------------------------------------------------------------------------------------------------
START
TRANSACTION
;
-- ---------------------------------------------------------------------------------------------------------------------
-- Table `myems_system_db`.`tbl_microgrids`
-- ---------------------------------------------------------------------------------------------------------------------
DROP
TABLE
IF
EXISTS
`myems_system_db`
.
`tbl_microgrids`
;
CREATE
TABLE
IF
NOT
EXISTS
`myems_system_db`
.
`tbl_microgrids`
(
`id`
BIGINT
NOT
NULL
AUTO_INCREMENT
,
`name`
VARCHAR
(
255
)
NOT
NULL
,
`uuid`
CHAR
(
36
)
NOT
NULL
,
`address`
VARCHAR
(
255
)
NOT
NULL
,
`latitude`
DECIMAL
(
9
,
6
)
NOT
NULL
,
`longitude`
DECIMAL
(
9
,
6
)
NOT
NULL
,
`installed_capacity`
DECIMAL
(
18
,
3
)
NOT
NULL
,
`microgrid_type_id`
BIGINT
NOT
NULL
,
`microgrid_owner_type_id`
BIGINT
NOT
NULL
,
`is_input_counted`
BOOL
NOT
NULL
,
`is_output_counted`
BOOL
NOT
NULL
,
`contact_id`
BIGINT
NOT
NULL
,
`cost_center_id`
BIGINT
NOT
NULL
,
`description`
VARCHAR
(
255
),
PRIMARY
KEY
(
`id`
));
CREATE
INDEX
`tbl_microgrids_index_1`
ON
`myems_system_db`
.
`tbl_microgrids`
(
`name`
);
-- ---------------------------------------------------------------------------------------------------------------------
-- Table `myems_system_db`.`tbl_microgrid_types`
-- ---------------------------------------------------------------------------------------------------------------------
DROP
TABLE
IF
EXISTS
`myems_system_db`
.
`tbl_microgrid_types`
;
CREATE
TABLE
IF
NOT
EXISTS
`myems_system_db`
.
`tbl_microgrid_types`
(
`id`
BIGINT
NOT
NULL
AUTO_INCREMENT
,
`name`
VARCHAR
(
255
)
NOT
NULL
,
`uuid`
CHAR
(
36
)
NOT
NULL
,
`description`
VARCHAR
(
255
)
NOT
NULL
,
`simplified_code`
VARCHAR
(
255
)
NOT
NULL
,
PRIMARY
KEY
(
`id`
));
CREATE
INDEX
`tbl_microgrid_types_index_1`
ON
`myems_system_db`
.
`tbl_microgrid_types`
(
`name`
);
-- ---------------------------------------------------------------------------------------------------------------------
-- Default data for table `myems_system_db`.`tbl_microgrid_types`
-- ---------------------------------------------------------------------------------------------------------------------
INSERT
INTO
`myems_system_db`
.
`tbl_microgrid_types`
(
`id`
,
`name`
,
`uuid`
,
`description`
,
`simplified_code`
)
VALUES
(
1
,
'Battery+PV+Load+Grid'
,
'0683741e-df76-4b43-b0c3-4851d20767ca'
,
'Battery+PV+Load+Grid'
,
'BPLG'
),
(
2
,
'Battery+Load+Grid'
,
'b8f0bc44-f9f8-4dfd-9b08-271ee1627a46'
,
'Battery+Load+Grid'
,
'BLG'
),
(
3
,
'PV+Load+Grid'
,
'd067d432-bc04-4184-81a1-df3fb2f30480'
,
'PV+Load+Grid'
,
'PLG'
);
-- ---------------------------------------------------------------------------------------------------------------------
-- Table `myems_system_db`.`tbl_microgrid_owner_types`
-- ---------------------------------------------------------------------------------------------------------------------
DROP
TABLE
IF
EXISTS
`myems_system_db`
.
`tbl_microgrid_owner_types`
;
CREATE
TABLE
IF
NOT
EXISTS
`myems_system_db`
.
`tbl_microgrid_owner_types`
(
`id`
BIGINT
NOT
NULL
AUTO_INCREMENT
,
`name`
VARCHAR
(
255
)
NOT
NULL
,
`uuid`
CHAR
(
36
)
NOT
NULL
,
`description`
VARCHAR
(
255
)
NOT
NULL
,
`simplified_code`
VARCHAR
(
255
)
NOT
NULL
,
PRIMARY
KEY
(
`id`
));
CREATE
INDEX
`tbl_microgrid_owner_types_index_1`
ON
`myems_system_db`
.
`tbl_microgrid_owner_types`
(
`name`
);
-- ---------------------------------------------------------------------------------------------------------------------
-- Default data for table `myems_system_db`.`tbl_microgrid_owner_types`
-- ---------------------------------------------------------------------------------------------------------------------
INSERT
INTO
`myems_system_db`
.
`tbl_microgrid_owner_types`
(
`id`
,
`name`
,
`uuid`
,
`description`
,
`simplified_code`
)
VALUES
(
1
,
'Residential'
,
'b0b5334a-99a6-4a34-b99f-7c6c6f423c47'
,
'Residential'
,
'RES'
),
(
2
,
'Commerical'
,
'0017276e-8541-48fc-ae0a-b04d6c31db2d'
,
'Commerical'
,
'COM'
),
(
3
,
'Industrial'
,
'e99fceda-1b34-4b6a-8bd2-c8532c835322'
,
'Industry'
,
'IND'
);
-- UPDATE VERSION NUMBER
UPDATE
`myems_system_db`
.
`tbl_versions`
SET
version
=
'3.4.0RC'
,
release_date
=
'2023-06-16'
WHERE
id
=
1
;
COMMIT
;
\ No newline at end of file
myems-admin/LICENSE
浏览文件 @
313d6e2c
MIT License
Copyright (c) 202
2
MyEMS
Copyright (c) 202
3
MyEMS
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
...
...
myems-aggregation/LICENSE
浏览文件 @
313d6e2c
MIT License
Copyright (c) 202
2
MyEMS
Copyright (c) 202
3
MyEMS
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
...
...
myems-api/LICENSE
浏览文件 @
313d6e2c
MIT License
Copyright (c) 202
2
MyEMS
Copyright (c) 202
3
MyEMS
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
...
...
@@ -12,6 +12,8 @@ furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
"MyEMS" ON ALL PAGES OF WEB UI AND ADMIN UI SHALL NOT BE REMOVED.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
...
...
myems-cleaning/LICENSE
浏览文件 @
313d6e2c
MIT License
Copyright (c) 202
2
MyEMS
Copyright (c) 202
3
MyEMS
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
...
...
@@ -12,6 +12,8 @@ furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
"MyEMS" ON ALL PAGES OF WEB UI AND ADMIN UI SHALL NOT BE REMOVED.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
...
...
myems-modbus-tcp/LICENSE
浏览文件 @
313d6e2c
MIT License
Copyright (c) 202
2
MyEMS
Copyright (c) 202
3
MyEMS
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
...
...
@@ -12,6 +12,8 @@ furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
"MyEMS" ON ALL PAGES OF WEB UI AND ADMIN UI SHALL NOT BE REMOVED.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
...
...
myems-normalization/LICENSE
浏览文件 @
313d6e2c
MIT License
Copyright (c) 202
2
MyEMS
Copyright (c) 202
3
MyEMS
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
...
...
@@ -12,6 +12,8 @@ furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
"MyEMS" ON ALL PAGES OF WEB UI AND ADMIN UI SHALL NOT BE REMOVED.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
...
...
myems-web/LICENSE
浏览文件 @
313d6e2c
MIT License
Copyright (c) 202
2
MyEMS
Copyright (c) 202
3
MyEMS
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
...
...
@@ -12,6 +12,8 @@ furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
"MyEMS" ON ALL PAGES OF WEB UI AND ADMIN UI SHALL NOT BE REMOVED.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录