+ Use This Table All Design

MySQL Create Table SQL

Table Structure: okayapi_box_client:/tablelist/okayapi_box_client.html


-- MySQL Table okayapi_box_client
-- From: OkayAPI.com
CREATE TABLE `okayapi_box_client` (
    `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
    `aid` varchar(255) NULL COMMENT 'Alternative id for foreign systems',
    `client_group_id` bigint(20) NULL COMMENT '',
    `role` varchar(30) NULL DEFAULT 'client' COMMENT 'client',
    `auth_type` varchar(255) NULL COMMENT '',
    `email` varchar(255) NULL COMMENT '',
    `pass` varchar(255) NULL COMMENT '',
    `salt` varchar(255) NULL COMMENT '',
    `status` varchar(30) NULL DEFAULT 'active' COMMENT 'active, suspended, canceled',
    `email_approved` tinyint(1) NULL COMMENT '',
    `tax_exempt` tinyint(1) NULL DEFAULT '0' COMMENT '',
    `type` varchar(100) NULL COMMENT '',
    `first_name` varchar(100) NULL COMMENT '',
    `last_name` varchar(100) NULL COMMENT '',
    `gender` varchar(20) NULL COMMENT '',
    `birthday` date NULL COMMENT '',
    `phone_cc` varchar(10) NULL COMMENT '',
    `phone` varchar(100) NULL COMMENT '',
    `company` varchar(100) NULL COMMENT '',
    `company_vat` varchar(100) NULL COMMENT '',
    `company_number` varchar(255) NULL COMMENT '',
    `address_1` varchar(100) NULL COMMENT '',
    `address_2` varchar(100) NULL COMMENT '',
    `city` varchar(100) NULL COMMENT '',
    `state` varchar(100) NULL COMMENT '',
    `postcode` varchar(100) NULL COMMENT '',
    `country` varchar(100) NULL COMMENT '',
    `document_type` varchar(100) NULL COMMENT '',
    `document_nr` varchar(20) NULL COMMENT '',
    `notes` text NULL COMMENT '',
    `currency` varchar(10) NULL COMMENT '',
    `lang` varchar(10) NULL COMMENT '',
    `ip` varchar(45) NULL COMMENT '',
    `api_token` varchar(128) NULL COMMENT '',
    `referred_by` varchar(255) NULL COMMENT '',
    KEY `aid` (`aid`),
    KEY `client_group_id` (`client_group_id`),
    KEY `role` (`role`),
    KEY `auth_type` (`auth_type`),
    KEY `email` (`email`),
    KEY `pass` (`pass`),
    KEY `salt` (`salt`),
    KEY `status` (`status`),
    KEY `email_approved` (`email_approved`),
    KEY `tax_exempt` (`tax_exempt`),
    KEY `type` (`type`),
    KEY `first_name` (`first_name`),
    KEY `last_name` (`last_name`),
    KEY `gender` (`gender`),
    KEY `birthday` (`birthday`),
    KEY `phone_cc` (`phone_cc`),
    KEY `phone` (`phone`),
    KEY `company` (`company`),
    KEY `company_vat` (`company_vat`),
    KEY `company_number` (`company_number`),
    KEY `address_1` (`address_1`),
    KEY `address_2` (`address_2`),
    KEY `city` (`city`),
    KEY `state` (`state`),
    KEY `postcode` (`postcode`),
    KEY `country` (`country`),
    KEY `document_type` (`document_type`),
    KEY `document_nr` (`document_nr`),
    KEY `notes` (`notes`),
    KEY `currency` (`currency`),
    KEY `lang` (`lang`),
    KEY `ip` (`ip`),
    KEY `api_token` (`api_token`),
    KEY `referred_by` (`referred_by`),
    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-34 of 34 results.
Field NameField TypeDefaultIS NULLField CommentIndexDemo Data
aidvarchar(255)Alternative id for foreign systemsNormal Index
client_group_idbigint(20)Normal Index
rolevarchar(30)clientclientclient
auth_typevarchar(255)
emailvarchar(255)Unique Index
passvarchar(255)
saltvarchar(255)
statusvarchar(30)activeactive, suspended, canceledactive
email_approvedtinyint(1)
tax_exempttinyint(1)00
typevarchar(100)
first_namevarchar(100)
last_namevarchar(100)
gendervarchar(20)
birthdaydate
phone_ccvarchar(10)
phonevarchar(100)
companyvarchar(100)
company_vatvarchar(100)
company_numbervarchar(255)
address_1varchar(100)
address_2varchar(100)
cityvarchar(100)
statevarchar(100)
postcodevarchar(100)
countryvarchar(100)
document_typevarchar(100)
document_nrvarchar(20)
notestext
currencyvarchar(10)
langvarchar(10)
ipvarchar(45)
api_tokenvarchar(128)
referred_byvarchar(255)

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

MySQL Table Design okayapi_box_form_field

TOP ↑