+ Use This Table All Design

MySQL Create Table SQL

Table Structure: okayapi_box_client_order:/tablelist/okayapi_box_client_order.html


-- MySQL Table okayapi_box_client_order
-- From: OkayAPI.com
CREATE TABLE `okayapi_box_client_order` (
    `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
    `client_id` bigint(20) NULL COMMENT '',
    `product_id` bigint(20) NULL COMMENT '',
    `form_id` bigint(20) NULL COMMENT '',
    `promo_id` bigint(20) NULL COMMENT '',
    `promo_recurring` tinyint(1) NULL COMMENT '',
    `promo_used` bigint(20) NULL COMMENT '',
    `group_id` varchar(255) NULL COMMENT '',
    `group_master` tinyint(1) NULL DEFAULT '0' COMMENT '',
    `invoice_option` varchar(255) NULL COMMENT '',
    `title` varchar(255) NULL COMMENT '',
    `currency` varchar(20) NULL COMMENT '',
    `unpaid_invoice_id` bigint(20) NULL COMMENT '',
    `service_id` bigint(20) NULL COMMENT '',
    `service_type` varchar(100) NULL COMMENT '',
    `period` varchar(20) NULL COMMENT '',
    `quantity` bigint(20) NULL DEFAULT '1' COMMENT '',
    `unit` varchar(100) NULL COMMENT '',
    `price` double(18,2) NULL COMMENT '',
    `discount` double(18,2) NULL COMMENT 'first invoice discount',
    `status` varchar(50) NULL COMMENT '',
    `reason` varchar(255) NULL COMMENT 'suspend/cancel reason',
    `notes` text NULL COMMENT '',
    `config` text NULL COMMENT '',
    `referred_by` varchar(255) NULL COMMENT '',
    `expires_at` datetime NULL COMMENT '',
    `activated_at` datetime NULL COMMENT '',
    `suspended_at` datetime NULL COMMENT '',
    `unsuspended_at` datetime NULL COMMENT '',
    `canceled_at` datetime NULL COMMENT '',
    KEY `client_id` (`client_id`),
    KEY `product_id` (`product_id`),
    KEY `form_id` (`form_id`),
    KEY `promo_id` (`promo_id`),
    KEY `promo_recurring` (`promo_recurring`),
    KEY `promo_used` (`promo_used`),
    KEY `group_id` (`group_id`),
    KEY `group_master` (`group_master`),
    KEY `invoice_option` (`invoice_option`),
    KEY `title` (`title`),
    KEY `currency` (`currency`),
    KEY `unpaid_invoice_id` (`unpaid_invoice_id`),
    KEY `service_id` (`service_id`),
    KEY `service_type` (`service_type`),
    KEY `period` (`period`),
    KEY `quantity` (`quantity`),
    KEY `unit` (`unit`),
    KEY `price` (`price`),
    KEY `discount` (`discount`),
    KEY `status` (`status`),
    KEY `reason` (`reason`),
    KEY `notes` (`notes`),
    KEY `config` (`config`),
    KEY `referred_by` (`referred_by`),
    KEY `expires_at` (`expires_at`),
    KEY `activated_at` (`activated_at`),
    KEY `suspended_at` (`suspended_at`),
    KEY `unsuspended_at` (`unsuspended_at`),
    KEY `canceled_at` (`canceled_at`),
    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-29 of 29 results.
Field NameField TypeDefaultIS NULLField CommentIndexDemo Data
client_idbigint(20)Normal Index
product_idbigint(20)Normal Index
form_idbigint(20)Normal Index
promo_idbigint(20)Normal Index
promo_recurringtinyint(1)
promo_usedbigint(20)
group_idvarchar(255)
group_mastertinyint(1)00
invoice_optionvarchar(255)
titlevarchar(255)
currencyvarchar(20)
unpaid_invoice_idbigint(20)
service_idbigint(20)
service_typevarchar(100)
periodvarchar(20)
quantitybigint(20)11
unitvarchar(100)
pricedouble(18,2)
discountdouble(18,2)first invoice discount
statusvarchar(50)
reasonvarchar(255)suspend/cancel reason
notestext
configtext
referred_byvarchar(255)
expires_atdatetime
activated_atdatetime
suspended_atdatetime
unsuspended_atdatetime
canceled_atdatetime

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_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

MySQL Table Design okayapi_box_form_field

TOP ↑