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>
46 <name>contact_id_b
</name>
47 <table>civicrm_contact
</table>
50 <onDelete>CASCADE
</onDelete>
53 <name>relationship_type_id
</name>
54 <type>int unsigned
</type>
55 <title>Relationship Type
</title>
56 <required>true
</required>
57 <comment>id of the relationship
</comment>
61 <name>relationship_type_id
</name>
62 <table>civicrm_relationship_type
</table>
65 <onDelete>CASCADE
</onDelete>
68 <name>start_date
</name>
70 <title>Relationship Start Date
</title>
71 <comment>date when the relationship started
</comment>
77 <title>Relationship End Date
</title>
78 <comment>date when the relationship ended
</comment>
82 <name>is_active
</name>
84 <title>Relationship Is Active
</title>
86 <comment>is the relationship active ?
</comment>
90 <name>description
</name>
92 <title>Relationship Description
</title>
94 <comment>Optional verbose description for the relationship.
</comment>
98 <name>is_permission_a_b
</name>
100 <title>Contact A has Permission Over Contact B
</title>
102 <comment>is contact a has permission to view / edit contact and
103 related data for contact b ?
108 <name>is_permission_b_a
</name>
110 <title>Contact B has Permission Over Contact A
</title>
112 <comment>is contact b has permission to view / edit contact and
113 related data for contact a ?
119 <type>int unsigned
</type>
120 <title>Relationship Case
</title>
121 <default>NULL
</default>
122 <comment>FK to civicrm_case
</comment>
127 <table>civicrm_case
</table>
130 <onDelete>CASCADE
</onDelete>