+ Use This Table All Design

MySQL Create Table SQL

Table Structure: okayapi_box_product:/tablelist/okayapi_box_product.html


-- MySQL Table okayapi_box_product
-- From: OkayAPI.com
CREATE TABLE `okayapi_box_product` (
    `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
    `product_category_id` bigint(20) NULL COMMENT '',
    `product_payment_id` bigint(20) NULL COMMENT '',
    `form_id` bigint(20) NULL COMMENT '',
    `title` varchar(255) NULL COMMENT '',
    `slug` varchar(255) NULL COMMENT '',
    `description` text NULL COMMENT '',
    `unit` varchar(50) NULL DEFAULT 'product' COMMENT '',
    `active` tinyint(1) NULL DEFAULT '1' COMMENT '',
    `status` varchar(50) NULL DEFAULT 'enabled' COMMENT 'enabled, disabled',
    `hidden` tinyint(1) NULL DEFAULT '0' COMMENT '',
    `is_addon` tinyint(1) NULL DEFAULT '0' COMMENT '',
    `setup` varchar(50) NULL DEFAULT 'after_payment' COMMENT '',
    `addons` text NULL COMMENT '',
    `icon_url` varchar(255) NULL COMMENT '',
    `allow_quantity_select` tinyint(1) NULL DEFAULT '0' COMMENT '',
    `stock_control` tinyint(1) NULL DEFAULT '0' COMMENT '',
    `quantity_in_stock` int(11) NULL DEFAULT '0' COMMENT '',
    `plugin` varchar(255) NULL COMMENT '',
    `plugin_config` text NULL COMMENT '',
    `upgrades` text NULL COMMENT '',
    `priority` bigint(20) NULL COMMENT '',
    `config` text NULL COMMENT '',
    `type` varchar(255) NULL COMMENT '',
    KEY `product_category_id` (`product_category_id`),
    KEY `product_payment_id` (`product_payment_id`),
    KEY `form_id` (`form_id`),
    KEY `title` (`title`),
    KEY `slug` (`slug`),
    KEY `description` (`description`),
    KEY `unit` (`unit`),
    KEY `active` (`active`),
    KEY `status` (`status`),
    KEY `hidden` (`hidden`),
    KEY `is_addon` (`is_addon`),
    KEY `setup` (`setup`),
    KEY `addons` (`addons`),
    KEY `icon_url` (`icon_url`),
    KEY `allow_quantity_select` (`allow_quantity_select`),
    KEY `stock_control` (`stock_control`),
    KEY `quantity_in_stock` (`quantity_in_stock`),
    KEY `plugin` (`plugin`),
    KEY `plugin_config` (`plugin_config`),
    KEY `upgrades` (`upgrades`),
    KEY `priority` (`priority`),
    KEY `config` (`config`),
    KEY `type` (`type`),
    PRIMARY KEY (`id`)
) ENGINE=InnoDB COMMENT '主机销售-产品';

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


MySQL database table structure design

Displaying 1-23 of 23 results.
Field NameField TypeDefaultIS NULLField CommentIndexDemo Data
product_category_idbigint(20)Normal Index
product_payment_idbigint(20)Normal Index
form_idbigint(20)Normal Index
titlevarchar(255)
slugvarchar(255)Unique Index
descriptiontext
unitvarchar(50)productproduct
activetinyint(1)11
statusvarchar(50)enabledenabled, disabledenabled
hiddentinyint(1)00
is_addontinyint(1)00
setupvarchar(50)after_paymentafter_payment
addonstext
icon_urlvarchar(255)
allow_quantity_selecttinyint(1)00
stock_controltinyint(1)00
quantity_in_stockint(11)00
pluginvarchar(255)
plugin_configtext
upgradestext
prioritybigint(20)
configtext
typevarchar(255)Normal Index

Guess You Like

MySQL Table Design okayapi_activity_admin_history

MySQL Table Design okayapi_activity_client_email

MySQL Table Design okayapi_activity_client_history

MySQL Table Design okayapi_activity_system

MySQL Table Design okayapi_box_admin

MySQL Table Design okayapi_box_admin_group

MySQL Table Design okayapi_box_cart

MySQL Table Design okayapi_box_cart_product

MySQL Table Design okayapi_box_client

MySQL Table Design okayapi_box_client_balance

MySQL Table Design okayapi_box_client_group

MySQL Table Design okayapi_box_client_order

MySQL Table Design okayapi_box_client_order_meta

MySQL Table Design okayapi_box_client_order_status

MySQL Table Design okayapi_box_client_password_reset

MySQL Table Design okayapi_box_currency

MySQL Table Design okayapi_box_email_template

MySQL Table Design okayapi_box_extension

MySQL Table Design okayapi_box_extension_meta

MySQL Table Design okayapi_box_form

TOP ↑