rainwer 7 months ago
parent
commit
319a02e509
1 changed files with 21 additions and 0 deletions
  1. 21 0
      sql/ezhizao_tenant_template.sql

+ 21 - 0
sql/ezhizao_tenant_template.sql

@@ -64896,4 +64896,25 @@ CREATE TABLE `wei_xin_token`  (
 -- Records of wei_xin_token
 -- ----------------------------
 
+-- ----------------------------
+-- Table structure for biz_file_upload
+-- ----------------------------
+DROP TABLE IF EXISTS `biz_file_upload`;
+CREATE TABLE `biz_file_upload` (
+  `id` bigint(20) NOT NULL COMMENT '主键',
+  `company_id` bigint(20) NOT NULL COMMENT '客户外键',
+  `tenant_id` bigint(20) DEFAULT NULL COMMENT '租户id',
+  `type` bigint(20) NOT NULL DEFAULT 0 COMMENT '附件类型',
+  `file_url` char(255) NOT NULL COMMENT '文件地址',
+  `file_name` char(100) NOT NULL DEFAULT '' COMMENT '文件名',
+  `remark` varchar(500) NOT NULL DEFAULT '' COMMENT '备注',
+  `create_time` datetime(6) NOT NULL DEFAULT '0000-00-00 00:00:00.000000' COMMENT '添加时间',
+  `creator_id` bigint(20) NOT NULL DEFAULT 0 COMMENT '创建人id',
+  `update_time` datetime(6) NOT NULL DEFAULT '0000-00-00 00:00:00.000000' COMMENT '修改时间',
+  `updater_id` bigint(20) NOT NULL DEFAULT 0 COMMENT '修改人id',
+  `deleted` tinyint(1) unsigned NOT NULL DEFAULT 0 COMMENT '删除标识',
+  `version` int(10) unsigned NOT NULL DEFAULT 0 COMMENT '版本标识,用于乐观锁',
+  PRIMARY KEY (`id`) USING BTREE
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
+
 SET FOREIGN_KEY_CHECKS = 1;