MySQL Create Table SQL
Table Structure: okayapi_fie_user_favorite:/tablelist/okayapi_fie_user_favorite.html
-- MySQL Table okayapi_fie_user_favorite
-- From: OkayAPI.com
CREATE TABLE `okayapi_fie_user_favorite` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`user_id` bigint(20) NULL DEFAULT '0' COMMENT '用户 id',
`title` varchar(100) NULL COMMENT '收藏内容的标题',
`url` varchar(255) NULL COMMENT '收藏内容的原文地址,不带域名',
`description` varchar(500) NULL COMMENT '收藏内容的描述',
`okayapi_fie_user_favorite_table_name` varchar(64) NULL COMMENT '收藏实体以前所在表,不带前缀',
`object_id` int(10) NULL DEFAULT '0' COMMENT '收藏内容原来的主键id',
`create_time` int(10) NULL DEFAULT '0' COMMENT '收藏时间',
KEY `user_id` (`user_id`),
KEY `title` (`title`),
KEY `url` (`url`),
KEY `description` (`description`),
KEY `okayapi_fie_user_favorite_table_name` (`okayapi_fie_user_favorite_table_name`),
KEY `object_id` (`object_id`),
KEY `create_time` (`create_time`),
PRIMARY KEY (`id`)
) ENGINE=InnoDB COMMENT 'fie内容管理-用户收藏表';
After replication, you can go to the database to create the database table.
MySQL database table structure design
Displaying 1-7 of 7 results.
Field Name | Field Type | Default | IS NULL | Field Comment | Index | Demo Data |
---|---|---|---|---|---|---|
user_id | bigint(20) | 0 | 否 | 用户 id | Normal Index | 0 |
title | varchar(100) | 否 | 收藏内容的标题 | |||
url | varchar(255) | 是 | 收藏内容的原文地址,不带域名 | |||
description | varchar(500) | 是 | 收藏内容的描述 | |||
okayapi_fie_user_favorite_table_name | varchar(64) | 否 | 收藏实体以前所在表,不带前缀 | |||
object_id | int(10) | 0 | 是 | 收藏内容原来的主键id | 0 | |
create_time | int(10) | 0 | 是 | 收藏时间 | 0 |