+ Use This Table All Design

MySQL Create Table SQL

Table Structure: okayapi_72crm_crm_product:/tablelist/okayapi_72crm_crm_product.html


-- MySQL Table okayapi_72crm_crm_product
-- From: OkayAPI.com
CREATE TABLE `okayapi_72crm_crm_product` (
    `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
    `product_id` int(11) NOT NULL COMMENT '',
    `okayapi_72crm_crm_product_name` varchar(255) NOT NULL COMMENT '产品名称',
    `num` varchar(255) NOT NULL COMMENT '产品编码',
    `unit` varchar(255) NOT NULL COMMENT '单位',
    `price` decimal(18,2) NOT NULL COMMENT '价格',
    `okayapi_72crm_crm_product_status` int(1) NOT NULL DEFAULT '0' COMMENT '状态 1 上架 0 下架 3 删除',
    `category_id` int(11) NOT NULL COMMENT '产品分类ID',
    `description` text NOT NULL COMMENT '产品描述',
    `create_user_id` bigint(20) NOT NULL COMMENT '创建人ID',
    `owner_user_id` bigint(20) NOT NULL COMMENT '负责人ID',
    `create_time` datetime NOT NULL COMMENT '创建时间',
    `batch_id` varchar(32) NOT NULL COMMENT '批次',
    KEY `product_id` (`product_id`),
    KEY `okayapi_72crm_crm_product_name` (`okayapi_72crm_crm_product_name`),
    KEY `num` (`num`),
    KEY `unit` (`unit`),
    KEY `price` (`price`),
    KEY `okayapi_72crm_crm_product_status` (`okayapi_72crm_crm_product_status`),
    KEY `category_id` (`category_id`),
    KEY `description` (`description`),
    KEY `create_user_id` (`create_user_id`),
    KEY `owner_user_id` (`owner_user_id`),
    KEY `create_time` (`create_time`),
    KEY `batch_id` (`batch_id`),
    PRIMARY KEY (`id`)
) ENGINE=InnoDB COMMENT 'CRM-产品表';

After replication, you can go to the database to create the database table.


MySQL database table structure design

Displaying 1-12 of 12 results.
Field NameField TypeDefaultIS NULLField CommentIndexDemo Data
product_idint(11)
okayapi_72crm_crm_product_namevarchar(255)产品名称
numvarchar(255)产品编码
unitvarchar(255)单位
pricedecimal(18,2)价格
okayapi_72crm_crm_product_statusint(1)0状态 1 上架 0 下架 3 删除0
category_idint(11)产品分类ID
descriptiontext产品描述
create_user_idbigint(20)创建人ID
owner_user_idbigint(20)负责人ID
create_timedatetime创建时间
batch_idvarchar(32)批次

Guess You Like

MySQL Table Design okayapi_72crm_admin_config

MySQL Table Design okayapi_72crm_admin_dept

MySQL Table Design okayapi_72crm_admin_examine

MySQL Table Design okayapi_72crm_admin_examine_log

MySQL Table Design okayapi_72crm_admin_examine_record

MySQL Table Design okayapi_72crm_admin_examine_step

MySQL Table Design okayapi_72crm_admin_field_sort

MySQL Table Design okayapi_72crm_admin_fieldv

MySQL Table Design okayapi_72crm_admin_file

MySQL Table Design okayapi_72crm_admin_menu

MySQL Table Design okayapi_72crm_admin_message

MySQL Table Design okayapi_72crm_admin_record

MySQL Table Design okayapi_72crm_admin_role

MySQL Table Design okayapi_72crm_admin_role_menu

MySQL Table Design okayapi_72crm_admin_scene

MySQL Table Design okayapi_72crm_admin_scene_default

MySQL Table Design okayapi_72crm_admin_user

MySQL Table Design okayapi_72crm_admin_user_role

MySQL Table Design okayapi_72crm_crm_achievement

MySQL Table Design okayapi_72crm_crm_action_record

TOP ↑