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>
46 <required>true
</required>
49 <localizable>true
</localizable>
50 <comment>Name of Membership Type
</comment>
58 <name>description
</name>
59 <title>Membership Type Description
</title>
65 <label>Description
</label>
68 <localizable>true
</localizable>
69 <comment>Description of Membership Type
</comment>
73 <name>member_of_contact_id
</name>
74 <title>Membership Type Organization
</title>
75 <type>int unsigned
</type>
76 <required>true
</required>
77 <comment>Owner organization for this membership type. FK to Contact ID
</comment>
81 <name>member_of_contact_id
</name>
82 <table>civicrm_contact
</table>
85 <onDelete>RESTRICT
</onDelete>
88 <name>financial_type_id
</name>
89 <title>Membership Financial Type
</title>
90 <type>int unsigned
</type>
91 <required>true
</required>
93 <table>civicrm_financial_type
</table>
94 <keyColumn>id
</keyColumn>
95 <labelColumn>name
</labelColumn>
97 <comment>If membership is paid by a contribution - what financial type should be used. FK to civicrm_financial_type.id
</comment>
101 <name>financial_type_id
</name>
102 <table>civicrm_financial_type
</table>
107 <name>minimum_fee
</name>
108 <title>Membership Type Minimum Fee
</title>
110 <length>18,
9</length>
111 <comment>Minimum fee for this membership (
0 for free/complimentary memberships).
</comment>
115 <label>Minimum Fee
</label>
120 <name>duration_unit
</name>
121 <title>Membership Type Duration Unit
</title>
124 <comment>Unit in which membership period is expressed.
</comment>
126 <callback>CRM_Core_SelectValues::membershipTypeUnitList
</callback>
134 <name>duration_interval
</name>
135 <title>Membership Type Duration Interval
</title>
140 <comment>Number of duration units in membership period (e.g.
1 year,
12 months).
</comment>
144 <name>period_type
</name>
145 <title>Membership Type Plan
</title>
148 <required>true
</required>
149 <comment>Rolling membership period starts on signup date. Fixed membership periods start on fixed_period_start_day.
</comment>
154 <callback>CRM_Core_SelectValues::periodType
</callback>
159 <name>fixed_period_start_day
</name>
160 <title>Fixed Period Start Day
</title>
162 <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>
166 <name>fixed_period_rollover_day
</name>
167 <title>Fixed Period Rollover Day
</title>
169 <comment>For fixed period memberships, signups after this day (mmdd) rollover to next period.
</comment>
173 <name>relationship_type_id
</name>
174 <title>Membership Type Relationship
</title>
177 <comment>FK to Relationship Type ID
</comment>
179 <serialize>SEPARATOR_TRIMMED
</serialize>
182 <name>index_relationship_type_id
</name>
183 <fieldName>relationship_type_id
</fieldName>
187 <name>relationship_direction
</name>
191 <serialize>SEPARATOR_TRIMMED
</serialize>
194 <name>max_related
</name>
195 <title>Max Related Members for Type
</title>
197 <comment>Maximum number of related memberships.
</comment>
201 <label>Max Related
</label>
205 <name>visibility
</name>
206 <title>Visible
</title>
211 <callback>CRM_Core_SelectValues::memberVisibility
</callback>
227 <name>receipt_text_signup
</name>
228 <title>Membership Type Receipt Text
</title>
231 <type>TextArea
</type>
236 <comment>Receipt Text for membership signup
</comment>
240 <name>receipt_text_renewal
</name>
241 <title>Membership Type Renewal Text
</title>
244 <type>TextArea
</type>
249 <comment>Receipt Text for membership renewal
</comment>
253 <name>auto_renew
</name>
260 <callback>CRM_Core_SelectValues::memberAutoRenew
</callback>
262 <comment>0 = No auto-renew option;
1 = Give option, but not required;
2 = Auto-renew required;
</comment>
266 <name>is_active
</name>
267 <title>Is Active
</title>
270 <comment>Is this membership_type enabled
</comment>
273 <type>CheckBox
</type>
274 <label>Enabled?
</label>