消息(消息id、用户id、消息类型、消息内容、创建时间),转为表格形式,需包含以下字段:序号、英文列名、说明、类型大小、约束。
时间: 2023-11-08 18:36:56 浏览: 12
序号 | 英文列名 | 说明 | 类型大小 | 约束
--- | --- | --- | --- | ---
1 | message_id | 消息ID | int | 主键,自增
2 | user_id | 用户ID | int | 外键,关联用户表
3 | message_type | 消息类型 | varchar(20) | 非空
4 | message_content | 消息内容 | text |
5 | create_time | 创建时间 | datetime | 非空,默认为当前时间
相关问题
内容(内容id、内容标题、内容文本、所在地、图片URL、浏览量、用户id、发布时间),转为表格形式,需包含以下字段:序号、英文列名、说明、类型大小、约束。
序号 | 英文列名 | 说明 | 类型大小 | 约束
--- | --- | --- | --- | ---
1 | content_id | 内容id | int(11) | 主键,自增,非空
2 | title | 内容标题 | varchar(255) | 非空
3 | text | 内容文本 | text |
4 | location | 所在地 | varchar(255) |
5 | image_url | 图片URL | varchar(255) |
6 | views | 浏览量 | int(11) | 默认值为0
7 | user_id | 用户id | int(11) | 外键,关联用户表
8 | publish_time | 发布时间 | datetime | 非空
内容(内容id、内容标题、内容文本、所在地、图片URL、浏览量、用户id、发布时间、标,转为表格形式,需包含以下字段:序号、英文列名、说明、类型大小、约束。
序号 | 英文列名 | 说明 | 类型大小 | 约束
---|---|---|---|---
1 | content_id | 内容id | int | 主键
2 | content_title | 内容标题 | varchar(100) | 非空
3 | content_text | 内容文本 | text |
4 | location | 所在地 | varchar(50) |
5 | image_url | 图片URL | varchar(200) |
6 | views | 浏览量 | int | 默认值为0
7 | user_id | 用户id | int | 外键,关联用户表
8 | publish_time | 发布时间 | datetime |
9 | tag | 标签 | varchar(50) | 可以为空
相关推荐
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![-](https://csdnimg.cn/download_wenku/file_type_column_c1.png)
![-](https://csdnimg.cn/download_wenku/file_type_column_c1.png)
![-](https://csdnimg.cn/download_wenku/file_type_column_c1.png)
![-](https://csdnimg.cn/download_wenku/file_type_column_c1.png)
![-](https://csdnimg.cn/download_wenku/file_type_column_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)