Merge pull request #3365 from totten/master-reconcile-case-xml
[civicrm-core.git] / xml / schema / Core / Managed.xml
1 <?xml version="1.0" encoding="iso-8859-1" ?>
2
3 <table>
4 <base>CRM/Core</base>
5 <class>Managed</class>
6 <name>civicrm_managed</name>
7 <comment>List of declaratively managed objects</comment>
8 <add>4.2</add>
9 <log>false</log>
10 <field>
11 <name>id</name>
12 <type>int unsigned</type>
13 <required>true</required>
14 <comment>Surrogate Key</comment>
15 <add>4.2</add>
16 </field>
17 <primaryKey>
18 <name>id</name>
19 <autoincrement>true</autoincrement>
20 </primaryKey>
21 <field>
22 <name>module</name>
23 <title>Module</title>
24 <type>varchar</type>
25 <length>127</length>
26 <required>true</required>
27 <comment>Name of the module which declared this object</comment>
28 <add>4.2</add>
29 </field>
30 <field>
31 <name>name</name>
32 <title>Name</title>
33 <type>varchar</type>
34 <length>127</length>
35 <comment>Symbolic name used by the module to identify the object</comment>
36 <add>4.2</add>
37 </field>
38 <index>
39 <name>UI_managed_module_name</name>
40 <fieldName>module</fieldName>
41 <fieldName>name</fieldName>
42 <add>4.2</add>
43 </index>
44 <field>
45 <name>entity_type</name>
46 <type>varchar</type>
47 <length>64</length>
48 <required>true</required>
49 <comment>API entity type</comment>
50 <add>4.2</add>
51 </field>
52 <field>
53 <name>entity_id</name>
54 <type>int unsigned</type>
55 <required>true</required>
56 <comment>Foreign key to the referenced item.</comment>
57 <add>4.2</add>
58 </field>
59 <field>
60 <name>cleanup</name>
61 <type>varchar</type>
62 <length>32</length>
63 <comment>Policy on when to cleanup entity (always, never, unused)</comment>
64 <pseudoconstant>
65 <callback>CRM_Core_ManagedEntities::getCleanupOptions</callback>
66 </pseudoconstant>
67 <html>
68 <type>Select</type>
69 </html>
70 <add>4.5</add>
71 </field>
72 <index>
73 <name>UI_managed_entity</name>
74 <fieldName>entity_type</fieldName>
75 <fieldName>entity_id</fieldName>
76 <add>4.2</add>
77 </index>
78 </table>