iot-gateway/src/main/resources/db/gateway/public/sys_message.sql
zhuangtianxiang 7d73b813c1 feat(iot): 服务参数添加外键类型和 ID 字段- 在 ServeMapper.xml 中添加了 input_param_foreign_type 和 input_param_foreign_id 字段
- 同样在 ServeMapper.xml 中添加了 output_param_foreign_type 和 output_param_foreign_id 字段
- 新增 sys_message 表用于消息管理,包括消息类型、发送方式、标题、内容等信息
2025-01-05 15:30:34 +08:00

49 lines
1.3 KiB
SQL
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

create table sys_message
(
id serial primary key,
type integer not null,
system boolean not null,
email boolean not null,
sms boolean not null,
html boolean not null,
title varchar,
content varchar,
remark varchar,
create_time timestamp,
create_by varchar,
update_time timestamp,
update_by varchar,
dept_id bigint
);
comment on table sys_message is '消息';
comment on column sys_message.type is '消息类型';
comment on column sys_message.system is '是否系统生成';
comment on column sys_message.email is '是否需要发送邮件';
comment on column sys_message.sms is '是否需要发送短信';
comment on column sys_message.html is '消息内容是否是富文本TRUE则义富文本形式发送';
comment on column sys_message.title is '标题';
comment on column sys_message.content is '消息内容';
comment on column sys_message.remark is '说明';
comment on column sys_message.create_time is '创建时间';
comment on column sys_message.create_by is '创建人';
comment on column sys_message.update_time is '更新时间';
comment on column sys_message.update_by is '更新人';
comment on column sys_message.dept_id is '部门权限id';
alter table sys_message
owner to gitea;