init
This commit is contained in:
@@ -0,0 +1,65 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
-->
|
||||
<schema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="urn:magento:framework:Setup/Declaration/Schema/etc/schema.xsd">
|
||||
<table name="quote">
|
||||
<column xsi:type="int" name="salesperson_id" unsigned="true" nullable="true" identity="false"
|
||||
default="0" comment="Salesperson ID"/>
|
||||
<column xsi:type="decimal" name="customer_discount" unsigned="false" nullable="true"
|
||||
default="0" scale="2" comment="customer discount"/>
|
||||
</table>
|
||||
|
||||
<table name="quote_item" resource="checkout" engine="innodb" comment="Sales Flat Quote Item">
|
||||
<column xsi:type="int" name="lab_id" unsigned="true" nullable="false" comment="Lab Code"/>
|
||||
<column xsi:type="varchar" name="lab_code" nullable="false" length="255" comment="Lab Code"/>
|
||||
<column xsi:type="varchar" name="pi_sap_id" nullable="false" length="255" comment="Lab PI SAP ID"/>
|
||||
<column xsi:type="int" name="salesperson_id" unsigned="true" nullable="true" identity="false"
|
||||
default="0" comment="Salesperson ID"/>
|
||||
<column xsi:type="varchar" name="cd" nullable="false" length="255" comment="CD"/>
|
||||
<column xsi:type="varchar" name="quote" nullable="false" length="255" comment="Quote"/>
|
||||
<column xsi:type="decimal" name="customer_discount_percent" scale="4" precision="12" unsigned="true"
|
||||
nullable="false" default="0" comment="用户在购物车中填写的折扣"/>
|
||||
<column xsi:type="varchar" name="pi" nullable="false" length="255" comment="PI"/>
|
||||
<column xsi:type="varchar" name="company" nullable="false" length="255" comment="最终用户单位"/>
|
||||
<column xsi:type="varchar" name="user" nullable="false" length="255" comment="最终使用人"/>
|
||||
<column xsi:type="varchar" name="user_tel" nullable="false" length="255" comment="最终使用人电话"/>
|
||||
<column xsi:type="varchar" name="user_email" nullable="false" length="255" comment="最终使用人邮箱"/>
|
||||
<column xsi:type="varchar" name="note" nullable="false" length="255" comment="备注"/>
|
||||
<column xsi:type="smallint" name="user_type" nullable="false" comment="终端类型: 终端、二级经销商"/>
|
||||
<column xsi:type="int" name="item_sort" unsigned="true" nullable="true" identity="false"
|
||||
default="0" comment="Item Sort"/>
|
||||
</table>
|
||||
|
||||
<table name="sales_order">
|
||||
<column xsi:type="int" name="salesperson_id" unsigned="true" nullable="true" identity="false"
|
||||
default="0" comment="Salesperson ID"/>
|
||||
<column xsi:type="decimal" name="customer_discount" unsigned="false" nullable="true" scale="2"
|
||||
default="0" comment="customer discount"/>
|
||||
</table>
|
||||
|
||||
<table name="sales_order_item" resource="checkout" engine="innodb" comment="Sales Flat Quote Item">
|
||||
<column xsi:type="int" name="lab_id" unsigned="true" nullable="false" comment="Lab Code"/>
|
||||
<column xsi:type="varchar" name="lab_code" nullable="false" length="255" comment="Lab Code"/>
|
||||
<column xsi:type="varchar" name="pi_sap_id" nullable="false" length="255" comment="Lab PI SAP ID"/>
|
||||
<column xsi:type="int" name="salesperson_id" unsigned="true" nullable="true" identity="false"
|
||||
default="0" comment="Salesperson ID"/>
|
||||
<column xsi:type="varchar" name="cd" nullable="false" length="255" comment="CD"/>
|
||||
<column xsi:type="varchar" name="quote" nullable="false" length="255" comment="Quote"/>
|
||||
<column xsi:type="decimal" name="customer_discount_percent" scale="4" precision="12" unsigned="true"
|
||||
nullable="false" default="0" comment="用户在购物车中填写的折扣"/>
|
||||
<column xsi:type="varchar" name="pi" nullable="false" length="255" comment="PI"/>
|
||||
<column xsi:type="varchar" name="company" nullable="false" length="255" comment="最终用户单位"/>
|
||||
<column xsi:type="varchar" name="user" nullable="false" length="255" comment="最终使用人"/>
|
||||
<column xsi:type="varchar" name="user_tel" nullable="false" length="255" comment="最终使用人电话"/>
|
||||
<column xsi:type="varchar" name="user_email" nullable="false" length="255" comment="最终使用人邮箱"/>
|
||||
<column xsi:type="varchar" name="note" nullable="false" length="255" comment="备注"/>
|
||||
<column xsi:type="smallint" name="user_type" nullable="false" comment="终端类型: 终端、二级经销商"/>
|
||||
<column xsi:type="int" name="item_sort" unsigned="true" nullable="true" identity="false"
|
||||
default="0" comment="Item Sort"/>
|
||||
</table>
|
||||
</schema>
|
||||
Reference in New Issue
Block a user