Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | <?xml version="1.0" encoding="iso-8859-1" ?> |
2 | ||
3 | <table> | |
4 | <base>CRM/Contact</base> | |
5 | <class>RelationshipType</class> | |
6 | <name>civicrm_relationship_type</name> | |
d91a4be3 | 7 | <comment>Relationship types s/b structured with contact_a as the 'subject/child' contact and contact_b as the 'object/parent' contact (e.g. Individual A is Employee of Org B).</comment> |
6a488035 TO |
8 | <add>1.1</add> |
9 | <log>true</log> | |
10 | <field> | |
8f069c03 EM |
11 | <name>id</name> |
12 | <type>int unsigned</type> | |
13 | <title>Relationship Type ID</title> | |
14 | <required>true</required> | |
15 | <comment>Primary key</comment> | |
16 | <add>1.1</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>name_a_b</name> |
24 | <type>varchar</type> | |
25 | <title>Relationship Type Name A to B</title> | |
26 | <length>64</length> | |
27 | <comment>name for relationship of contact_a to contact_b.</comment> | |
28 | <add>1.1</add> | |
6a488035 TO |
29 | </field> |
30 | <field> | |
8f069c03 EM |
31 | <name>label_a_b</name> |
32 | <type>varchar</type> | |
33 | <title>Relationship Type Label A to B</title> | |
34 | <length>64</length> | |
35 | <comment>label for relationship of contact_a to contact_b.</comment> | |
36 | <add>3.0</add> | |
6a488035 TO |
37 | </field> |
38 | <field> | |
8f069c03 EM |
39 | <name>name_b_a</name> |
40 | <type>varchar</type> | |
41 | <title>Relationship Type Name B to A</title> | |
42 | <length>64</length> | |
43 | <comment>Optional name for relationship of contact_b to contact_a.</comment> | |
44 | <add>1.1</add> | |
6a488035 TO |
45 | </field> |
46 | <field> | |
8f069c03 EM |
47 | <name>label_b_a</name> |
48 | <type>varchar</type> | |
49 | <title>Relationship Type Label B to A</title> | |
50 | <length>64</length> | |
51 | <comment>Optional label for relationship of contact_b to contact_a.</comment> | |
52 | <add>3.0</add> | |
6a488035 TO |
53 | </field> |
54 | <field> | |
8f069c03 EM |
55 | <name>description</name> |
56 | <type>varchar</type> | |
57 | <title>Relationship Description</title> | |
58 | <length>255</length> | |
59 | <comment>Optional verbose description of the relationship type.</comment> | |
60 | <add>1.1</add> | |
6a488035 TO |
61 | </field> |
62 | <field> | |
8f069c03 EM |
63 | <name>contact_type_a</name> |
64 | <title>Contact Type for Contact A</title> | |
65 | <type>varchar</type> | |
66 | <length>12</length> | |
67 | <comment>If defined, contact_a in a relationship of this type must be a specific contact_type.</comment> | |
68 | <pseudoconstant> | |
69 | <callback>CRM_Contact_BAO_ContactType::getSelectElements</callback> | |
70 | </pseudoconstant> | |
71 | <add>1.1</add> | |
72 | <html> | |
73 | <type>Select</type> | |
74 | </html> | |
6a488035 TO |
75 | </field> |
76 | <field> | |
8f069c03 EM |
77 | <name>contact_type_b</name> |
78 | <title>Contact Type for Contact B</title> | |
79 | <type>varchar</type> | |
80 | <length>12</length> | |
81 | <comment>If defined, contact_b in a relationship of this type must be a specific contact_type.</comment> | |
82 | <pseudoconstant> | |
83 | <callback>CRM_Contact_BAO_ContactType::getSelectElements</callback> | |
84 | </pseudoconstant> | |
85 | <add>1.1</add> | |
86 | <html> | |
87 | <type>Select</type> | |
88 | </html> | |
6a488035 TO |
89 | </field> |
90 | <field> | |
8f069c03 EM |
91 | <name>contact_sub_type_a</name> |
92 | <title>Contact Subtype A</title> | |
93 | <type>varchar</type> | |
94 | <length>64</length> | |
95 | <comment>If defined, contact_sub_type_a in a relationship of this type must be a specific contact_sub_type. | |
96 | </comment> | |
97 | <add>3.1</add> | |
98 | <html> | |
99 | <type>Select</type> | |
100 | </html> | |
6a488035 TO |
101 | </field> |
102 | <field> | |
8f069c03 EM |
103 | <name>contact_sub_type_b</name> |
104 | <title>Contact Subtype B</title> | |
105 | <type>varchar</type> | |
106 | <length>64</length> | |
107 | <comment>If defined, contact_sub_type_b in a relationship of this type must be a specific contact_sub_type. | |
108 | </comment> | |
109 | <add>3.1</add> | |
110 | <html> | |
111 | <type>Select</type> | |
112 | </html> | |
6a488035 TO |
113 | </field> |
114 | <field> | |
8f069c03 EM |
115 | <name>is_reserved</name> |
116 | <type>boolean</type> | |
117 | <title>Relationship Type is Reserved</title> | |
118 | <comment>Is this relationship type a predefined system type (can not be changed or de-activated)?</comment> | |
119 | <add>1.1</add> | |
6a488035 TO |
120 | </field> |
121 | <field> | |
8f069c03 EM |
122 | <name>is_active</name> |
123 | <title>Relationship Type is Active</title> | |
124 | <type>boolean</type> | |
125 | <default>1</default> | |
126 | <comment>Is this relationship type currently active (i.e. can be used when creating or editing relationships)? | |
127 | </comment> | |
128 | <add>1.1</add> | |
6a488035 TO |
129 | </field> |
130 | <index> | |
131 | <name>UI_name_a_b</name> | |
132 | <fieldName>name_a_b</fieldName> | |
133 | <unique>true</unique> | |
134 | <add>2.1</add> | |
135 | </index> | |
136 | <index> | |
137 | <name>UI_name_b_a</name> | |
138 | <fieldName>name_b_a</fieldName> | |
139 | <unique>true</unique> | |
140 | <add>2.1</add> | |
141 | </index> | |
142 | </table> |