+ Use This Table All Design

MySQL Create Table SQL

Table Structure: okayapi_crm_salesorder_items:/tablelist/okayapi_crm_salesorder_items.html


-- MySQL Table okayapi_crm_salesorder_items
-- From: OkayAPI.com
CREATE TABLE `okayapi_crm_salesorder_items` (
    `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
    `product_id` int(11) NULL COMMENT '产品ID',
    `num` int(11) NULL COMMENT '数量',
    `price` decimal(10,0) NULL COMMENT '价格',
    `memo` varchar(255) NULL COMMENT '备注',
    `amount` decimal(10,0) NULL COMMENT '小计',
    `salesorder_id` int(11) NULL COMMENT '订单主键',
    KEY `product_id` (`product_id`),
    KEY `num` (`num`),
    KEY `price` (`price`),
    KEY `memo` (`memo`),
    KEY `amount` (`amount`),
    KEY `salesorder_id` (`salesorder_id`),
    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-6 of 6 results.
Field NameField TypeDefaultIS NULLField CommentIndexDemo Data
product_idint(11)产品ID
numint(11)数量
pricedecimal(10,0)价格
memovarchar(255)备注
amountdecimal(10,0)小计
salesorder_idint(11)订单主键

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 ↑