Merge remote-tracking branch 'upstream/4.4' into 4.4-4.5-2014-10-14-11-16-10
[civicrm-core.git] / xml / schema / Core / UFJoin.xml
... / ...
CommitLineData
1<?xml version="1.0" encoding="iso-8859-1" ?>
2
3<table>
4 <base>CRM/Core</base>
5 <class>UFJoin</class>
6 <name>civicrm_uf_join</name>
7 <comment>User framework join table. This links various internal civicrm object with a profile. Initial use cases are the donation object and the user module</comment>
8 <add>1.3</add>
9 <log>true</log>
10 <field>
11 <name>id</name>
12 <title>UF Join ID</title>
13 <type>int unsigned</type>
14 <required>true</required>
15 <comment>Unique table ID</comment>
16 <add>1.3</add>
17 </field>
18 <primaryKey>
19 <name>id</name>
20 <autoincrement>true</autoincrement>
21 </primaryKey>
22 <field>
23 <name>is_active</name>
24 <title>Profile Use is active</title>
25 <type>boolean</type>
26 <default>1</default>
27 <comment>Is this join currently active?</comment>
28 <add>1.3</add>
29 </field>
30 <field>
31 <name>module</name>
32 <title>Profile Module</title>
33 <type>varchar</type>
34 <length>64</length>
35 <required>true</required>
36 <comment>Module which owns this uf_join instance, e.g. User Registration, CiviDonate, etc.</comment>
37 <add>1.3</add>
38 </field>
39 <field>
40 <name>entity_table</name>
41 <title>Profile Entity Table</title>
42 <type>varchar</type>
43 <length>64</length>
44 <comment>Name of table where item being referenced is stored. Modules which only need a single collection of uf_join instances may choose not to populate entity_table and entity_id.</comment>
45 <add>1.3</add>
46 </field>
47 <field>
48 <name>entity_id</name>
49 <title>Profile Entity ID</title>
50 <type>int unsigned</type>
51 <comment>Foreign key to the referenced item.</comment>
52 <add>1.3</add>
53 </field>
54 <dynamicForeignKey>
55 <idColumn>entity_id</idColumn>
56 <typeColumn>entity_table</typeColumn>
57 <add>1.3</add>
58 </dynamicForeignKey>
59 <index>
60 <name>index_entity</name>
61 <add>1.3</add>
62 <fieldName>entity_table</fieldName>
63 <fieldName>entity_id</fieldName>
64 <add>1.3</add>
65 </index>
66 <field>
67 <name>weight</name>
68 <title>Profile Weight</title>
69 <type>int</type>
70 <required>true</required>
71 <default>1</default>
72 <comment>Controls display order when multiple user framework groups are setup for concurrent display.</comment>
73 <add>1.3</add>
74 </field>
75 <field>
76 <name>uf_group_id</name>
77 <title>Profile ID</title>
78 <type>int unsigned</type>
79 <required>true</required>
80 <comment>Which form does this field belong to.</comment>
81 <add>1.3</add>
82 <pseudoconstant>
83 <table>civicrm_uf_group</table>
84 <keyColumn>id</keyColumn>
85 <labelColumn>title</labelColumn>
86 </pseudoconstant>
87 <html>
88 <type>Select</type>
89 </html>
90 </field>
91 <foreignKey>
92 <name>uf_group_id</name>
93 <table>civicrm_uf_group</table>
94 <key>id</key>
95 <add>1.3</add>
96 </foreignKey>
97 <field>
98 <name>module_data</name>
99 <title>Profile Use Data</title>
100 <type>longtext</type>
101 <comment>Json serialized array of data used by the ufjoin.module</comment>
102 <add>4.5</add>
103 </field>
104</table>