|
11 | 11 | <column xsi:type="int" name="entity_id" padding="10" unsigned="true" nullable="false" comment="Entity ID"/> |
12 | 12 | <column xsi:type="varchar" name="entity_type" length="255" nullable="false" comment="Entity Type"/> |
13 | 13 | <column xsi:type="timestamp" name="scheduled_at" nullable="false" comment="Scheduled At"/> |
14 | | - <column xsi:type="varchar" name="state" length="255" nullable="false" comment="State"/> |
15 | | - <column xsi:type="varchar" name="status" length="255" nullable="false" comment="Status"/> |
| 14 | + <column xsi:type="varchar" name="state" length="191" nullable="false" comment="State"/> |
| 15 | + <column xsi:type="varchar" name="status" length="191" nullable="false" comment="Status"/> |
16 | 16 | <column xsi:type="text" name="message" nullable="true" comment="Message"/> |
17 | 17 | <column xsi:type="timestamp" name="erased_at" nullable="true" comment="Erased At"/> |
18 | 18 | <constraint xsi:type="primary" referenceId="PRIMARY"> |
|
22 | 22 | <column name="entity_id"/> |
23 | 23 | <column name="entity_type"/> |
24 | 24 | </constraint>--> |
25 | | - <index referenceId="OPENGENTO_GDPR_ERASE_ENTITY_ENTITY_ID" indexType="btree"> |
| 25 | + <index referenceId="OPENGENTO_GDPR_ERASE_ENTITY_IDENTITY" indexType="btree"> |
| 26 | + <column name="entity_type"/> |
26 | 27 | <column name="entity_id"/> |
27 | 28 | </index> |
28 | | - <index referenceId="OPENGENTO_GDPR_ERASE_ENTITY_ENTITY_TYPE" indexType="btree"> |
29 | | - <column name="entity_type"/> |
| 29 | + <index referenceId="OPENGENTO_GDPR_ERASE_ENTITY_SCHEDULED_EXPORT" indexType="btree"> |
| 30 | + <column name="scheduled_at"/> |
| 31 | + <column name="state"/> |
| 32 | + <column name="status"/> |
30 | 33 | </index> |
31 | 34 | </table> |
32 | 35 | <table name="opengento_gdpr_export_entity" resource="default" engine="innodb" comment="Export Entity"> |
33 | 36 | <column xsi:type="int" name="export_id" padding="11" unsigned="true" nullable="false" identity="true" comment="Export ID"/> |
34 | 37 | <column xsi:type="int" name="entity_id" padding="10" unsigned="true" nullable="false" comment="Entity ID"/> |
35 | | - <column xsi:type="varchar" name="entity_type" length="255" nullable="false" comment="Entity Type"/> |
| 38 | + <column xsi:type="varchar" name="entity_type" length="191" nullable="false" comment="Entity Type"/> |
36 | 39 | <column xsi:type="varchar" name="file_name" length="255" nullable="false" comment="File Name"/> |
37 | 40 | <column xsi:type="text" name="file_path" nullable="true" comment="File Path"/> |
38 | 41 | <column xsi:type="timestamp" name="created_at" on_update="false" nullable="false" default="CURRENT_TIMESTAMP" comment="Created At"/> |
|
41 | 44 | <constraint xsi:type="primary" referenceId="PRIMARY"> |
42 | 45 | <column name="export_id"/> |
43 | 46 | </constraint> |
44 | | - <index referenceId="OPENGENTO_GDPR_EXPORT_ENTITY_ENTITY_ID" indexType="btree"> |
| 47 | + <index referenceId="OPENGENTO_GDPR_EXPORT_ENTITY_IDENTITY" indexType="btree"> |
45 | 48 | <column name="entity_id"/> |
46 | | - </index> |
47 | | - <index referenceId="OPENGENTO_GDPR_EXPORT_ENTITY_ENTITY_TYPE" indexType="btree"> |
48 | 49 | <column name="entity_type"/> |
49 | 50 | </index> |
| 51 | + <index referenceId="OPENGENTO_GDPR_EXPORT_ENTITY_EXPORTED_AT" indexType="btree"> |
| 52 | + <column name="exported_at"/> |
| 53 | + </index> |
| 54 | + <index referenceId="OPENGENTO_GDPR_EXPORT_ENTITY_EXPIRED_AT" indexType="btree"> |
| 55 | + <column name="expired_at"/> |
| 56 | + </index> |
50 | 57 | </table> |
51 | 58 | <table name="opengento_gdpr_action_entity" resource="default" engine="innodb" comment="Action Entity"> |
52 | 59 | <column xsi:type="int" name="action_id" padding="11" unsigned="true" nullable="false" identity="true" comment="Export ID"/> |
53 | | - <column xsi:type="varchar" name="type" length="255" nullable="false" comment="Type"/> |
| 60 | + <column xsi:type="varchar" name="type" length="191" nullable="false" comment="Type"/> |
54 | 61 | <column xsi:type="text" name="performed_from" nullable="false" comment="Performed From"/> |
55 | 62 | <column xsi:type="text" name="performed_by" nullable="true" comment="Performed By"/> |
56 | 63 | <column xsi:type="timestamp" name="performed_at" nullable="false" comment="Performed At"/> |
57 | | - <column xsi:type="varchar" name="state" length="255" nullable="false" comment="State"/> |
| 64 | + <column xsi:type="varchar" name="state" length="191" nullable="false" comment="State"/> |
58 | 65 | <column xsi:type="text" name="message" nullable="false" comment="Message"/> |
59 | 66 | <column xsi:type="text" name="parameters" nullable="false" comment="Parameters"/> |
60 | 67 | <constraint xsi:type="primary" referenceId="PRIMARY"> |
|
0 commit comments