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 <title>Membership Type ID
</title>
13 <type>int unsigned
</type>
14 <required>true
</required>
15 <comment>Membership Id
</comment>
20 <autoincrement>true
</autoincrement>
23 <name>domain_id
</name>
24 <title>Membership Type Domain
</title>
25 <type>int unsigned
</type>
26 <required>true
</required>
28 <table>civicrm_domain
</table>
29 <keyColumn>id
</keyColumn>
30 <labelColumn>name
</labelColumn>
32 <comment>Which Domain is this match entry for
</comment>
36 <name>domain_id
</name>
37 <table>civicrm_domain
</table>
43 <uniqueName>membership_type
</uniqueName>
44 <title>Membership Type
</title>
48 <localizable>true
</localizable>
49 <comment>Name of Membership Type
</comment>
57 <name>description
</name>
58 <title>Membership Type Description
</title>
64 <label>Description
</label>
67 <localizable>true
</localizable>
68 <comment>Description of Membership Type
</comment>
72 <name>member_of_contact_id
</name>
73 <title>Membership Type Organization
</title>
74 <type>int unsigned
</type>
75 <required>true
</required>
76 <comment>Owner organization for this membership type. FK to Contact ID
</comment>
80 <name>member_of_contact_id
</name>
81 <table>civicrm_contact
</table>
84 <onDelete>RESTRICT
</onDelete>
87 <name>contribution_type_id
</name>
88 <type>int unsigned
</type>
89 <required>true
</required>
90 <comment>If membership is paid by a contribution - what contribution type should be used. FK to Contribution Type ID
</comment>
95 <name>contribution_type_id
</name>
96 <table>civicrm_contribution_type
</table>
102 <name>financial_type_id
</name>
103 <title>Membership Financial Type
</title>
104 <type>int unsigned
</type>
105 <required>true
</required>
107 <table>civicrm_financial_type
</table>
108 <keyColumn>id
</keyColumn>
109 <labelColumn>name
</labelColumn>
111 <comment>If membership is paid by a contribution - what financial type should be used. FK to civicrm_financial_type.id
</comment>
115 <name>financial_type_id
</name>
116 <table>civicrm_financial_type
</table>
121 <name>minimum_fee
</name>
122 <title>Membership Type Minimum Fee
</title>
124 <length>18,
9</length>
125 <comment>Minimum fee for this membership (
0 for free/complimentary memberships).
</comment>
129 <label>Minimum Fee
</label>
134 <name>duration_unit
</name>
135 <title>Membership Type Duration Unit
</title>
138 <comment>Unit in which membership period is expressed.
</comment>
140 <callback>CRM_Core_SelectValues::membershipTypeUnitList
</callback>
148 <name>duration_interval
</name>
149 <title>Membership Type Duration Interval
</title>
154 <comment>Number of duration units in membership period (e.g.
1 year,
12 months).
</comment>
158 <name>period_type
</name>
159 <title>Membership Type Plan
</title>
162 <comment>Rolling membership period starts on signup date. Fixed membership periods start on fixed_period_start_day.
</comment>
167 <callback>CRM_Core_SelectValues::periodType
</callback>
172 <name>fixed_period_start_day
</name>
173 <title>Fixed Period Start Day
</title>
175 <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>
179 <name>fixed_period_rollover_day
</name>
180 <title>Fixed Period Rollover Day
</title>
182 <comment>For fixed period memberships, signups after this day (mmdd) rollover to next period.
</comment>
186 <name>relationship_type_id
</name>
187 <title>Membership Type Relationship
</title>
190 <comment>FK to Relationship Type ID
</comment>
194 <name>relationship_type_id
</name>
195 <table>civicrm_relationship_type
</table>
201 <name>index_relationship_type_id
</name>
202 <fieldName>relationship_type_id
</fieldName>
206 <name>relationship_direction
</name>
212 <name>max_related
</name>
213 <title>Max Related Members for Type
</title>
215 <comment>Maximum number of related memberships.
</comment>
219 <label>Max Related
</label>
223 <name>visibility
</name>
224 <title>Visible
</title>
229 <callback>CRM_Core_SelectValues::memberVisibility
</callback>
245 <name>receipt_text_signup
</name>
246 <title>Membership Type Receipt Text
</title>
249 <type>TextArea
</type>
254 <comment>Receipt Text for membership signup
</comment>
258 <name>receipt_text_renewal
</name>
259 <title>Membership Type Renewal Text
</title>
262 <type>TextArea
</type>
267 <comment>Receipt Text for membership renewal
</comment>
271 <name>auto_renew
</name>
275 <callback>CRM_Core_SelectValues::memberAutoRenew
</callback>
277 <comment>0 = No auto-renew option;
1 = Give option, but not required;
2 = Auto-renew required;
</comment>
281 <name>is_active
</name>
282 <title>Is Active
</title>
285 <comment>Is this membership_type enabled
</comment>
288 <type>CheckBox
</type>
289 <label>Enabled?
</label>