-
Notifications
You must be signed in to change notification settings - Fork 0
/
db_schema.xml
142 lines (136 loc) · 11.4 KB
/
db_schema.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
<?xml version="1.0"?>
<!--
/**
* See LICENSE.md 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="deutschepost_internetmarke_pageformat" resource="default" engine="innodb" comment="Deutsche Post Internetmarke Page Format">
<column name="format_id" xsi:type="int" unsigned="true" nullable="false" identity="false" comment="Page Format ID"/>
<column name="name" xsi:type="varchar" nullable="false" length="255" comment="Name"/>
<column name="description" xsi:type="varchar" nullable="false" length="255" comment="Description"/>
<column name="print_medium" xsi:type="varchar" nullable="false" length="16" comment="Print Medium"/>
<column name="voucher_columns" xsi:type="smallint" unsigned="true" nullable="false" identity="false" comment="Voucher Columns Per Page"/>
<column name="voucher_rows" xsi:type="smallint" unsigned="true" nullable="false" identity="false" comment="Voucher Rows Per Page"/>
<column name="is_address_possible" xsi:type="smallint" unsigned="true" nullable="false" identity="false" comment="Address Support Flag"/>
<column name="is_image_possible" xsi:type="smallint" unsigned="true" nullable="false" identity="false" comment="Image Support Flag"/>
<constraint xsi:type="primary" referenceId="PRIMARY">
<column name="format_id"/>
</constraint>
</table>
<table name="deutschepost_product_list" resource="default" engine="innodb" comment="Deutsche Post Product Price List">
<column name="list_id" xsi:type="smallint" unsigned="true" nullable="false" identity="false" comment="Product Price List ID"/>
<column name="valid_from" xsi:type="datetime" nullable="false" on_update="false" comment="Valid From Date"/>
<column name="valid_to" xsi:type="datetime" nullable="true" on_update="false" comment="Valid To Date"/>
<constraint xsi:type="primary" referenceId="PRIMARY">
<column name="list_id"/>
</constraint>
</table>
<table name="deutschepost_product_basic" resource="default" engine="innodb" comment="Deutsche Post Basic Product">
<column name="product_id" xsi:type="smallint" unsigned="true" nullable="false" identity="false" comment="Basic Product ProdWS ID"/>
<column name="product_list_id" xsi:type="smallint" unsigned="true" nullable="false" identity="false" comment="Product List Reference"/>
<column name="version" xsi:type="smallint" unsigned="true" nullable="false" identity="false" comment="Basic Product Version"/>
<column name="name" xsi:type="varchar" nullable="false" length="150" comment="Product Name"/>
<column name="destination" xsi:type="varchar" nullable="false" length="16" comment="Applicable Destination"/>
<column name="min_length" xsi:type="smallint" unsigned="true" nullable="false" identity="false" comment="Min Length in mm"/>
<column name="max_length" xsi:type="smallint" unsigned="true" nullable="false" identity="false" comment="Max Length in mm"/>
<column name="min_width" xsi:type="smallint" unsigned="true" nullable="false" identity="false" comment="Min Width in mm"/>
<column name="max_width" xsi:type="smallint" unsigned="true" nullable="false" identity="false" comment="Max Width in mm"/>
<column name="min_height" xsi:type="smallint" unsigned="true" nullable="false" identity="false" comment="Min Height in mm"/>
<column name="max_height" xsi:type="smallint" unsigned="true" nullable="false" identity="false" comment="Max Height in mm"/>
<column name="min_weight" xsi:type="smallint" unsigned="true" nullable="true" identity="false" comment="Min Weight in g"/>
<column name="max_weight" xsi:type="smallint" unsigned="true" nullable="true" identity="false" comment="Max Weight in g"/>
<column name="price" xsi:type="smallint" unsigned="true" nullable="false" identity="false" comment="Base Price in Eurocent"/>
<constraint xsi:type="primary" referenceId="PRIMARY">
<column name="product_id"/>
<column name="product_list_id"/>
</constraint>
<constraint xsi:type="foreign"
referenceId="DEUTSCHEPOST_PRD_BASIC_PRD_LIST_ID_DEUTSCHEPOST_PRD_LIST_LIST_ID"
table="deutschepost_product_basic" column="product_list_id"
referenceTable="deutschepost_product_list" referenceColumn="list_id"
onDelete="CASCADE"/>
</table>
<table name="deutschepost_product_additional" resource="default" engine="innodb" comment="Deutsche Post Additional Product">
<column name="product_id" xsi:type="smallint" unsigned="true" nullable="false" identity="false" comment="Product Addition ProdWS ID"/>
<column name="product_list_id" xsi:type="smallint" unsigned="true" nullable="false" identity="false" comment="Product List Reference"/>
<column name="version" xsi:type="smallint" unsigned="true" nullable="false" identity="false" comment="Product Addition Version"/>
<column name="name" xsi:type="varchar" nullable="false" length="150" comment="Product Name"/>
<column name="destination" xsi:type="varchar" nullable="false" length="16" comment="Applicable Destination"/>
<column name="price" xsi:type="smallint" unsigned="true" nullable="false" identity="false" comment="Price Addition in Eurocent"/>
<constraint xsi:type="primary" referenceId="PRIMARY">
<column name="product_id"/>
<column name="product_list_id"/>
</constraint>
<constraint xsi:type="foreign"
referenceId="FK_D8A21B91C632131CF97BF457076F9534"
table="deutschepost_product_additional" column="product_list_id"
referenceTable="deutschepost_product_list" referenceColumn="list_id"
onDelete="CASCADE"/>
</table>
<table name="deutschepost_product_sales" resource="default" engine="innodb" comment="Deutsche Post Sales Product">
<column name="product_id" xsi:type="smallint" unsigned="true" nullable="false" identity="false" comment="Sales Product ProdWS ID"/>
<column name="product_list_id" xsi:type="smallint" unsigned="true" nullable="false" identity="false" comment="Product List Reference"/>
<column name="ppl_id" xsi:type="int" unsigned="true" nullable="false" identity="false" comment="Sales Product PPL ID"/>
<column name="basic_product_id" xsi:type="smallint" unsigned="true" nullable="false" identity="false" comment="Basic Product Reference"/>
<column name="version" xsi:type="smallint" unsigned="true" nullable="false" identity="false" comment="Sales Product Version"/>
<column name="name" xsi:type="varchar" nullable="false" length="150" comment="Product Name"/>
<column name="destination" xsi:type="varchar" nullable="false" length="16" comment="Applicable Destination"/>
<column name="min_length" xsi:type="smallint" unsigned="true" nullable="false" identity="false" comment="Min Length in mm"/>
<column name="max_length" xsi:type="smallint" unsigned="true" nullable="false" identity="false" comment="Max Length in mm"/>
<column name="min_width" xsi:type="smallint" unsigned="true" nullable="false" identity="false" comment="Min Width in mm"/>
<column name="max_width" xsi:type="smallint" unsigned="true" nullable="false" identity="false" comment="Max Width in mm"/>
<column name="min_height" xsi:type="smallint" unsigned="true" nullable="false" identity="false" comment="Min Height in mm"/>
<column name="max_height" xsi:type="smallint" unsigned="true" nullable="false" identity="false" comment="Max Height in mm"/>
<column name="min_weight" xsi:type="smallint" unsigned="true" nullable="true" identity="false" comment="Min Weight in g"/>
<column name="max_weight" xsi:type="smallint" unsigned="true" nullable="true" identity="false" comment="Max Weight in g"/>
<column name="price" xsi:type="smallint" unsigned="true" nullable="false" identity="false" comment="Price in Eurocent"/>
<column name="contract_price" xsi:type="smallint" unsigned="true" nullable="true" identity="false" comment="Contract Price in Eurocent"/>
<constraint xsi:type="primary" referenceId="PRIMARY">
<column name="product_id"/>
<column name="product_list_id"/>
</constraint>
<constraint xsi:type="foreign"
referenceId="DEUTSCHEPOST_PRD_SALES_PRD_LIST_ID_DEUTSCHEPOST_PRD_LIST_LIST_ID"
table="deutschepost_product_sales" column="product_list_id"
referenceTable="deutschepost_product_list" referenceColumn="list_id"
onDelete="CASCADE"/>
<constraint xsi:type="foreign"
referenceId="FK_22A8243772A282B9463A4A054E9B54BF"
table="deutschepost_product_sales" column="basic_product_id"
referenceTable="deutschepost_product_basic" referenceColumn="product_id"
onDelete="CASCADE"/>
</table>
<table name="deutschepost_product_sales_additional" resource="default" engine="innodb" comment="Deutsche Post Additional Product To Sales Product Linkage">
<column name="sales_product_id" xsi:type="smallint" unsigned="true" nullable="false" identity="false" comment="Sales Product Reference"/>
<column name="additional_product_id" xsi:type="smallint" unsigned="true" nullable="false" identity="false" comment="Sales Product Reference"/>
<constraint xsi:type="primary" referenceId="PRIMARY">
<column name="sales_product_id"/>
<column name="additional_product_id"/>
</constraint>
<constraint xsi:type="foreign"
referenceId="FK_7327B7F745A9A9333B22996FEF89A995"
table="deutschepost_product_sales_additional" column="sales_product_id"
referenceTable="deutschepost_product_sales" referenceColumn="product_id"
onDelete="CASCADE"/>
<constraint xsi:type="foreign"
referenceId="FK_A9B969FA489DD653A9DF58F441917BAA"
table="deutschepost_product_sales_additional" column="additional_product_id"
referenceTable="deutschepost_product_additional" referenceColumn="product_id"
onDelete="CASCADE"/>
</table>
<table name="deutschepost_shipment_track" resource="sales" engine="innodb" comment="Deutsche Post Additional Tracking Information">
<column name="track_id" xsi:type="int" padding="10" unsigned="true" nullable="false" identity="false" comment="Shipment Track Reference"/>
<column name="shop_order_id" xsi:type="varchar" nullable="false" length="18" comment="DP Shop Order ID"/>
<column name="voucher_id" xsi:type="varchar" nullable="false" length="20" comment="DP Franking ID"/>
<column name="voucher_track_id" xsi:type="varchar" nullable="true" length="255" comment="DP Shipment Number for Trackable Products"/>
<constraint xsi:type="primary" referenceId="PRIMARY">
<column name="track_id"/>
</constraint>
<constraint xsi:type="foreign"
referenceId="FK_072E08BEDED2D50F146BA8AC07738DDB"
table="deutschepost_shipment_track" column="track_id"
referenceTable="sales_shipment_track" referenceColumn="entity_id"
onDelete="CASCADE"/>
</table>
</schema>