Merge pull request #18411 from MegaphoneJon/pcp-wysiwyg
[civicrm-core.git] / xml / schema / Member / MembershipStatus.xml
1 <?xml version="1.0" encoding="iso-8859-1" ?>
2
3 <table>
4 <base>CRM/Member</base>
5 <class>MembershipStatus</class>
6 <name>civicrm_membership_status</name>
7 <comment>Membership Status stores admin configurable rules for assigning status to memberships.</comment>
8 <add>1.5</add>
9 <log>true</log>
10 <field>
11 <name>id</name>
12 <title>Membership Status ID</title>
13 <type>int unsigned</type>
14 <required>true</required>
15 <comment>Membership Id</comment>
16 <add>1.5</add>
17 </field>
18 <primaryKey>
19 <name>id</name>
20 <autoincrement>true</autoincrement>
21 </primaryKey>
22 <field>
23 <name>name</name>
24 <uniqueName>membership_status</uniqueName>
25 <title>Membership Status</title>
26 <type>varchar</type>
27 <import>true</import>
28 <length>128</length>
29 <comment>Name for Membership Status</comment>
30 <add>1.5</add>
31 </field>
32 <field>
33 <name>label</name>
34 <title>Label</title>
35 <type>varchar</type>
36 <length>128</length>
37 <localizable>true</localizable>
38 <html>
39 <type>Text</type>
40 </html>
41 <comment>Label for Membership Status</comment>
42 <add>3.2</add>
43 </field>
44 <field>
45 <name>start_event</name>
46 <type>varchar</type>
47 <length>12</length>
48 <comment>Event when this status starts.</comment>
49 <pseudoconstant>
50 <callback>CRM_Core_SelectValues::eventDate</callback>
51 </pseudoconstant>
52 <add>1.5</add>
53 <html>
54 <type>Select</type>
55 </html>
56 </field>
57 <field>
58 <name>start_event_adjust_unit</name>
59 <type>varchar</type>
60 <length>8</length>
61 <comment>Unit used for adjusting from start_event.</comment>
62 <pseudoconstant>
63 <callback>CRM_Core_SelectValues::unitList</callback>
64 </pseudoconstant>
65 <add>1.5</add>
66 <html>
67 <type>Select</type>
68 </html>
69 </field>
70 <field>
71 <name>start_event_adjust_interval</name>
72 <type>int</type>
73 <comment>Status range begins this many units from start_event.</comment>
74 <add>1.5</add>
75 </field>
76 <field>
77 <name>end_event</name>
78 <type>varchar</type>
79 <length>12</length>
80 <comment>Event after which this status ends.</comment>
81 <pseudoconstant>
82 <callback>CRM_Core_SelectValues::eventDate</callback>
83 </pseudoconstant>
84 <add>1.5</add>
85 <html>
86 <type>Select</type>
87 </html>
88 </field>
89 <field>
90 <name>end_event_adjust_unit</name>
91 <type>varchar</type>
92 <length>8</length>
93 <comment>Unit used for adjusting from the ending event.</comment>
94 <pseudoconstant>
95 <callback>CRM_Core_SelectValues::unitList</callback>
96 </pseudoconstant>
97 <add>1.5</add>
98 <html>
99 <type>Select</type>
100 </html>
101 </field>
102 <field>
103 <name>end_event_adjust_interval</name>
104 <type>int</type>
105 <comment>Status range ends this many units from end_event.</comment>
106 <add>1.5</add>
107 </field>
108 <field>
109 <name>is_current_member</name>
110 <title>Current Membership?</title>
111 <type>boolean</type>
112 <comment>Does this status aggregate to current members (e.g. New, Renewed, Grace might all be TRUE... while Unrenewed, Lapsed, Inactive would be FALSE).</comment>
113 <add>1.5</add>
114 </field>
115 <field>
116 <name>is_admin</name>
117 <title>Administrator Only?</title>
118 <type>boolean</type>
119 <comment>Is this status for admin/manual assignment only.</comment>
120 <html>
121 <type>CheckBox</type>
122 </html>
123 <add>1.5</add>
124 </field>
125 <field>
126 <name>weight</name>
127 <title>Order</title>
128 <type>int</type>
129 <add>1.5</add>
130 </field>
131 <field>
132 <name>is_default</name>
133 <title>Default Status?</title>
134 <type>boolean</type>
135 <html>
136 <type>CheckBox</type>
137 </html>
138 <comment>Assign this status to a membership record if no other status match is found.</comment>
139 <add>1.5</add>
140 </field>
141 <field>
142 <name>is_active</name>
143 <title>Is Active</title>
144 <type>boolean</type>
145 <default>1</default>
146 <html>
147 <type>CheckBox</type>
148 </html>
149 <comment>Is this membership_status enabled.</comment>
150 <add>1.5</add>
151 </field>
152 <field>
153 <name>is_reserved</name>
154 <title>Is Reserved</title>
155 <type>boolean</type>
156 <default>0</default>
157 <html>
158 <type>CheckBox</type>
159 </html>
160 <comment>Is this membership_status reserved.</comment>
161 <add>2.1</add>
162 </field>
163 </table>