1 <?xml version=
"1.0" encoding=
"iso-8859-1" ?>
4 <base>CRM/Contact
</base>
5 <class>Relationship
</class>
6 <name>civicrm_relationship
</name>
7 <comment>Relationship between any
2 types of contacts.
</comment>
12 <type>int unsigned
</type>
13 <title>Relationship ID
</title>
14 <required>true
</required>
15 <comment>Relationship ID
</comment>
20 <autoincrement>true
</autoincrement>
23 <name>contact_id_a
</name>
24 <type>int unsigned
</type>
25 <title>Contact A
</title>
26 <required>true
</required>
27 <comment>id of the first contact
</comment>
31 <name>contact_id_a
</name>
32 <table>civicrm_contact
</table>
35 <onDelete>CASCADE
</onDelete>
38 <name>contact_id_b
</name>
39 <type>int unsigned
</type>
40 <title>Contact B
</title>
41 <required>true
</required>
42 <comment>id of the second contact
</comment>
45 <type>EntityRef
</type>
49 <name>contact_id_b
</name>
50 <table>civicrm_contact
</table>
53 <onDelete>CASCADE
</onDelete>
56 <name>relationship_type_id
</name>
57 <type>int unsigned
</type>
58 <title>Relationship Type
</title>
59 <required>true
</required>
60 <comment>id of the relationship
</comment>
67 <name>relationship_type_id
</name>
68 <table>civicrm_relationship_type
</table>
71 <onDelete>CASCADE
</onDelete>
74 <name>start_date
</name>
76 <title>Relationship Start Date
</title>
77 <comment>date when the relationship started
</comment>
80 <type>Select Date
</type>
86 <title>Relationship End Date
</title>
87 <comment>date when the relationship ended
</comment>
90 <type>Select Date
</type>
94 <name>is_active
</name>
96 <title>Relationship Is Active
</title>
98 <comment>is the relationship active ?
</comment>
101 <type>CheckBox
</type>
105 <name>description
</name>
107 <title>Relationship Description
</title>
109 <comment>Optional verbose description for the relationship.
</comment>
116 <name>is_permission_a_b
</name>
118 <title>Contact A has Permission Over Contact B
</title>
120 <comment>is contact a has permission to view / edit contact and
121 related data for contact b ?
125 <type>CheckBox
</type>
129 <name>is_permission_b_a
</name>
131 <title>Contact B has Permission Over Contact A
</title>
133 <comment>is contact b has permission to view / edit contact and
134 related data for contact a ?
138 <type>CheckBox
</type>
143 <type>int unsigned
</type>
144 <title>Relationship Case
</title>
145 <default>NULL
</default>
146 <comment>FK to civicrm_case
</comment>
151 <table>civicrm_case
</table>
154 <onDelete>CASCADE
</onDelete>