Browse Source

增加audio_img

xuchaolang 6 years ago
parent
commit
32300f4a9f
2 changed files with 16 additions and 0 deletions
  1. 15 0
      db/resource/audio_img.md
  2. 1 0
      db/resource/lj_resource.md

+ 15 - 0
db/resource/audio_img.md

@@ -0,0 +1,15 @@
+### resource table structure
+> 此表为资源存储对应的数据结构
+
+
+| field | type | null | default | desc | extra |
+|----|:-----|:-------|:------|:-----:|:-----:|
+| id | string | no | | 主键 | pri |
+| code | varchar(512) | yes | | 课编码 | uni |
+| name | varchar(512) | no | | 名称 |  |
+| type | int | no | | 资源类型 | {4}, 分别表示{有声读物} |
+| img_id | int | no | | 图片id | |
+| audio_id | int | no | | 音频id | |
+| status | smallint | no | | 状态 | |
+| gmt_created | timestamp | no | now | 创建时间 | |
+| gmt_modified | timestamp | no | now | 更新时间 | | |

+ 1 - 0
db/resource/lj_resource.md

@@ -6,6 +6,7 @@
 |----|:-----|:-------|:------|:-----:|:-----:|
 | id | string | no | | 主键 | pri |
 | code | varchar(512) | yes | | 课编码 | uni |
+| type | int | no | | 资源类型 | {0,3}, 分别表示{图片,视频} |
 | name | varchar(1024) | no | null | 标题 | |
 | format | varchar(512) | yes | |资源格式 | |
 | quality | varchar(512) | yes | | 资源质量 | |