+ Use This Table All Design

MySQL Create Table SQL

Table Structure: okayapi_box_promo:/tablelist/okayapi_box_promo.html


-- MySQL Table okayapi_box_promo
-- From: OkayAPI.com
CREATE TABLE `okayapi_box_promo` (
    `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
    `code` varchar(100) NULL COMMENT '',
    `description` text NULL COMMENT '',
    `type` varchar(30) NULL DEFAULT 'percentage' COMMENT 'absolute, percentage, trial',
    `value` decimal(18,2) NULL COMMENT '',
    `maxuses` int(11) NULL DEFAULT '0' COMMENT '',
    `used` int(11) NULL DEFAULT '0' COMMENT '',
    `freesetup` tinyint(1) NULL DEFAULT '0' COMMENT '',
    `once_per_client` tinyint(1) NULL DEFAULT '0' COMMENT '',
    `recurring` tinyint(1) NULL DEFAULT '0' COMMENT '',
    `active` tinyint(1) NULL DEFAULT '0' COMMENT '',
    `products` text NULL COMMENT '',
    `periods` text NULL COMMENT '',
    `client_groups` text NULL COMMENT '',
    `start_at` datetime NULL COMMENT '',
    `end_at` datetime NULL COMMENT '',
    KEY `code` (`code`),
    KEY `description` (`description`),
    KEY `type` (`type`),
    KEY `value` (`value`),
    KEY `maxuses` (`maxuses`),
    KEY `used` (`used`),
    KEY `freesetup` (`freesetup`),
    KEY `once_per_client` (`once_per_client`),
    KEY `recurring` (`recurring`),
    KEY `active` (`active`),
    KEY `products` (`products`),
    KEY `periods` (`periods`),
    KEY `client_groups` (`client_groups`),
    KEY `start_at` (`start_at`),
    KEY `end_at` (`end_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-15 of 15 results.
Field NameField TypeDefaultIS NULLField CommentIndexDemo Data
codevarchar(100)Normal Index
descriptiontext
typevarchar(30)percentageabsolute, percentage, trialpercentage
valuedecimal(18,2)
maxusesint(11)00
usedint(11)00
freesetuptinyint(1)00
once_per_clienttinyint(1)00
recurringtinyint(1)00
activetinyint(1)0Normal Index0
productstext
periodstext
client_groupstext
start_atdatetimeNormal Index
end_atdatetimeNormal 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 ↑