Commit | Line | Data |
---|---|---|
6a488035 TO |
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> | |
61ce9b45 | 12 | <title>UF Join ID</title> |
6a488035 TO |
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> | |
61ce9b45 | 24 | <title>Profile Use is active</title> |
6a488035 TO |
25 | <type>boolean</type> |
26 | <default>1</default> | |
27 | <comment>Is this join currently active?</comment> | |
28 | <add>1.3</add> | |
29 | </field> | |
3c7d2158 | 30 | <field> |
31 | <name>module</name> | |
61ce9b45 | 32 | <title>Profile Module</title> |
3c7d2158 | 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> | |
61ce9b45 | 41 | <title>Profile Entity Table</title> |
3c7d2158 | 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> | |
61ce9b45 | 49 | <title>Profile Entity ID</title> |
3c7d2158 | 50 | <type>int unsigned</type> |
51 | <comment>Foreign key to the referenced item.</comment> | |
52 | <add>1.3</add> | |
6a488035 | 53 | </field> |
71e5aa5c ARW |
54 | <dynamicForeignKey> |
55 | <idColumn>entity_id</idColumn> | |
56 | <typeColumn>entity_table</typeColumn> | |
3c7d2158 | 57 | <add>1.3</add> |
71e5aa5c | 58 | </dynamicForeignKey> |
3c7d2158 | 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> | |
6a488035 TO |
65 | </index> |
66 | <field> | |
67 | <name>weight</name> | |
61ce9b45 | 68 | <title>Profile Weight</title> |
6a488035 TO |
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> | |
3c7d2158 | 75 | <field> |
76 | <name>uf_group_id</name> | |
61ce9b45 | 77 | <title>Profile ID</title> |
3c7d2158 | 78 | <type>int unsigned</type> |
79 | <required>true</required> | |
80 | <comment>Which form does this field belong to.</comment> | |
bd44e0df AS |
81 | <add>1.3</add> |
82 | <pseudoconstant> | |
83 | <table>civicrm_uf_group</table> | |
84 | <keyColumn>id</keyColumn> | |
85 | <labelColumn>title</labelColumn> | |
86 | </pseudoconstant> | |
614d72ec | 87 | <html> |
e0991796 | 88 | <type>Select</type> |
614d72ec | 89 | </html> |
3c7d2158 | 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> | |
133e2c99 | 97 | <field> |
98 | <name>module_data</name> | |
61ce9b45 | 99 | <title>Profile Use Data</title> |
12792976 | 100 | <type>longtext</type> |
133e2c99 | 101 | <comment>Json serialized array of data used by the ufjoin.module</comment> |
102 | <add>4.5</add> | |
103 | </field> | |
6a488035 | 104 | </table> |