Merge pull request #19086 from agileware/CIVICRM-1617
[civicrm-core.git] / xml / schema / Core / Cache.xml
1 <?xml version="1.0" encoding="iso-8859-1" ?>
2
3 <table>
4 <base>CRM/Core</base>
5 <class>Cache</class>
6 <name>civicrm_cache</name>
7 <comment>Table to cache items for civicrm components.</comment>
8 <add>2.1</add>
9 <field>
10 <name>id</name>
11 <title>Cache ID</title>
12 <type>int unsigned</type>
13 <required>true</required>
14 <comment>Unique table ID</comment>
15 <add>2.1</add>
16 </field>
17 <primaryKey>
18 <name>id</name>
19 <autoincrement>true</autoincrement>
20 </primaryKey>
21 <field>
22 <name>group_name</name>
23 <title>Group Name</title>
24 <type>varchar</type>
25 <length>32</length>
26 <required>true</required>
27 <comment>group name for cache element, useful in cleaning cache elements</comment>
28 <add>2.1</add>
29 </field>
30 <field>
31 <name>path</name>
32 <title>Path</title>
33 <type>varchar</type>
34 <length>255</length>
35 <comment>Unique path name for cache element</comment>
36 <add>2.1</add>
37 </field>
38 <index>
39 <name>UI_group_path_date</name>
40 <fieldName>group_name</fieldName>
41 <fieldName>path</fieldName>
42 <fieldName>created_date</fieldName>
43 <unique>true</unique>
44 <add>4.2</add>
45 </index>
46 <field>
47 <name>data</name>
48 <title>Data</title>
49 <type>longtext</type>
50 <comment>data associated with this path</comment>
51 <add>2.1</add>
52 </field>
53 <field>
54 <name>component_id</name>
55 <title>Component ID</title>
56 <type>int unsigned</type>
57 <comment>Component that this menu item belongs to</comment>
58 <add>2.1</add>
59 <pseudoconstant>
60 <table>civicrm_component</table>
61 <keyColumn>id</keyColumn>
62 <labelColumn>name</labelColumn>
63 </pseudoconstant>
64 <html>
65 <type>Select</type>
66 </html>
67 </field>
68 <foreignKey>
69 <name>component_id</name>
70 <table>civicrm_component</table>
71 <key>id</key>
72 <add>2.1</add>
73 </foreignKey>
74 <field>
75 <name>created_date</name>
76 <title>Created Date</title>
77 <type>timestamp</type>
78 <default>CURRENT_TIMESTAMP</default>
79 <comment>When was the cache item created</comment>
80 <add>2.1</add>
81 </field>
82 <field>
83 <name>expired_date</name>
84 <title>Expired Date</title>
85 <type>timestamp</type>
86 <default>NULL</default>
87 <required>false</required>
88 <comment>When should the cache item expire</comment>
89 <add>2.1</add>
90 </field>
91 </table>