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>
53 <name>description
</name>
54 <title>Membership Type Description
</title>
62 <localizable>true
</localizable>
63 <comment>Description of Membership Type
</comment>
67 <name>member_of_contact_id
</name>
68 <title>Membership Type Organization
</title>
69 <type>int unsigned
</type>
70 <required>true
</required>
71 <comment>Owner organization for this membership type. FK to Contact ID
</comment>
75 <name>member_of_contact_id
</name>
76 <table>civicrm_contact
</table>
79 <onDelete>RESTRICT
</onDelete>
82 <name>contribution_type_id
</name>
83 <type>int unsigned
</type>
84 <required>true
</required>
85 <comment>If membership is paid by a contribution - what contribution type should be used. FK to Contribution Type ID
</comment>
90 <name>contribution_type_id
</name>
91 <table>civicrm_contribution_type
</table>
97 <name>financial_type_id
</name>
98 <title>Membership Financial Type
</title>
99 <type>int unsigned
</type>
100 <required>true
</required>
102 <table>civicrm_financial_type
</table>
103 <keyColumn>id
</keyColumn>
104 <labelColumn>name
</labelColumn>
106 <comment>If membership is paid by a contribution - what financial type should be used. FK to civicrm_financial_type.id
</comment>
110 <name>financial_type_id
</name>
111 <table>civicrm_financial_type
</table>
116 <name>minimum_fee
</name>
117 <title>membership Type Minimum Fee
</title>
119 <comment>Minimum fee for this membership (
0 for free/complimentary memberships).
</comment>
124 <name>duration_unit
</name>
125 <title>Membership Type Duration Unit
</title>
128 <comment>Unit in which membership period is expressed.
</comment>
130 <callback>CRM_Core_SelectValues::membershipTypeUnitList
</callback>
138 <name>duration_interval
</name>
139 <title>Membership Type Duration Interval
</title>
141 <comment>Number of duration units in membership period (e.g.
1 year,
12 months).
</comment>
145 <name>period_type
</name>
146 <title>Membership Type Plan
</title>
149 <comment>Rolling membership period starts on signup date. Fixed membership periods start on fixed_period_start_day.
</comment>
151 <callback>CRM_Core_SelectValues::periodType
</callback>
156 <name>fixed_period_start_day
</name>
157 <title>Fixed Period Start Day
</title>
159 <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>
163 <name>fixed_period_rollover_day
</name>
164 <title>Fixed Period Rollover Day
</title>
166 <comment>For fixed period memberships, signups after this day (mmdd) rollover to next period.
</comment>
170 <name>relationship_type_id
</name>
171 <title>Membership Type Relationship
</title>
174 <comment>FK to Relationship Type ID
</comment>
178 <name>relationship_type_id
</name>
179 <table>civicrm_relationship_type
</table>
185 <name>index_relationship_type_id
</name>
186 <fieldName>relationship_type_id
</fieldName>
190 <name>relationship_direction
</name>
196 <name>max_related
</name>
197 <title>Max Related Members for Type
</title>
199 <comment>Maximum number of related memberships.
</comment>
203 <name>visibility
</name>
204 <title>Visible
</title>
209 <callback>CRM_Core_SelectValues::memberVisibility
</callback>
222 <name>receipt_text_signup
</name>
223 <title>Membership Type Receipt Text
</title>
226 <type>TextArea
</type>
231 <comment>Receipt Text for membership signup
</comment>
235 <name>receipt_text_renewal
</name>
236 <title>Membership Type Renewal Text
</title>
239 <type>TextArea
</type>
244 <comment>Receipt Text for membership renewal
</comment>
248 <name>auto_renew
</name>
252 <callback>CRM_Core_SelectValues::memberAutoRenew
</callback>
254 <comment>0 = No auto-renew option;
1 = Give option, but not required;
2 = Auto-renew required;
</comment>
258 <name>is_active
</name>
259 <title>Is Active
</title>
262 <comment>Is this membership_type enabled
</comment>