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> | |
8f069c03 EM |
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> | |
6a488035 TO |
17 | </field> |
18 | <primaryKey> | |
8f069c03 EM |
19 | <name>id</name> |
20 | <autoincrement>true</autoincrement> | |
6a488035 TO |
21 | </primaryKey> |
22 | <field> | |
8f069c03 EM |
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> | |
6a488035 | 29 | </field> |
3c7d2158 | 30 | <field> |
8f069c03 EM |
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> | |
3c7d2158 | 38 | </field> |
39 | <field> | |
8f069c03 EM |
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> | |
27307972 SL |
45 | <pseudoconstant> |
46 | <callback>CRM_Core_BAO_UFJoin::entityTables</callback> | |
47 | </pseudoconstant> | |
8f069c03 | 48 | <add>1.3</add> |
3c7d2158 | 49 | </field> |
50 | <field> | |
8f069c03 EM |
51 | <name>entity_id</name> |
52 | <title>Profile Entity ID</title> | |
53 | <type>int unsigned</type> | |
54 | <comment>Foreign key to the referenced item.</comment> | |
55 | <add>1.3</add> | |
6a488035 | 56 | </field> |
71e5aa5c | 57 | <dynamicForeignKey> |
8f069c03 EM |
58 | <idColumn>entity_id</idColumn> |
59 | <typeColumn>entity_table</typeColumn> | |
60 | <add>1.3</add> | |
71e5aa5c | 61 | </dynamicForeignKey> |
3c7d2158 | 62 | <index> |
8f069c03 | 63 | <name>index_entity</name> |
8f069c03 EM |
64 | <fieldName>entity_table</fieldName> |
65 | <fieldName>entity_id</fieldName> | |
66 | <add>1.3</add> | |
6a488035 TO |
67 | </index> |
68 | <field> | |
8f069c03 | 69 | <name>weight</name> |
7ecddde4 | 70 | <title>Order</title> |
8f069c03 EM |
71 | <type>int</type> |
72 | <required>true</required> | |
73 | <default>1</default> | |
74 | <comment>Controls display order when multiple user framework groups are setup for concurrent display.</comment> | |
75 | <add>1.3</add> | |
6a488035 | 76 | </field> |
3c7d2158 | 77 | <field> |
8f069c03 EM |
78 | <name>uf_group_id</name> |
79 | <title>Profile ID</title> | |
80 | <type>int unsigned</type> | |
81 | <required>true</required> | |
82 | <comment>Which form does this field belong to.</comment> | |
83 | <add>1.3</add> | |
84 | <pseudoconstant> | |
85 | <table>civicrm_uf_group</table> | |
86 | <keyColumn>id</keyColumn> | |
87 | <labelColumn>title</labelColumn> | |
88 | </pseudoconstant> | |
89 | <html> | |
90 | <type>Select</type> | |
91 | </html> | |
3c7d2158 | 92 | </field> |
93 | <foreignKey> | |
8f069c03 EM |
94 | <name>uf_group_id</name> |
95 | <table>civicrm_uf_group</table> | |
96 | <key>id</key> | |
97 | <add>1.3</add> | |
3c7d2158 | 98 | </foreignKey> |
133e2c99 | 99 | <field> |
8f069c03 EM |
100 | <name>module_data</name> |
101 | <title>Profile Use Data</title> | |
102 | <type>longtext</type> | |
103 | <comment>Json serialized array of data used by the ufjoin.module</comment> | |
104 | <add>4.5</add> | |
133e2c99 | 105 | </field> |
6a488035 | 106 | </table> |