feat:iotmessage

This commit is contained in:
alwayssuper
2024-12-30 22:46:24 +08:00
parent 24a660b5c2
commit c4c63a8fd6
5 changed files with 26 additions and 30 deletions

View File

@@ -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 ,