Skip to content

Commit

Permalink
更新备份表建表语句
Browse files Browse the repository at this point in the history
  • Loading branch information
javamxd committed Jul 25, 2021
1 parent f37acde commit 80a2c89
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions db/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,17 @@ CREATE TABLE `magic_api_file` (
`file_content` mediumtext,
PRIMARY KEY (`file_path`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4
```
### 备份表建表语句
```sql
CREATE TABLE `magic_api_backup` (
`id` varchar(32) NOT NULL COMMENT '原对象ID',
`create_date` bigint(13) NOT NULL COMMENT '备份时间',
`tag` varchar(32) DEFAULT NULL COMMENT '标签',
`type` varchar(32) DEFAULT NULL COMMENT '类型',
`name` varchar(64) DEFAULT NULL COMMENT '原名称',
`content` mediumtext COMMENT '备份内容',
`create_by` varchar(64) DEFAULT NULL COMMENT '操作人',
PRIMARY KEY (`id`,`create_date`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4
```

0 comments on commit 80a2c89

Please sign in to comment.