You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

46 lines
2.6 KiB

  1. <?xml version="1.0"?>
  2. <!--
  3. /**
  4. * Copyright © Magento, Inc. All rights reserved.
  5. * See COPYING.txt for license details.
  6. */
  7. -->
  8. <schema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  9. xsi:noNamespaceSchemaLocation="urn:magento:framework:Setup/Declaration/Schema/etc/schema.xsd">
  10. <table name="email_template" resource="default" engine="innodb" comment="Email Templates">
  11. <column xsi:type="int" name="template_id" unsigned="true" nullable="false" identity="true"
  12. comment="Template ID"/>
  13. <column xsi:type="varchar" name="template_code" nullable="false" length="150" comment="Template Name"/>
  14. <column xsi:type="text" name="template_text" nullable="false" comment="Template Content"/>
  15. <column xsi:type="text" name="template_styles" nullable="true" comment="Templste Styles"/>
  16. <column xsi:type="int" name="template_type" unsigned="true" nullable="true" identity="false"
  17. comment="Template Type"/>
  18. <column xsi:type="varchar" name="template_subject" nullable="false" length="200" comment="Template Subject"/>
  19. <column xsi:type="varchar" name="template_sender_name" nullable="true" length="200"
  20. comment="Template Sender Name"/>
  21. <column xsi:type="varchar" name="template_sender_email" nullable="true" length="200"
  22. comment="Template Sender Email"/>
  23. <column xsi:type="timestamp" name="added_at" on_update="false" nullable="false" default="CURRENT_TIMESTAMP"
  24. comment="Date of Template Creation"/>
  25. <column xsi:type="timestamp" name="modified_at" on_update="true" nullable="false" default="CURRENT_TIMESTAMP"
  26. comment="Date of Template Modification"/>
  27. <column xsi:type="varchar" name="orig_template_code" nullable="true" length="200"
  28. comment="Original Template Code"/>
  29. <column xsi:type="text" name="orig_template_variables" nullable="true" comment="Original Template Variables"/>
  30. <column xsi:type="boolean" name="is_legacy" nullable="false"
  31. default="false" comment="Should the template render in legacy mode"/>
  32. <constraint xsi:type="primary" referenceId="PRIMARY">
  33. <column name="template_id"/>
  34. </constraint>
  35. <constraint xsi:type="unique" referenceId="EMAIL_TEMPLATE_TEMPLATE_CODE">
  36. <column name="template_code"/>
  37. </constraint>
  38. <index referenceId="EMAIL_TEMPLATE_ADDED_AT" indexType="btree">
  39. <column name="added_at"/>
  40. </index>
  41. <index referenceId="EMAIL_TEMPLATE_MODIFIED_AT" indexType="btree">
  42. <column name="modified_at"/>
  43. </index>
  44. </table>
  45. </schema>