feat:iotmessage
This commit is contained in:
@@ -6,21 +6,21 @@
|
||||
|
||||
<!-- 创建物模型消息日志超级表 -->
|
||||
<update id="createSuperTable">
|
||||
CREATE STABLE ${dataBaseName}.${superTableName}(
|
||||
CREATE STABLE thing_model_message_${superTableName}(
|
||||
ts TIMESTAMP,
|
||||
id VARCHAR(255),
|
||||
sys VARCHAR(2048),
|
||||
method VARCHAR(255),
|
||||
params VARCHAR(2048)
|
||||
id NCHAR(64),
|
||||
sys NCHAR(2048),
|
||||
method NCHAR(255),
|
||||
params NCHAR(2048)
|
||||
)TAGS (
|
||||
device_key VARCHAR(255)
|
||||
device_key NCHAR(50)
|
||||
)
|
||||
</update>
|
||||
|
||||
<!-- 创建物模型消息日志子表,带有deviceKey的TAG -->
|
||||
<update id="createTableWithTag">
|
||||
CREATE TABLE IF NOT EXISTS ${dataBaseName}.${tableName}
|
||||
USING ${dataBaseName}.${superTableName}(
|
||||
CREATE STABLE ${tableName}
|
||||
USING thing_model_message_${superTableName}(
|
||||
ts,
|
||||
id ,
|
||||
sys ,
|
||||
|
||||
Reference in New Issue
Block a user