From 63a2b38b73bf4cb77a283a56138ef04d514ed2f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=98=BF=E6=B2=90?= Date: Tue, 25 Jun 2024 17:11:26 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E6=B6=88=E6=81=AF=E6=A8=A1?= =?UTF-8?q?=E5=9D=97SQL?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- db/dm8/module/maku-module-message.sql | 82 ----------------------------------- 1 file changed, 82 deletions(-) delete mode 100644 db/dm8/module/maku-module-message.sql diff --git a/db/dm8/module/maku-module-message.sql b/db/dm8/module/maku-module-message.sql deleted file mode 100644 index dda521e..0000000 --- a/db/dm8/module/maku-module-message.sql +++ /dev/null @@ -1,82 +0,0 @@ -SET IDENTITY_INSERT sys_menu ON; -INSERT INTO sys_menu (id, pid, name, url, authority, type, open_style, icon, sort, version, deleted, creator, create_time, updater, update_time) VALUES (1101, 33, '消息管理', '', '', 0, 0, 'icon-message', 2, 0, 0, 10000, now(), 10000, now()); -INSERT INTO sys_menu (id, pid, name, url, authority, type, open_style, icon, sort, version, deleted, creator, create_time, updater, update_time) VALUES (1102, 1101, '短信日志', 'message/sms/log/index', 'sms:log', 0, 0, 'icon-detail', 1, 0, 0, 10000, now(), 10000, now()); -INSERT INTO sys_menu (id, pid, name, url, authority, type, open_style, icon, sort, version, deleted, creator, create_time, updater, update_time) VALUES (1103, 1101, '短信平台', 'message/sms/platform/index', NULL, 0, 0, 'icon-whatsapp', 0, 0, 0, 10000, now(), 10000, now()); - -INSERT INTO sys_menu (id, pid, name, url, authority, type, open_style, icon, sort, version, deleted, creator, create_time, updater, update_time) VALUES (1104, 1103, '查看', '', 'sms:platform:page', 1, 0, '', 0, 0, 0, 10000, now(), 10000, now()); -INSERT INTO sys_menu (id, pid, name, url, authority, type, open_style, icon, sort, version, deleted, creator, create_time, updater, update_time) VALUES (1105, 1103, '新增', '', 'sms:platform:save', 1, 0, '', 1, 0, 0, 10000, now(), 10000, now()); -INSERT INTO sys_menu (id, pid, name, url, authority, type, open_style, icon, sort, version, deleted, creator, create_time, updater, update_time) VALUES (1106, 1103, '修改', '', 'sms:platform:update,sms:platform:info', 1, 0, '', 2, 0, 0, 10000, now(), 10000, now()); -INSERT INTO sys_menu (id, pid, name, url, authority, type, open_style, icon, sort, version, deleted, creator, create_time, updater, update_time) VALUES (1107, 1103, '删除', '', 'sms:platform:delete', 1, 0, '', 3, 0, 0, 10000, now(), 10000, now()); - -SET IDENTITY_INSERT sys_dict_type ON; -INSERT INTO sys_dict_type (id, dict_type, dict_name, remark, sort, tenant_id, version, deleted, creator, create_time, updater, update_time) VALUES (1101, 'sms_platform', '平台类型', '短信管理', 0, 10000, 0, 0, 10000, now(), 10000, now()); -INSERT INTO sys_dict_data (dict_type_id, dict_label, dict_value, label_class, remark, sort, tenant_id, version, deleted, creator, create_time, updater, update_time) VALUES (1101, '阿里云', '0', '', '', 0, 10000, 0, 0, 10000, now(), 10000, now()); -INSERT INTO sys_dict_data (dict_type_id, dict_label, dict_value, label_class, remark, sort, tenant_id, version, deleted, creator, create_time, updater, update_time) VALUES (1101, '腾讯云', '1', '', '', 1, 10000, 0, 0, 10000, now(), 10000, now()); -INSERT INTO sys_dict_data (dict_type_id, dict_label, dict_value, label_class, remark, sort, tenant_id, version, deleted, creator, create_time, updater, update_time) VALUES (1101, '七牛云', '2', '', '', 2, 10000, 0, 0, 10000, now(), 10000, now()); -INSERT INTO sys_dict_data (dict_type_id, dict_label, dict_value, label_class, remark, sort, tenant_id, version, deleted, creator, create_time, updater, update_time) VALUES (1101, '华为云', '3', '', '', 3, 10000, 0, 0, 10000, now(), 10000, now()); - - -DROP TABLE IF EXISTS sms_platform; -DROP TABLE IF EXISTS sms_log; - -CREATE TABLE sms_platform -( - id bigint IDENTITY NOT NULL, - platform int, - sign_name varchar(100), - template_id varchar(100), - app_id varchar(100), - sender_id varchar(100), - url varchar(200), - access_key varchar(100), - secret_key varchar(100), - status int, - version int, - deleted int, - creator bigint, - create_time datetime, - updater bigint, - update_time datetime, - primary key (id) -); - -COMMENT ON TABLE sms_platform IS '短信平台'; -COMMENT ON COLUMN sms_platform.id IS 'id'; -COMMENT ON COLUMN sms_platform.platform IS '平台类型 0:阿里云 1:腾讯云 2:七牛云 3:华为云'; -COMMENT ON COLUMN sms_platform.sign_name IS '短信签名'; -COMMENT ON COLUMN sms_platform.template_id IS '短信模板'; -COMMENT ON COLUMN sms_platform.app_id IS '短信应用ID,如:腾讯云等'; -COMMENT ON COLUMN sms_platform.sender_id IS '腾讯云国际短信、华为云等需要'; -COMMENT ON COLUMN sms_platform.url IS '接入地址,如:华为云'; -COMMENT ON COLUMN sms_platform.access_key IS 'AccessKey'; -COMMENT ON COLUMN sms_platform.secret_key IS 'SecretKey'; -COMMENT ON COLUMN sms_platform.status IS '状态 0:禁用 1:启用'; -COMMENT ON COLUMN sms_platform.version IS '版本号'; -COMMENT ON COLUMN sms_platform.deleted IS '删除标识 0:正常 1:已删除'; -COMMENT ON COLUMN sms_platform.creator IS '创建者'; -COMMENT ON COLUMN sms_platform.create_time IS '创建时间'; -COMMENT ON COLUMN sms_platform.updater IS '更新者'; -COMMENT ON COLUMN sms_platform.update_time IS '更新时间'; - -CREATE TABLE sms_log -( - id bigint IDENTITY NOT NULL, - platform_id bigint, - platform int, - mobile varchar(20) NOT NULL, - params varchar(200), - status int, - error varchar(2000), - create_time datetime, - primary key (id) -); - -COMMENT ON TABLE sms_log IS '短信日志'; -COMMENT ON COLUMN sms_log.id IS 'id'; -COMMENT ON COLUMN sms_log.platform_id IS '平台ID'; -COMMENT ON COLUMN sms_log.platform IS '平台类型'; -COMMENT ON COLUMN sms_log.mobile IS '手机号'; -COMMENT ON COLUMN sms_log.params IS '参数'; -COMMENT ON COLUMN sms_log.status IS '状态 0:失败 1:成功'; -COMMENT ON COLUMN sms_log.error IS '异常信息'; -COMMENT ON COLUMN sms_log.create_time IS '创建时间';