+ Use This Table All Design

MySQL Create Table SQL

Table Structure: okayapi_crm_salesorder:/tablelist/okayapi_crm_salesorder.html


-- MySQL Table okayapi_crm_salesorder
-- From: OkayAPI.com
CREATE TABLE `okayapi_crm_salesorder` (
    `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
    `salesorder_number` varchar(255) NULL COMMENT '销售订单号',
    `stage` varchar(255) NULL COMMENT '订单状态',
    `customer_id` int(11) NULL COMMENT '客户ID',
    `contacter_id` int(11) NULL COMMENT '联系人ID',
    `signdate` datetime NULL COMMENT '签约日期',
    `total` decimal(10,0) NULL COMMENT '总计',
    `gather_status` varchar(255) NULL COMMENT '收款状态',
    `deleted` tinyint(4) NULL DEFAULT '0' COMMENT '删除标识:0未删除,1删除',
    `description` text NULL COMMENT '描述信息',
    `tax` tinyint(4) NULL COMMENT '税收比例',
    `adjustment` decimal(10,0) NULL COMMENT '金额调整',
    KEY `salesorder_number` (`salesorder_number`),
    KEY `stage` (`stage`),
    KEY `customer_id` (`customer_id`),
    KEY `contacter_id` (`contacter_id`),
    KEY `signdate` (`signdate`),
    KEY `total` (`total`),
    KEY `gather_status` (`gather_status`),
    KEY `deleted` (`deleted`),
    KEY `description` (`description`),
    KEY `tax` (`tax`),
    KEY `adjustment` (`adjustment`),
    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-11 of 11 results.
Field NameField TypeDefaultIS NULLField CommentIndexDemo Data
salesorder_numbervarchar(255)销售订单号
stagevarchar(255)订单状态
customer_idint(11)客户ID
contacter_idint(11)联系人ID
signdatedatetime签约日期
totaldecimal(10,0)总计
gather_statusvarchar(255)收款状态
deletedtinyint(4)0删除标识:0未删除,1删除0
descriptiontext描述信息
taxtinyint(4)税收比例
adjustmentdecimal(10,0)金额调整

Guess You Like

MySQL Table Design okayapi_crm_accountrecordss

MySQL Table Design okayapi_crm_announcements

MySQL Table Design okayapi_crm_caigoutuihuos

MySQL Table Design okayapi_crm_campaigns

MySQL Table Design okayapi_crm_charges

MySQL Table Design okayapi_crm_chargesrecords

MySQL Table Design okayapi_crm_checks

MySQL Table Design okayapi_crm_competitor

MySQL Table Design okayapi_crm_complaints

MySQL Table Design okayapi_crm_contacter

MySQL Table Design okayapi_crm_contactlog

MySQL Table Design okayapi_crm_customer

MySQL Table Design okayapi_crm_dailylogs

MySQL Table Design okayapi_crm_deliverys

MySQL Table Design okayapi_crm_emailgroup

MySQL Table Design okayapi_crm_emailgroupinfo

MySQL Table Design okayapi_crm_expenses

MySQL Table Design okayapi_crm_faq

MySQL Table Design okayapi_crm_faqcategory

MySQL Table Design okayapi_crm_gathers

TOP ↑