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>
55 <localizable>true
</localizable>
56 <comment>Description of Membership Type
</comment>
60 <name>member_of_contact_id
</name>
61 <type>int unsigned
</type>
62 <required>true
</required>
63 <comment>Owner organization for this membership type. FK to Contact ID
</comment>
67 <name>member_of_contact_id
</name>
68 <table>civicrm_contact
</table>
71 <onDelete>RESTRICT
</onDelete>
74 <name>contribution_type_id
</name>
75 <type>int unsigned
</type>
76 <required>true
</required>
77 <comment>If membership is paid by a contribution - what contribution type should be used. FK to Contribution Type ID
</comment>
82 <name>contribution_type_id
</name>
83 <table>civicrm_contribution_type
</table>
89 <name>financial_type_id
</name>
90 <type>int unsigned
</type>
91 <required>true
</required>
92 <comment>If membership is paid by a contribution - what financial type should be used. FK to civicrm_financial_type.id
</comment>
96 <name>financial_type_id
</name>
97 <table>civicrm_financial_type
</table>
102 <name>minimum_fee
</name>
104 <comment>Minimum fee for this membership (
0 for free/complimentary memberships).
</comment>
109 <name>duration_unit
</name>
111 <values>day, month, year, lifetime
</values>
112 <comment>Unit in which membership period is expressed.
</comment>
116 <name>duration_interval
</name>
118 <comment>Number of duration units in membership period (e.g.
1 year,
12 months).
</comment>
122 <name>period_type
</name>
124 <values>rolling, fixed
</values>
125 <comment>Rolling membership period starts on signup date. Fixed membership periods start on fixed_period_start_day.
</comment>
129 <name>fixed_period_start_day
</name>
131 <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>
135 <name>fixed_period_rollover_day
</name>
137 <comment>For fixed period memberships, signups after this day (mmdd) rollover to next period.
</comment>
141 <name>relationship_type_id
</name>
144 <comment>FK to Relationship Type ID
</comment>
148 <name>relationship_type_id
</name>
149 <table>civicrm_relationship_type
</table>
155 <name>index_relationship_type_id
</name>
156 <fieldName>relationship_type_id
</fieldName>
160 <name>relationship_direction
</name>
166 <name>max_related
</name>
168 <comment>Maximum number of related memberships.
</comment>
172 <name>visibility
</name>
173 <title>Visible
</title>
178 <optionGroupName>visibility
</optionGroupName>
183 <title>Weight
</title>
188 <name>receipt_text_signup
</name>
191 <type>TextArea
</type>
197 <comment>Receipt Text for membership signup
</comment>
201 <name>receipt_text_renewal
</name>
204 <type>TextArea
</type>
210 <comment>Receipt Text for membership renewal
</comment>
214 <name>auto_renew
</name>
217 <comment>0 = No auto-renew option;
1 = Give option, but not required;
2 = Auto-renew required;
</comment>
221 <name>is_active
</name>
222 <title>Is Active
</title>
225 <comment>Is this membership_type enabled
</comment>