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>
48 <htmlType>textarea
</htmlType>
52 <localizable>true
</localizable>
53 <comment>Description of Membership Type
</comment>
57 <name>member_of_contact_id
</name>
58 <type>int unsigned
</type>
59 <required>true
</required>
60 <comment>Owner organization for this membership type. FK to Contact ID
</comment>
64 <name>member_of_contact_id
</name>
65 <table>civicrm_contact
</table>
68 <onDelete>RESTRICT
</onDelete>
71 <name>contribution_type_id
</name>
72 <type>int unsigned
</type>
73 <required>true
</required>
74 <comment>If membership is paid by a contribution - what contribution type should be used. FK to Contribution Type ID
</comment>
79 <name>contribution_type_id
</name>
80 <table>civicrm_contribution_type
</table>
86 <name>financial_type_id
</name>
87 <type>int unsigned
</type>
88 <required>true
</required>
89 <comment>If membership is paid by a contribution - what financial type should be used. FK to civicrm_financial_type.id
</comment>
93 <name>financial_type_id
</name>
94 <table>civicrm_financial_type
</table>
99 <name>minimum_fee
</name>
101 <comment>Minimum fee for this membership (
0 for free/complimentary memberships).
</comment>
106 <name>duration_unit
</name>
108 <values>day, month, year, lifetime
</values>
109 <comment>Unit in which membership period is expressed.
</comment>
113 <name>duration_interval
</name>
115 <comment>Number of duration units in membership period (e.g.
1 year,
12 months).
</comment>
119 <name>period_type
</name>
121 <values>rolling, fixed
</values>
122 <comment>Rolling membership period starts on signup date. Fixed membership periods start on fixed_period_start_day.
</comment>
126 <name>fixed_period_start_day
</name>
128 <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>
132 <name>fixed_period_rollover_day
</name>
134 <comment>For fixed period memberships, signups after this day (mmdd) rollover to next period.
</comment>
138 <name>relationship_type_id
</name>
141 <comment>FK to Relationship Type ID
</comment>
145 <name>relationship_type_id
</name>
146 <table>civicrm_relationship_type
</table>
152 <name>index_relationship_type_id
</name>
153 <fieldName>relationship_type_id
</fieldName>
157 <name>relationship_direction
</name>
163 <name>max_related
</name>
165 <comment>Maximum number of related memberships.
</comment>
169 <name>visibility
</name>
170 <title>Visible
</title>
175 <optionGroupName>visibility
</optionGroupName>
180 <title>Weight
</title>
185 <name>receipt_text_signup
</name>
187 <htmlType>textarea
</htmlType>
191 <comment>Receipt Text for membership signup
</comment>
195 <name>receipt_text_renewal
</name>
197 <htmlType>textarea
</htmlType>
201 <comment>Receipt Text for membership renewal
</comment>
205 <name>auto_renew
</name>
208 <comment>0 = No auto-renew option;
1 = Give option, but not required;
2 = Auto-renew required;
</comment>
212 <name>is_active
</name>
213 <title>Is Active
</title>
216 <comment>Is this membership_type enabled
</comment>