1 <?xml version=
"1.0" encoding=
"iso-8859-1" ?>
4 <base>CRM/Member
</base>
5 <class>MembershipType
</class>
6 <name>civicrm_membership_type
</name>
7 <comment>Sites can configure multiple types of memberships. They encode the owner organization, fee, and the rules needed to set start and end (expire) dates when a member signs up for that type.
</comment>
12 <type>int unsigned
</type>
13 <required>true
</required>
14 <comment>Membership Id
</comment>
19 <autoincrement>true
</autoincrement>
22 <name>domain_id
</name>
23 <type>int unsigned
</type>
24 <required>true
</required>
26 <table>civicrm_domain
</table>
27 <keyColumn>id
</keyColumn>
28 <labelColumn>name
</labelColumn>
30 <comment>Which Domain is this match entry for
</comment>
34 <name>domain_id
</name>
35 <table>civicrm_domain
</table>
41 <uniqueName>membership_type
</uniqueName>
42 <title>Membership Type
</title>
46 <localizable>true
</localizable>
47 <comment>Name of Membership Type
</comment>
51 <name>description
</name>
59 <localizable>true
</localizable>
60 <comment>Description of Membership Type
</comment>
64 <name>member_of_contact_id
</name>
65 <type>int unsigned
</type>
66 <required>true
</required>
67 <comment>Owner organization for this membership type. FK to Contact ID
</comment>
71 <name>member_of_contact_id
</name>
72 <table>civicrm_contact
</table>
75 <onDelete>RESTRICT
</onDelete>
78 <name>contribution_type_id
</name>
79 <type>int unsigned
</type>
80 <required>true
</required>
81 <comment>If membership is paid by a contribution - what contribution type should be used. FK to Contribution Type ID
</comment>
86 <name>contribution_type_id
</name>
87 <table>civicrm_contribution_type
</table>
93 <name>financial_type_id
</name>
94 <type>int unsigned
</type>
95 <required>true
</required>
97 <table>civicrm_financial_type
</table>
98 <keyColumn>id
</keyColumn>
99 <labelColumn>name
</labelColumn>
101 <comment>If membership is paid by a contribution - what financial type should be used. FK to civicrm_financial_type.id
</comment>
105 <name>financial_type_id
</name>
106 <table>civicrm_financial_type
</table>
111 <name>minimum_fee
</name>
113 <comment>Minimum fee for this membership (
0 for free/complimentary memberships).
</comment>
118 <name>duration_unit
</name>
121 <comment>Unit in which membership period is expressed.
</comment>
123 <callback>CRM_Core_SelectValues::membershipTypeUnitList
</callback>
131 <name>duration_interval
</name>
133 <comment>Number of duration units in membership period (e.g.
1 year,
12 months).
</comment>
137 <name>period_type
</name>
140 <comment>Rolling membership period starts on signup date. Fixed membership periods start on fixed_period_start_day.
</comment>
142 <callback>CRM_Core_SelectValues::periodType
</callback>
147 <name>fixed_period_start_day
</name>
149 <comment>For fixed period memberships, month and day (mmdd) on which subscription/membership will start. Period start is back-dated unless after rollover day.
</comment>
153 <name>fixed_period_rollover_day
</name>
155 <comment>For fixed period memberships, signups after this day (mmdd) rollover to next period.
</comment>
159 <name>relationship_type_id
</name>
162 <comment>FK to Relationship Type ID
</comment>
166 <name>relationship_type_id
</name>
167 <table>civicrm_relationship_type
</table>
173 <name>index_relationship_type_id
</name>
174 <fieldName>relationship_type_id
</fieldName>
178 <name>relationship_direction
</name>
184 <name>max_related
</name>
186 <comment>Maximum number of related memberships.
</comment>
190 <name>visibility
</name>
191 <title>Visible
</title>
196 <callback>CRM_Core_SelectValues::memberVisibility
</callback>
204 <title>Weight
</title>
209 <name>receipt_text_signup
</name>
212 <type>TextArea
</type>
217 <comment>Receipt Text for membership signup
</comment>
221 <name>receipt_text_renewal
</name>
224 <type>TextArea
</type>
229 <comment>Receipt Text for membership renewal
</comment>
233 <name>auto_renew
</name>
236 <comment>0 = No auto-renew option;
1 = Give option, but not required;
2 = Auto-renew required;
</comment>
240 <name>is_active
</name>
241 <title>Is Active
</title>
244 <comment>Is this membership_type enabled
</comment>