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>
10 <component>CiviMember
</component>
11 <labelField>name
</labelField>
14 <title>Membership Type ID
</title>
15 <type>int unsigned
</type>
16 <required>true
</required>
17 <comment>Membership ID
</comment>
25 <autoincrement>true
</autoincrement>
28 <name>domain_id
</name>
29 <title>Domain ID
</title>
30 <type>int unsigned
</type>
31 <required>true
</required>
33 <table>civicrm_domain
</table>
34 <keyColumn>id
</keyColumn>
35 <labelColumn>name
</labelColumn>
37 <comment>Which Domain is this match entry for
</comment>
44 <name>domain_id
</name>
45 <table>civicrm_domain
</table>
51 <uniqueName>membership_type
</uniqueName>
52 <title>Membership Type
</title>
54 <required>true
</required>
57 <localizable>true
</localizable>
58 <comment>Name of Membership Type
</comment>
66 <name>description
</name>
67 <title>Description
</title>
73 <label>Description
</label>
76 <localizable>true
</localizable>
77 <comment>Description of Membership Type
</comment>
81 <name>member_of_contact_id
</name>
82 <title>Organization ID
</title>
83 <type>int unsigned
</type>
84 <required>true
</required>
85 <comment>Owner organization for this membership type. FK to Contact ID
</comment>
87 <label>Organization
</label>
92 <name>member_of_contact_id
</name>
93 <table>civicrm_contact
</table>
96 <onDelete>RESTRICT
</onDelete>
99 <name>financial_type_id
</name>
100 <title>Financial Type ID
</title>
101 <type>int unsigned
</type>
102 <required>true
</required>
104 <table>civicrm_financial_type
</table>
105 <keyColumn>id
</keyColumn>
106 <labelColumn>name
</labelColumn>
108 <comment>If membership is paid by a contribution - what financial type should be used. FK to civicrm_financial_type.id
</comment>
110 <label>Financial Type
</label>
115 <name>financial_type_id
</name>
116 <table>civicrm_financial_type
</table>
121 <name>minimum_fee
</name>
122 <title>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 <required>true
</required>
139 <comment>Unit in which membership period is expressed.
</comment>
141 <callback>CRM_Core_SelectValues::membershipTypeUnitList
</callback>
149 <name>duration_interval
</name>
150 <title>Membership Type Duration Interval
</title>
155 <comment>Number of duration units in membership period (e.g.
1 year,
12 months).
</comment>
159 <name>period_type
</name>
160 <title>Membership Type Plan
</title>
163 <required>true
</required>
164 <comment>Rolling membership period starts on signup date. Fixed membership periods start on fixed_period_start_day.
</comment>
169 <callback>CRM_Core_SelectValues::periodType
</callback>
174 <name>fixed_period_start_day
</name>
175 <title>Fixed Period Start Day
</title>
177 <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>
181 <name>fixed_period_rollover_day
</name>
182 <title>Fixed Period Rollover Day
</title>
184 <comment>For fixed period memberships, signups after this day (mmdd) rollover to next period.
</comment>
188 <name>relationship_type_id
</name>
189 <title>Membership Type Relationship
</title>
192 <comment>FK to Relationship Type ID
</comment>
194 <serialize>SEPARATOR_TRIMMED
</serialize>
197 <name>index_relationship_type_id
</name>
198 <fieldName>relationship_type_id
</fieldName>
202 <name>relationship_direction
</name>
206 <label>Relationship Direction
</label>
209 <serialize>SEPARATOR_TRIMMED
</serialize>
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>
276 <label>Auto-Renew
</label>
279 <callback>CRM_Core_SelectValues::memberAutoRenew
</callback>
281 <comment>0 = No auto-renew option;
1 = Give option, but not required;
2 = Auto-renew required;
</comment>
285 <name>is_active
</name>
286 <title>Is Active
</title>
289 <comment>Is this membership_type enabled
</comment>
292 <type>CheckBox
</type>
293 <label>Enabled?
</label>