1 Star 0 Fork 7

梁擎宇/life

forked from China-1977/life 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
firefighting.sql 1.88 KB
一键复制 编辑 原始数据 按行查看 历史
wangchangkang 提交于 2024-10-30 10:37 . .
CREATE TABLE IF NOT EXISTS water_box
(
ID VARCHAR(36) PRIMARY KEY DEFAULT gen_random_uuid()::text,
MERCHANT_ID VARCHAR(36) NOT NULL,
compose VARCHAR(255) NOT NULL,
imei VARCHAR(128) NOT NULL,
title VARCHAR(255) NOT NULL,
current_level NUMERIC(20, 2) NOT NULL,
upper_level NUMERIC(20, 2) NOT NULL,
lower_level NUMERIC(20, 2) NOT NULL,
collect_datetime TIMESTAMP(0)
);
COMMENT ON TABLE water_box IS '水箱';
COMMENT ON COLUMN water_box.merchant_id IS '主体ID';
COMMENT ON COLUMN water_box.compose IS '设备组';
COMMENT ON COLUMN water_box.imei IS '编号';
COMMENT ON COLUMN water_box.title IS '名称';
COMMENT ON COLUMN water_box.current_level IS '当前水位';
COMMENT ON COLUMN water_box.upper_level IS '水位上限';
COMMENT ON COLUMN water_box.lower_level IS '水位下限';
COMMENT ON COLUMN water_box.collect_datetime IS '采集时间';
CREATE TABLE IF NOT EXISTS pressure_pump
(
ID VARCHAR(36) PRIMARY KEY DEFAULT gen_random_uuid()::text,
MERCHANT_ID VARCHAR(36) NOT NULL,
compose VARCHAR(255) NOT NULL,
imei VARCHAR(128) NOT NULL,
title VARCHAR(255) NOT NULL,
current_level NUMERIC(20, 2) NOT NULL,
upper_level NUMERIC(20, 2) NOT NULL,
lower_level NUMERIC(20, 2) NOT NULL,
collect_datetime TIMESTAMP(0)
);
COMMENT ON TABLE pressure_pump IS '稳压泵';
COMMENT ON COLUMN water_box.merchant_id IS '主体ID';
COMMENT ON COLUMN water_box.compose IS '设备组';
COMMENT ON COLUMN water_box.imei IS '编号';
COMMENT ON COLUMN water_box.title IS '名称';
COMMENT ON COLUMN water_box.current_level IS '当前水位';
COMMENT ON COLUMN water_box.upper_level IS '上限';
COMMENT ON COLUMN water_box.lower_level IS '下限';
COMMENT ON COLUMN water_box.collect_datetime IS '采集时间';
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/liang3411/life.git
[email protected]:liang3411/life.git
liang3411
life
life
master

搜索帮助