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>
25 <comment>Which Domain is this match entry for
</comment>
29 <name>domain_id
</name>
30 <table>civicrm_domain
</table>
36 <uniqueName>membership_type
</uniqueName>
37 <title>Membership Type
</title>
41 <localizable>true
</localizable>
42 <comment>Name of Membership Type
</comment>
46 <name>description
</name>
54 <localizable>true
</localizable>
55 <comment>Description of Membership Type
</comment>
59 <name>member_of_contact_id
</name>
60 <type>int unsigned
</type>
61 <required>true
</required>
62 <comment>Owner organization for this membership type. FK to Contact ID
</comment>
66 <name>member_of_contact_id
</name>
67 <table>civicrm_contact
</table>
70 <onDelete>RESTRICT
</onDelete>
73 <name>contribution_type_id
</name>
74 <type>int unsigned
</type>
75 <required>true
</required>
76 <comment>If membership is paid by a contribution - what contribution type should be used. FK to Contribution Type ID
</comment>
81 <name>contribution_type_id
</name>
82 <table>civicrm_contribution_type
</table>
88 <name>financial_type_id
</name>
89 <type>int unsigned
</type>
90 <required>true
</required>
91 <comment>If membership is paid by a contribution - what financial type should be used. FK to civicrm_financial_type.id
</comment>
95 <name>financial_type_id
</name>
96 <table>civicrm_financial_type
</table>
101 <name>minimum_fee
</name>
103 <comment>Minimum fee for this membership (
0 for free/complimentary memberships).
</comment>
108 <name>duration_unit
</name>
111 <comment>Unit in which membership period is expressed.
</comment>
113 <callback>CRM_Core_SelectValues::membershipTypeUnitList
</callback>
121 <name>duration_interval
</name>
123 <comment>Number of duration units in membership period (e.g.
1 year,
12 months).
</comment>
127 <name>period_type
</name>
130 <comment>Rolling membership period starts on signup date. Fixed membership periods start on fixed_period_start_day.
</comment>
132 <callback>CRM_Core_SelectValues::periodType
</callback>
137 <name>fixed_period_start_day
</name>
139 <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>
143 <name>fixed_period_rollover_day
</name>
145 <comment>For fixed period memberships, signups after this day (mmdd) rollover to next period.
</comment>
149 <name>relationship_type_id
</name>
152 <comment>FK to Relationship Type ID
</comment>
156 <name>relationship_type_id
</name>
157 <table>civicrm_relationship_type
</table>
163 <name>index_relationship_type_id
</name>
164 <fieldName>relationship_type_id
</fieldName>
168 <name>relationship_direction
</name>
174 <name>max_related
</name>
176 <comment>Maximum number of related memberships.
</comment>
180 <name>visibility
</name>
181 <title>Visible
</title>
186 <optionGroupName>visibility
</optionGroupName>
194 <title>Weight
</title>
199 <name>receipt_text_signup
</name>
202 <type>TextArea
</type>
207 <comment>Receipt Text for membership signup
</comment>
211 <name>receipt_text_renewal
</name>
214 <type>TextArea
</type>
219 <comment>Receipt Text for membership renewal
</comment>
223 <name>auto_renew
</name>
226 <comment>0 = No auto-renew option;
1 = Give option, but not required;
2 = Auto-renew required;
</comment>
230 <name>is_active
</name>
231 <title>Is Active
</title>
234 <comment>Is this membership_type enabled
</comment>