Merge pull request #21944 from masetto/unit_plural
[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 <html>
16 <type>Number</type>
17 </html>
18 <add>2.1</add>
19 </field>
20 <primaryKey>
21 <name>id</name>
22 <autoincrement>true</autoincrement>
23 </primaryKey>
24 <field>
25 <name>group_name</name>
26 <title>Group Name</title>
27 <type>varchar</type>
28 <length>32</length>
29 <required>true</required>
30 <comment>group name for cache element, useful in cleaning cache elements</comment>
31 <add>2.1</add>
32 </field>
33 <field>
34 <name>path</name>
35 <title>Path</title>
36 <type>varchar</type>
37 <length>255</length>
38 <comment>Unique path name for cache element</comment>
39 <add>2.1</add>
40 </field>
41 <index>
42 <name>UI_group_path_date</name>
43 <fieldName>group_name</fieldName>
44 <fieldName>path</fieldName>
45 <fieldName>created_date</fieldName>
46 <unique>true</unique>
47 <add>4.2</add>
48 </index>
49 <field>
50 <name>data</name>
51 <title>Data</title>
52 <type>longtext</type>
53 <comment>data associated with this path</comment>
54 <add>2.1</add>
55 </field>
56 <field>
57 <name>component_id</name>
58 <title>Component ID</title>
59 <type>int unsigned</type>
60 <comment>Component that this menu item belongs to</comment>
61 <add>2.1</add>
62 <pseudoconstant>
63 <table>civicrm_component</table>
64 <keyColumn>id</keyColumn>
65 <labelColumn>name</labelColumn>
66 </pseudoconstant>
67 <html>
68 <type>Select</type>
69 <label>Component</label>
70 </html>
71 </field>
72 <foreignKey>
73 <name>component_id</name>
74 <table>civicrm_component</table>
75 <key>id</key>
76 <add>2.1</add>
77 </foreignKey>
78 <field>
79 <name>created_date</name>
80 <title>Created Date</title>
81 <type>timestamp</type>
82 <default>CURRENT_TIMESTAMP</default>
83 <comment>When was the cache item created</comment>
84 <add>2.1</add>
85 </field>
86 <field>
87 <name>expired_date</name>
88 <title>Expired Date</title>
89 <type>timestamp</type>
90 <default>NULL</default>
91 <required>false</required>
92 <comment>When should the cache item expire</comment>
93 <add>2.1</add>
94 </field>
95 </table>