Files
2026-09-15 10:35:56 +08:00

20 lines
1.7 KiB
XML

<?xml version="1.0"?>
<schema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:framework:Setup/Declaration/Schema/etc/schema.xsd">
<table name="esun_contact_popup_submission" resource="default" engine="innodb" comment="eSUN Contact Popup Submissions">
<column xsi:type="int" name="entity_id" unsigned="true" nullable="false" identity="true" comment="Entity ID"/>
<column xsi:type="varchar" name="company" nullable="false" length="255" default="" comment="Company Name"/>
<column xsi:type="varchar" name="question_category" nullable="false" length="64" comment="Question Category"/>
<column xsi:type="varchar" name="name" nullable="false" length="255" comment="Name"/>
<column xsi:type="varchar" name="email" nullable="false" length="255" comment="Email"/>
<column xsi:type="varchar" name="country" nullable="false" length="255" comment="Country"/>
<column xsi:type="text" name="details" nullable="false" comment="Details"/>
<column xsi:type="varchar" name="mail_status" nullable="false" length="32" default="pending" comment="Mail Status"/>
<column xsi:type="text" name="mail_error" nullable="true" comment="Mail Error"/>
<column xsi:type="timestamp" name="created_at" on_update="false" nullable="false" default="CURRENT_TIMESTAMP" comment="Created At"/>
<constraint xsi:type="primary" referenceId="PRIMARY"><column name="entity_id"/></constraint>
<index referenceId="ESUN_CONTACT_POPUP_SUBMISSION_EMAIL" indexType="btree"><column name="email"/></index>
<index referenceId="ESUN_CONTACT_POPUP_SUBMISSION_CREATED_AT" indexType="btree"><column name="created_at"/></index>
</table>
</schema>