-
Notifications
You must be signed in to change notification settings - Fork 3
/
db_schema.xml
15 lines (15 loc) · 1.17 KB
/
db_schema.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<schema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Setup/Declaration/Schema/etc/schema.xsd">
<table name="juno_creditcard_token">
<column xsi:type="int" name="id" unsigned="true" nullable="false" identity="true" comment="Entity Id" />
<column xsi:type="int" name="customer_id" padding="10" unsigned="true" nullable="false" comment="Customer ID"/>
<column xsi:type="varchar" name="credit_card_id" nullable="false" length="255" comment="Credit Card ID at Juno"/>
<column xsi:type="varchar" name="cc_last" nullable="false" length="10" comment="Credit Card Last Numbers"/>
<column xsi:type="datetime" name="created_at" nullable="false" comment="Created At"/>
<constraint xsi:type="primary" referenceId="PRIMARY">
<column name="id"/>
</constraint>
<constraint xsi:type="foreign" referenceId="CUSTOMER_ENTITY_ENTITY_ID_DIGITALHUB_JUNO_CREDITCARD_TOKEN_CUSTOMER_ID"
table="juno_creditcard_token" column="customer_id" referenceTable="customer_entity"
referenceColumn="entity_id" onDelete="CASCADE" />
</table>
</schema>