</foreignKey>
<field>
<name>start_date</name>
+ <uniqueName>relationship_start_date</uniqueName>
<type>date</type>
<title>Relationship Start Date</title>
<comment>date when the relationship started</comment>
<add>1.1</add>
<html>
<type>Select Date</type>
+ <formatType>activityDate</formatType>
</html>
</field>
<field>
<name>end_date</name>
+ <uniqueName>relationship_end_date</uniqueName>
<type>date</type>
<title>Relationship End Date</title>
<comment>date when the relationship ended</comment>
<add>1.1</add>
<html>
<type>Select Date</type>
+ <formatType>activityDate</formatType>
</html>
</field>
<field>
</field>
<field>
<name>is_permission_a_b</name>
- <type>boolean</type>
+ <type>int unsigned</type>
<title>Contact A has Permission Over Contact B</title>
+ <required>true</required>
<default>0</default>
- <comment>is contact a has permission to view / edit contact and
- related data for contact b ?
- </comment>
+ <comment>Permission that Contact A has to view/update Contact B</comment>
<add>2.1</add>
+ <pseudoconstant>
+ <callback>CRM_Core_SelectValues::getPermissionedRelationshipOptions</callback>
+ </pseudoconstant>
<html>
- <type>CheckBox</type>
+ <type>Radio</type>
</html>
</field>
<field>
<name>is_permission_b_a</name>
- <type>boolean</type>
+ <type>int unsigned</type>
<title>Contact B has Permission Over Contact A</title>
+ <required>true</required>
<default>0</default>
- <comment>is contact b has permission to view / edit contact and
- related data for contact a ?
- </comment>
+ <comment>Permission that Contact B has to view/update Contact A</comment>
<add>2.1</add>
+ <pseudoconstant>
+ <callback>CRM_Core_SelectValues::getPermissionedRelationshipOptions</callback>
+ </pseudoconstant>
<html>
- <type>CheckBox</type>
+ <type>Radio</type>
</html>
</field>
<field>