V1.0.0.7 - 2025/12/22
* Database improved all
This commit is contained in:
@@ -13,6 +13,7 @@ drop table if exists TModuleValue;
|
||||
create table TModuleValue
|
||||
(
|
||||
create_date timestamp not null ,
|
||||
log_type integer not null ,
|
||||
module_no smallint not null ,
|
||||
model_name varchar(32) null ,
|
||||
module_sn varchar(32) null ,
|
||||
@@ -56,3 +57,32 @@ create table TModuleValue
|
||||
);
|
||||
|
||||
create index ModuleValue_data_idx1 on TModuleValue (create_date);
|
||||
|
||||
/*
|
||||
* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
* Table Name : TAlarmHistory
|
||||
* Description : Battery System Alarm History Table
|
||||
* createAt : 2022.10.25
|
||||
* createBy : JK.Woo
|
||||
* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
*/
|
||||
drop table if exists TAlarmHistory;
|
||||
create table TAlarmHistory
|
||||
(
|
||||
id integer primary key autoincrement, -- ¡Ú Ãæµ¹ ¹æÁö¸¦ À§ÇÑ surrogate key
|
||||
create_date timestamp not null,
|
||||
alarm_code integer null,
|
||||
alarm_status integer null,
|
||||
alarm_cname varchar(32) null,
|
||||
alarm_sname varchar(32) null,
|
||||
module_no integer null,
|
||||
ct_no integer null,
|
||||
alarm_param_1 numeric null,
|
||||
alarm_param_2 numeric null,
|
||||
alarm_param_3 numeric null,
|
||||
alarm_param_4 numeric null,
|
||||
remark varchar(32) null
|
||||
);
|
||||
create unique index IF NOT EXISTS uq_TAlarmHistory_ck on TAlarmHistory (create_date, alarm_code, alarm_status);
|
||||
create index IF NOT EXISTS idx_TAlarmHistory_date on TAlarmHistory (create_date);
|
||||
create index IF NOT EXISTS idx_TAlarmHistory_mod on TAlarmHistory (module_no, create_date);
|
||||
|
||||
Reference in New Issue
Block a user