From c6cb7f1f9733a63b5e0494d0248dc1a11631122b Mon Sep 17 00:00:00 2001 From: zhangran Date: Tue, 3 Aug 2021 17:44:19 +0800 Subject: [PATCH] =?UTF-8?q?add-=E5=88=9D=E5=A7=8B=E5=8C=96oss=20sql?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- doc/sql/ddl/oss_data_init.sql | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 doc/sql/ddl/oss_data_init.sql diff --git a/doc/sql/ddl/oss_data_init.sql b/doc/sql/ddl/oss_data_init.sql new file mode 100644 index 0000000..6886e1b --- /dev/null +++ b/doc/sql/ddl/oss_data_init.sql @@ -0,0 +1,14 @@ +INSERT INTO `app_channel_bucket`( `app_channel_bucket_no`, `app_code`, `channel_code`, `bucket_name`, `access_control`, `remark`, `extension`, `create_at`, `update_at`, `create_by`, `update_by`, `is_delete`) +VALUES ( 'test:aliyun:test', 'test', 'aliyun', 'axzo_public', '', NULL, NULL, now(), now(), '', '', 0); + +INSERT INTO `file_app`(`app_code`, `app_name`, `status`, `remark`, `extension`, `create_at`, `update_at`, `create_by`, `update_by`, `is_delete`) +VALUES ('test', '测试', 1, '测试', NULL, now(), now(), '', '', 0); + +INSERT INTO `file_business_scene`(`app_channel_bucket_no`, `app_code`, `channel_code`, `bucket_name`, `business_scene`, `directory`, `create_at`, `update_at`, `create_by`, `update_by`, `is_delete`) +VALUES ('test:aliyun:test', 'test', 'aliyun', 'axzo_public', '1', 'oss-test', now(), now(), NULL, NULL, 0); + +INSERT INTO `file_channel`(`channel_code`, `channel_name`, `status`, `remark`, `extension`, `priority`, `create_at`, `update_at`, `create_by`, `update_by`, `is_delete`) +VALUES ('aliyun', '阿里云', 1, NULL, NULL, 1, now(), now(), NULL, NULL, 0); + +INSERT INTO `file_upload_config`(`app_channel_bucket_no`, `app_code`, `channel_code`, `bucket_name`, `directory`, `storage_unit`, `storage_size`, `file_format`, `create_at`, `update_at`, `create_by`, `update_by`, `is_delete`) +VALUES ('test:aliyun:test', 'test', 'aliyun', 'axzo-public', 'oss-test', 'MB', 1, 'jpg', now(), now(), NULL, NULL, 0); \ No newline at end of file