PageRenderTime 31ms CodeModel.GetById 46ms RepoModel.GetById 0ms app.codeStats 1ms

/SQL/Install.sql

https://github.com/jwigal/churchinfo
SQL | 1320 lines | 851 code | 195 blank | 274 comment | 0 complexity | 267b7c368e61a04cfbd8dae941a15763 MD5 | raw file
Possible License(s): LGPL-2.1
  1. -- Install Version 1.2.10
  2. -- --------------------------------------------------------
  3. --
  4. -- Table structure for table `autopayment_aut`
  5. --
  6. CREATE TABLE `autopayment_aut` (
  7. `aut_ID` mediumint(9) unsigned NOT NULL auto_increment,
  8. `aut_FamID` mediumint(9) unsigned NOT NULL default '0',
  9. `aut_EnableBankDraft` tinyint(1) unsigned NOT NULL default '0',
  10. `aut_EnableCreditCard` tinyint(1) unsigned NOT NULL default '0',
  11. `aut_NextPayDate` date default NULL,
  12. `aut_FYID` mediumint(9) NOT NULL default '9',
  13. `aut_Amount` decimal(6,2) NOT NULL default '0.00',
  14. `aut_Interval` tinyint(3) NOT NULL default '1',
  15. `aut_Fund` mediumint(6) NOT NULL default '0',
  16. `aut_FirstName` varchar(50) default NULL,
  17. `aut_LastName` varchar(50) default NULL,
  18. `aut_Address1` varchar(255) default NULL,
  19. `aut_Address2` varchar(255) default NULL,
  20. `aut_City` varchar(50) default NULL,
  21. `aut_State` varchar(50) default NULL,
  22. `aut_Zip` varchar(50) default NULL,
  23. `aut_Country` varchar(50) default NULL,
  24. `aut_Phone` varchar(30) default NULL,
  25. `aut_Email` varchar(100) default NULL,
  26. `aut_CreditCard` varchar(50) default NULL,
  27. `aut_ExpMonth` varchar(2) default NULL,
  28. `aut_ExpYear` varchar(4) default NULL,
  29. `aut_BankName` varchar(50) default NULL,
  30. `aut_Route` varchar(30) default NULL,
  31. `aut_Account` varchar(30) default NULL,
  32. `aut_DateLastEdited` datetime default NULL,
  33. `aut_EditedBy` smallint(5) unsigned default '0',
  34. `aut_Serial` mediumint(9) NOT NULL default '1',
  35. PRIMARY KEY (`aut_ID`),
  36. UNIQUE KEY `aut_ID` (`aut_ID`)
  37. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
  38. --
  39. -- Dumping data for table `autopayment_aut`
  40. --
  41. -- --------------------------------------------------------
  42. --
  43. -- Table structure for table `canvassdata_can`
  44. --
  45. CREATE TABLE `canvassdata_can` (
  46. `can_ID` mediumint(9) unsigned NOT NULL auto_increment,
  47. `can_famID` mediumint(9) NOT NULL default '0',
  48. `can_Canvasser` mediumint(9) NOT NULL default '0',
  49. `can_FYID` mediumint(9) default NULL,
  50. `can_date` date default NULL,
  51. `can_Positive` text,
  52. `can_Critical` text,
  53. `can_Insightful` text,
  54. `can_Financial` text,
  55. `can_Suggestion` text,
  56. `can_NotInterested` tinyint(1) NOT NULL default '0',
  57. `can_WhyNotInterested` text,
  58. PRIMARY KEY (`can_ID`),
  59. UNIQUE KEY `can_ID` (`can_ID`)
  60. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
  61. --
  62. -- Dumping data for table `canvassdata_can`
  63. --
  64. -- --------------------------------------------------------
  65. --
  66. -- Table structure for table `config_cfg`
  67. --
  68. CREATE TABLE `config_cfg` (
  69. `cfg_id` int(11) NOT NULL default '0',
  70. `cfg_name` varchar(50) NOT NULL default '',
  71. `cfg_value` text,
  72. `cfg_type` enum('text','number','date','boolean','textarea') NOT NULL default 'text',
  73. `cfg_default` text NOT NULL,
  74. `cfg_tooltip` text NOT NULL,
  75. `cfg_section` varchar(50) NOT NULL default '',
  76. `cfg_category` varchar(20) default NULL,
  77. PRIMARY KEY (`cfg_id`),
  78. UNIQUE KEY `cfg_name` (`cfg_name`),
  79. KEY `cfg_id` (`cfg_id`)
  80. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  81. --
  82. -- Dumping data for table `config_cfg`
  83. --
  84. INSERT INTO `config_cfg` (`cfg_id`, `cfg_name`, `cfg_value`, `cfg_type`, `cfg_default`, `cfg_tooltip`, `cfg_section`, `cfg_category`) VALUES
  85. (1, 'sWEBCALENDARDB', '', 'text', '', 'WebCalendar database name', 'General', NULL),
  86. (2, 'debug', '1', 'boolean', '1', 'Set debug mode\r\nThis may be helpful for when you''re first setting up ChurchInfo, but you should\r\nprobably turn it off for maximum security otherwise. If you are having trouble,\r\nplease enable this so that you''ll know what the errors are. This is especially\r\nimportant if you need to report a problem on the help forums.', 'General', NULL),
  87. (3, 'sJPGRAPH_PATH', 'Include/jpgraph-1.13/src', 'text', 'Include/jpgraph-1.13/src', 'JPGraph library', 'General', NULL),
  88. (4, 'sFPDF_PATH', 'Include/fpdf', 'text', 'Include/fpdf', 'FPDF library', 'General', NULL),
  89. (5, 'sDirClassifications', '1,2,4,5', 'text', '1,2,4,5', 'Include only these classifications in the directory, comma seperated', 'General', NULL),
  90. (6, 'sDirRoleHead', '1,7', 'text', '1,7', 'These are the family role numbers designated as head of house', 'General', NULL),
  91. (7, 'sDirRoleSpouse', '2', 'text', '2', 'These are the family role numbers designated as spouse', 'General', NULL),
  92. (8, 'sDirRoleChild', '3', 'text', '3', 'These are the family role numbers designated as child', 'General', NULL),
  93. (9, 'sSessionTimeout', '3600', 'number', '3600', 'Session timeout length in seconds\rSet to zero to disable session timeouts.', 'General', NULL),
  94. (10, 'aFinanceQueries', '28,30,31', 'text', '28', 'Queries for which user must have finance permissions to use:', 'General', NULL),
  95. (11, 'bCSVAdminOnly', '1', 'boolean', '1', 'Should only administrators have access to the CSV export system and directory report?', 'General', NULL),
  96. (12, 'sDefault_Pass', 'password', 'text', 'password', 'Default password for new users and those with reset passwords', 'General', NULL),
  97. (13, 'sMinPasswordLength', '6', 'number', '6', 'Minimum length a user may set their password to', 'General', NULL),
  98. (14, 'sMinPasswordChange', '4', 'number', '4', 'Minimum amount that a new password must differ from the old one (# of characters changed)\rSet to zero to disable this feature', 'General', NULL),
  99. (15, 'sDisallowedPasswords', 'churchinfo,password,god,jesus,church,christian', 'text', 'churchinfo,password,god,jesus,church,christian', 'A comma-seperated list of disallowed (too obvious) passwords.', 'General', NULL),
  100. (16, 'iMaxFailedLogins', '50', 'number', '50', 'Maximum number of failed logins to allow before a user account is locked.\rOnce the maximum has been reached, an administrator must re-enable the account.\rThis feature helps to protect against automated password guessing attacks.\rSet to zero to disable this feature.', 'General', NULL),
  101. (17, 'bToolTipsOn', '', 'boolean', '', 'Turn on or off guided help (Tool Tips).\rThis feature is not complete. Leave off for now.', 'General', NULL),
  102. (18, 'iNavMethod', '1', 'number', '1', 'Interface navigation method\r1 = Javascript MenuBar (default)\r2 = Flat Sidebar (alternative for buggy browsers)', 'General', NULL),
  103. (19, 'bFamListFirstNames', '1', 'boolean', '1', 'Show family member firstnames in Family Listing?', 'General', NULL),
  104. (20, 'iPDFOutputType', '1', 'number', '1', 'PDF handling mode.\r1 = Save File dialog\r2 = Open in current browser window', 'General', NULL),
  105. (21, 'sDefaultCity', '', 'text', '', 'Default City', 'General', NULL),
  106. (22, 'sDefaultState', '', 'text', '', 'Default State - Must be 2-letter abbreviation!', 'General', NULL),
  107. (23, 'sDefaultCountry', 'United States', 'text', 'United States', 'Default Country', 'General', NULL),
  108. (24, 'bEmailSend', '', 'boolean', '', 'If you wish to be able to send emails from within ChurchInfo. This requires\reither an SMTP server address to send from or sendmail installed in PHP.', 'General', NULL),
  109. (25, 'sSendType', 'smtp', 'text', 'smtp', 'The method for sending email. Either "smtp" or "sendmail"', 'General', NULL),
  110. (26, 'sToEmailAddress', '', 'text', '', 'Default account for receiving a copy of all emails', 'General', NULL),
  111. (27, 'sSMTPHost', '', 'text', '', 'SMTP Server Address (mail.server.com:25)', 'General', NULL),
  112. (28, 'sSMTPAuth', '1', 'boolean', '1', 'Does your SMTP server require auththentication (username/password)?', 'General', NULL),
  113. (29, 'sSMTPUser', '', 'text', '', 'SMTP Username', 'General', NULL),
  114. (30, 'sSMTPPass', '', 'text', '', 'SMTP Password', 'General', NULL),
  115. (31, 'sWordWrap', '72', 'number', '72', 'Word Wrap point. Default for most email programs is 72', 'General', NULL),
  116. (32, 'bDefectiveBrowser', '1', 'boolean', '1', 'Are you using any non-standards-compliant "broken" browsers at this installation?\rIf so, enabling this will turn off the CSS tags that make the menubar stay\rat the top of the screen instead of scrolling with the rest of the page.\rIt will also turn off the use of nice, alpha-blended PNG images, which IE still\rdoes not properly handle.\rNOTICE: MS Internet Explorer is currently not standards-compliant enough for\rthese purposes. Please use a quality web browser such as Netscape 7, Firefox, etc.\r', 'General', NULL),
  117. (33, 'bShowFamilyData', '1', 'boolean', '1', 'Unavailable person info inherited from assigned family for display?\rThis option causes certain info from a person''s assigned family record to be\rdisplayed IF the corresponding info has NOT been entered for that person. ', 'General', NULL),
  118. (34, 'bOldVCardVersion', '', 'boolean', '', 'Use vCard 2.1 rather than vCard 3.0 standard.', 'General', NULL),
  119. (35, 'bEnableBackupUtility', '', 'boolean', '', 'This backup system only works on "UNIX-style" operating systems such as\rGNU/Linux, OSX and the BSD variants (NOT Windows).\rOf course, remember that only your web server needs to running a UNIX-style\rOS for this feature to work.', 'General', NULL),
  120. (36, 'sGZIPname', 'gzip', 'text', 'gzip', '', 'General', NULL),
  121. (37, 'sZIPname', 'zip', 'text', 'zip', '', 'General', NULL),
  122. (38, 'sPGPname', 'gpg', 'text', 'gpg', '', 'General', NULL),
  123. (39, 'sLanguage', 'en_US', 'text', 'en_US', 'Internationalization (I18n) support\rUS English (en_US), Italian (it_IT), French (fr_FR), and German (de_DE)', 'General', NULL),
  124. (40, 'iFYMonth', '1', 'number', '1', 'First month of the fiscal year', 'General', NULL),
  125. (41, 'sXML_RPC_PATH', 'XML/RPC.php', 'text', 'XML/RPC.php', 'Path to RPC.php, required for Lat/Lon address lookup', 'General', NULL),
  126. (42, 'sGeocoderID', '', 'text', '', 'User ID for rpc.geocoder.us', 'General', NULL),
  127. (43, 'sGeocoderPW', '', 'text', '', 'Password for rpc.geocoder.us', 'General', NULL),
  128. (44, 'sGoogleMapKey', '', 'text', '', 'Google map API requires a unique key from http://maps.google.com/apis/maps/signup.html', 'General', NULL),
  129. (45, 'nChurchLatitude', '', 'number', '', 'Latitude of the church, used to center the Google map', 'General', NULL),
  130. (46, 'nChurchLongitude', '', 'number', '', 'Longitude of the church, used to center the Google map', 'General', NULL),
  131. (47, 'bHidePersonAddress', '1', 'boolean', '1', 'Set true to disable entering addresses in Person Editor. Set false to enable entering addresses in Person Editor.', 'General', NULL),
  132. (48, 'bHideFriendDate', '0', 'boolean', '0', 'Set true to disable entering Friend Date in Person Editor. Set false to enable entering Friend Date in Person Editor.', 'General', NULL),
  133. (49, 'bHideFamilyNewsletter', '0', 'boolean', '0', 'Set true to disable management of newsletter subscriptions in the Family Editor.', 'General', NULL),
  134. (50, 'bHideWeddingDate', '0', 'boolean', '0', 'Set true to disable entering Wedding Date in Family Editor. Set false to enable entering Wedding Date in Family Editor.', 'General', NULL),
  135. (51, 'bHideLatLon', '0', 'boolean', '0', 'Set true to disable entering Latitude and Longitude in Family Editor. Set false to enable entering Latitude and Longitude in Family Editor. Lookups are still performed, just not displayed.', 'General', NULL),
  136. (52, 'bUseDonationEnvelopes', '0', 'boolean', '0', 'Set true to enable use of donation envelopes', 'General', NULL),
  137. (53, 'sHeader', '', 'textarea', '', 'Enter in HTML code which will be displayed as a header at the top of each page. Be sure to close your tags! Note: You must REFRESH YOUR BROWSER A SECOND TIME to view the new header.', 'General', NULL),
  138. (54, 'sISTusername', 'username', 'text', 'username', 'Intelligent Search Technolgy, Ltd. CorrectAddress Username for https://www.name-searching.com/CaddressASP', 'General', NULL),
  139. (55, 'sISTpassword', '', 'text', '', 'Intelligent Search Technolgy, Ltd. CorrectAddress Password for https://www.name-searching.com/CaddressASP', 'General', NULL),
  140. (56, 'bUseGoogleGeocode', '1', 'boolean', '1', 'Set true to use the Google geocoder. Set false to use rpc.geocoder.us.', 'General', NULL),
  141. (999, 'bRegistered', '0', 'boolean', '0', 'ChurchInfo has been registered. The ChurchInfo team uses registration information to track usage. This information is kept confidential and never released or sold. If this field is true the registration option in the admin menu changes to update registration.', 'General', NULL),
  142. (1001, 'leftX', '20', 'number', '20', 'Left Margin (1 = 1/100th inch)', 'ChurchInfoReport', NULL),
  143. (1002, 'incrementY', '4', 'number', '4', 'Line Thickness (1 = 1/100th inch', 'ChurchInfoReport', NULL),
  144. (1003, 'sChurchName', 'Some Church', 'text', '', 'Church Name', 'ChurchInfoReport', NULL),
  145. (1004, 'sChurchAddress', '100 Main St', 'text', '', 'Church Address', 'ChurchInfoReport', NULL),
  146. (1005, 'sChurchCity', 'Wall', 'text', '', 'Church City', 'ChurchInfoReport', NULL),
  147. (1006, 'sChurchState', 'SD', 'text', '', 'Church State', 'ChurchInfoReport', NULL),
  148. (1007, 'sChurchZip', '11111', 'text', '', 'Church Zip', 'ChurchInfoReport', NULL),
  149. (1008, 'sChurchPhone', '123-456-7890', 'text', '', 'Church Phone', 'ChurchInfoReport', NULL),
  150. (1009, 'sChurchEmail', 'church@church.org', 'text', '', 'Church Email', 'ChurchInfoReport', NULL),
  151. (1010, 'sHomeAreaCode', '111', 'text', '', 'Home area code of the church', 'ChurchInfoReport', NULL),
  152. (1011, 'sTaxReport1', 'This letter shows our record of your payments for', 'text', 'This letter shows our record of your payments for', 'Verbage for top line of tax report. Dates will be appended to the end of this line.', 'ChurchInfoReport', NULL),
  153. (1012, 'sTaxReport2', 'Thank you for your help in making a difference for the cause of Christ. We greatly appreciate your gift and covet your prayers!', 'text', 'Thank you for your help in making a difference for the cause of Christ. We greatly appreciate your gift and covet your prayers!', 'Verbage for bottom line of tax report.', 'ChurchInfoReport', NULL),
  154. (1013, 'sTaxReport3', 'If you have any questions or corrections to make to this report, please contact the church at the above number during business hours, 9am to 4pm, M-F.', 'text', 'If you have any questions or corrections to make to this report, please contact the church at the above number during business hours, 9am to 4pm, M-F.', 'Verbage for bottom line of tax report.', 'ChurchInfoReport', NULL),
  155. (1014, 'sTaxSigner', 'Elder Joe Smith', 'text', '', 'Tax Report signer', 'ChurchInfoReport', NULL),
  156. (1015, 'sReminder1', 'This letter shows our record of your pledge and payments for fiscal year', 'text', 'This letter shows our record of your pledge and payments for fiscal year', 'Verbage for the pledge reminder report', 'ChurchInfoReport', NULL),
  157. (1016, 'sReminderSigner', 'Elder Joe Smith', 'text', '', 'Pledge Reminder Signer', 'ChurchInfoReport', NULL),
  158. (1017, 'sReminderNoPledge', 'Pledges: We do not have record of a pledge for from you for this fiscal year.', 'text', 'Pledges: We do not have record of a pledge for from you for this fiscal year.', 'Verbage for the pledge reminder report - No record of a pledge', 'ChurchInfoReport', NULL),
  159. (1018, 'sReminderNoPayments', 'Payments: We do not have record of a pledge for from you for this fiscal year.', 'text', 'Payments: We do not have record of a pledge for from you for this fiscal year.', 'Verbage for the pledge reminder report - No record of payments', 'ChurchInfoReport', NULL),
  160. (1019, 'sConfirm1', 'This letter shows the information we have in our database with respect to your family. Please review, mark-up as necessary, and return this form to the church office.', 'text', 'This letter shows the information we have in our database with respect to your family. Please review, mark-up as necessary, and return this form to the church office.', 'Verbage for the database information confirmation and correction report', 'ChurchInfoReport', NULL),
  161. (1020, 'sConfirm2', 'Thank you very much for helping us to update this information. If you want on-line access to the church database please provide your email address and a desired password and we will send instructions.', 'text', 'Thank you very much for helping us to update this information. If you want on-line access to the church database please provide your email address and a desired password and we will send instructions.', 'Verbage for the database information confirmation and correction report', 'ChurchInfoReport', NULL),
  162. (1021, 'sConfirm3', 'Email _____________________________________ Password ________________', 'text', 'Email _____________________________________ Password ________________', 'Verbage for the database information confirmation and correction report', 'ChurchInfoReport', NULL),
  163. (1022, 'sConfirm4', '[ ] I no longer want to be associated with the church (check here to be removed from our records).', 'text', '[ ] I no longer want to be associated with the church (check here to be removed from our records).', 'Verbage for the database information confirmation and correction report', 'ChurchInfoReport', NULL),
  164. (1023, 'sConfirm5', '', 'text', '', 'Verbage for the database information confirmation and correction report', 'ChurchInfoReport', NULL),
  165. (1024, 'sConfirm6', '', 'text', '', 'Verbage for the database information confirmation and correction report', 'ChurchInfoReport', NULL),
  166. (1025, 'sConfirmSigner', 'Elder Joe Smith', 'text', '', 'Database information confirmation and correction report signer', 'ChurchInfoReport', NULL),
  167. (1026, 'sPledgeSummary1', 'Summary of pledges and payments for the fiscal year', 'text', 'Summary of pledges and payments for the fiscal year', 'Verbage for the pledge summary report', 'ChurchInfoReport', NULL),
  168. (1027, 'sPledgeSummary2', 'as of', 'text', ' as of', 'Verbage for the pledge summary report', 'ChurchInfoReport', NULL),
  169. (1028, 'sDirectoryDisclaimer1', 'Every effort was made to insure the accuracy of this directory. If there are any errors or omissions, please contact the church office.This directory is for the use of the people of', 'text', 'Every effort was made to insure the accuracy of this directory. If there are any errors or omissions, please contact the church office.\n\nThis directory is for the use of the people of', 'Verbage for the directory report', 'ChurchInfoReport', NULL),
  170. (1029, 'sDirectoryDisclaimer2', ', and the information contained in it may not be used for business or commercial purposes.', 'text', ', and the information contained in it may not be used for business or commercial purposes.', 'Verbage for the directory report', 'ChurchInfoReport', NULL),
  171. (1030, 'bDirLetterHead', '../Images/church_letterhead.jpg', 'text', '../Images/church_letterhead.jpg', 'Church Letterhead path and file', 'ChurchInfoReport', NULL),
  172. (61, 'iEventPeriodStartHr', '7', 'number', '7', 'Church Event Valid Period Start Hour (0-23)', 'General', ''),
  173. (62, 'iEventPeriodEndHr', '18', 'number', '18', 'Church Event Valid Period End Hour (0-23, must be greater than iEventStartHr)', 'General', ''),
  174. (63, 'iEventPeriodIntervalMin', '15', 'number', '15', 'Event Period interval (in minutes)', 'General', ''),
  175. (64, 'sDistanceUnit', 'miles', 'text', 'miles', 'Unit used to measure distance, miles or km.', 'General', '');
  176. -- --------------------------------------------------------
  177. --
  178. -- Table structure for table `deposit_dep`
  179. --
  180. CREATE TABLE `deposit_dep` (
  181. `dep_ID` mediumint(9) unsigned NOT NULL auto_increment,
  182. `dep_Date` date default NULL,
  183. `dep_Comment` text,
  184. `dep_EnteredBy` mediumint(9) unsigned default NULL,
  185. `dep_Closed` tinyint(1) NOT NULL default '0',
  186. `dep_Type` enum('Bank','CreditCard','BankDraft') NOT NULL default 'Bank',
  187. PRIMARY KEY (`dep_ID`)
  188. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 PACK_KEYS=0 AUTO_INCREMENT=1 ;
  189. --
  190. -- Dumping data for table `deposit_dep`
  191. --
  192. -- --------------------------------------------------------
  193. --
  194. -- Table structure for table `donationfund_fun`
  195. --
  196. CREATE TABLE `donationfund_fun` (
  197. `fun_ID` tinyint(3) NOT NULL auto_increment,
  198. `fun_Active` enum('true','false') NOT NULL default 'true',
  199. `fun_Name` varchar(30) default NULL,
  200. `fun_Description` varchar(100) default NULL,
  201. PRIMARY KEY (`fun_ID`),
  202. UNIQUE KEY `fun_ID` (`fun_ID`)
  203. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
  204. --
  205. -- Dumping data for table `donationfund_fun`
  206. --
  207. INSERT INTO `donationfund_fun` (`fun_ID`, `fun_Active`, `fun_Name`, `fun_Description`) VALUES
  208. (1, 'true', 'Pledges', 'Pledge income for the operating budget');
  209. -- --------------------------------------------------------
  210. --
  211. -- Table structure for table `email_message_pending_emp`
  212. --
  213. CREATE TABLE `email_message_pending_emp` (
  214. `emp_usr_id` mediumint(9) unsigned NOT NULL default '0',
  215. `emp_to_send` smallint(5) unsigned NOT NULL default '0',
  216. `emp_subject` varchar(128) NOT NULL,
  217. `emp_message` text NOT NULL
  218. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  219. --
  220. -- Dumping data for table `email_message_pending_emp`
  221. --
  222. -- --------------------------------------------------------
  223. --
  224. -- Table structure for table `email_recipient_pending_erp`
  225. --
  226. CREATE TABLE `email_recipient_pending_erp` (
  227. `erp_id` smallint(5) unsigned NOT NULL default '0',
  228. `erp_usr_id` mediumint(9) unsigned NOT NULL default '0',
  229. `erp_num_attempt` smallint(5) unsigned NOT NULL default '0',
  230. `erp_failed_time` datetime default NULL,
  231. `erp_email_address` varchar(50) NOT NULL default ''
  232. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  233. --
  234. -- Dumping data for table `email_recipient_pending_erp`
  235. --
  236. -- --------------------------------------------------------
  237. --
  238. -- Table structure for table `eventcountnames_evctnm`
  239. --
  240. CREATE TABLE `eventcountnames_evctnm` (
  241. `evctnm_countid` int(5) NOT NULL auto_increment,
  242. `evctnm_eventtypeid` smallint(5) NOT NULL default '0',
  243. `evctnm_countname` varchar(20) NOT NULL default '',
  244. `evctnm_notes` varchar(20) NOT NULL default '',
  245. UNIQUE KEY `evctnm_countid` (`evctnm_countid`),
  246. UNIQUE KEY `evctnm_eventtypeid` (`evctnm_eventtypeid`,`evctnm_countname`)
  247. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=7 ;
  248. --
  249. -- Dumping data for table `eventcountnames_evctnm`
  250. --
  251. INSERT INTO `eventcountnames_evctnm` (`evctnm_countid`, `evctnm_eventtypeid`, `evctnm_countname`, `evctnm_notes`) VALUES
  252. (1, 1, 'Total', ''),
  253. (2, 1, 'Members', ''),
  254. (3, 1, 'Visitors', ''),
  255. (4, 2, 'Total', ''),
  256. (5, 2, 'Members', ''),
  257. (6, 2, 'Visitors', '');
  258. -- --------------------------------------------------------
  259. --
  260. -- Table structure for table `eventcounts_evtcnt`
  261. --
  262. CREATE TABLE `eventcounts_evtcnt` (
  263. `evtcnt_eventid` int(5) NOT NULL default '0',
  264. `evtcnt_countid` int(5) NOT NULL default '0',
  265. `evtcnt_countname` varchar(20) default NULL,
  266. `evtcnt_countcount` int(6) default NULL,
  267. `evtcnt_notes` varchar(20) default NULL,
  268. PRIMARY KEY (`evtcnt_eventid`,`evtcnt_countid`)
  269. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  270. --
  271. -- Dumping data for table `eventcounts_evtcnt`
  272. --
  273. -- --------------------------------------------------------
  274. --
  275. -- Table structure for table `events_event`
  276. --
  277. CREATE TABLE `events_event` (
  278. `event_id` int(11) NOT NULL auto_increment,
  279. `event_type` int(11) NOT NULL default '0',
  280. `event_title` varchar(255) NOT NULL default '',
  281. `event_desc` varchar(255) default NULL,
  282. `event_text` text,
  283. `event_start` datetime NOT NULL default '0000-00-00 00:00:00',
  284. `event_end` datetime NOT NULL default '0000-00-00 00:00:00',
  285. `inactive` int(1) NOT NULL default '0',
  286. `event_typename` varchar(40) NOT NULL default '',
  287. PRIMARY KEY (`event_id`),
  288. FULLTEXT KEY `event_txt` (`event_text`)
  289. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
  290. --
  291. -- Dumping data for table `events_event`
  292. --
  293. -- --------------------------------------------------------
  294. --
  295. -- Table structure for table `event_attend`
  296. --
  297. CREATE TABLE `event_attend` (
  298. `event_id` int(11) NOT NULL default '0',
  299. `person_id` int(11) NOT NULL default '0',
  300. `checkin_date` datetime default NULL,
  301. `checkin_id` int(11) default NULL,
  302. `checkout_date` datetime default NULL,
  303. `checkout_id` int(11) default NULL,
  304. UNIQUE KEY `event_id` (`event_id`,`person_id`)
  305. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  306. --
  307. -- Dumping data for table `event_attend`
  308. --
  309. -- --------------------------------------------------------
  310. --
  311. -- Table structure for table `event_types`
  312. --
  313. CREATE TABLE `event_types` (
  314. `type_id` int(11) NOT NULL auto_increment,
  315. `type_name` varchar(255) NOT NULL default '',
  316. `type_defstarttime` time NOT NULL default '00:00:00',
  317. `type_defrecurtype` enum('none','weekly','monthly','yearly') NOT NULL default 'none',
  318. `type_defrecurDOW` enum('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday') NOT NULL default 'Sunday',
  319. `type_defrecurDOM` char(2) NOT NULL default '0',
  320. `type_defrecurDOY` date NOT NULL default '0000-00-00',
  321. `type_active` int(1) NOT NULL default '1',
  322. PRIMARY KEY (`type_id`)
  323. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ;
  324. --
  325. -- Dumping data for table `event_types`
  326. --
  327. INSERT INTO `event_types` (`type_id`, `type_name`, `type_defstarttime`, `type_defrecurtype`, `type_defrecurDOW`, `type_defrecurDOM`, `type_defrecurDOY`, `type_active`) VALUES
  328. (1, 'Church Service', '10:30:00', 'weekly', 'Sunday', '', '0000-00-00', 1),
  329. (2, 'Sunday School', '09:30:00', 'weekly', 'Sunday', '', '0000-00-00', 1);
  330. -- --------------------------------------------------------
  331. --
  332. -- Table structure for table `family_custom`
  333. --
  334. CREATE TABLE `family_custom` (
  335. `fam_ID` mediumint(9) NOT NULL default '0',
  336. PRIMARY KEY (`fam_ID`)
  337. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  338. --
  339. -- Dumping data for table `family_custom`
  340. --
  341. -- --------------------------------------------------------
  342. --
  343. -- Table structure for table `family_custom_master`
  344. --
  345. CREATE TABLE `family_custom_master` (
  346. `fam_custom_Order` smallint(6) NOT NULL default '0',
  347. `fam_custom_Field` varchar(5) NOT NULL default '',
  348. `fam_custom_Name` varchar(40) NOT NULL default '',
  349. `fam_custom_Special` mediumint(8) unsigned default NULL,
  350. `fam_custom_Side` enum('left','right') NOT NULL default 'left',
  351. `fam_custom_FieldSec` tinyint(4) NOT NULL default '1',
  352. `type_ID` tinyint(4) NOT NULL default '0'
  353. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  354. --
  355. -- Dumping data for table `family_custom_master`
  356. --
  357. -- --------------------------------------------------------
  358. --
  359. -- Table structure for table `family_fam`
  360. --
  361. CREATE TABLE `family_fam` (
  362. `fam_ID` mediumint(9) unsigned NOT NULL auto_increment,
  363. `fam_Name` varchar(50) default NULL,
  364. `fam_Address1` varchar(255) default NULL,
  365. `fam_Address2` varchar(255) default NULL,
  366. `fam_City` varchar(50) default NULL,
  367. `fam_State` varchar(50) default NULL,
  368. `fam_Zip` varchar(50) default NULL,
  369. `fam_Country` varchar(50) default NULL,
  370. `fam_HomePhone` varchar(30) default NULL,
  371. `fam_WorkPhone` varchar(30) default NULL,
  372. `fam_CellPhone` varchar(30) default NULL,
  373. `fam_Email` varchar(100) default NULL,
  374. `fam_WeddingDate` date default NULL,
  375. `fam_DateEntered` datetime NOT NULL default '0000-00-00 00:00:00',
  376. `fam_DateLastEdited` datetime default NULL,
  377. `fam_EnteredBy` smallint(5) unsigned NOT NULL default '0',
  378. `fam_EditedBy` smallint(5) unsigned default '0',
  379. `fam_scanCheck` text,
  380. `fam_scanCredit` text,
  381. `fam_SendNewsLetter` enum('FALSE','TRUE') NOT NULL default 'FALSE',
  382. `fam_DateDeactivated` date default NULL,
  383. `fam_OkToCanvass` enum('FALSE','TRUE') NOT NULL default 'FALSE',
  384. `fam_Canvasser` smallint(5) unsigned NOT NULL default '0',
  385. `fam_Latitude` double default NULL,
  386. `fam_Longitude` double default NULL,
  387. `fam_Envelope` mediumint(9) NOT NULL default '0',
  388. PRIMARY KEY (`fam_ID`),
  389. KEY `fam_ID` (`fam_ID`)
  390. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
  391. --
  392. -- Dumping data for table `family_fam`
  393. --
  394. -- --------------------------------------------------------
  395. --
  396. -- Table structure for table `groupprop_master`
  397. --
  398. CREATE TABLE `groupprop_master` (
  399. `grp_ID` mediumint(9) unsigned NOT NULL default '0',
  400. `prop_ID` tinyint(3) unsigned NOT NULL default '0',
  401. `prop_Field` varchar(5) NOT NULL default '0',
  402. `prop_Name` varchar(40) default NULL,
  403. `prop_Description` varchar(60) default NULL,
  404. `type_ID` smallint(5) unsigned NOT NULL default '0',
  405. `prop_Special` mediumint(9) unsigned default NULL,
  406. `prop_PersonDisplay` enum('false','true') NOT NULL default 'false'
  407. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Group-specific properties order, name, description, type';
  408. --
  409. -- Dumping data for table `groupprop_master`
  410. --
  411. -- --------------------------------------------------------
  412. --
  413. -- Table structure for table `group_grp`
  414. --
  415. CREATE TABLE `group_grp` (
  416. `grp_ID` mediumint(8) unsigned NOT NULL auto_increment,
  417. `grp_Type` tinyint(4) NOT NULL default '0',
  418. `grp_RoleListID` mediumint(8) unsigned NOT NULL default '0',
  419. `grp_DefaultRole` mediumint(9) NOT NULL default '0',
  420. `grp_Name` varchar(50) NOT NULL default '',
  421. `grp_Description` text,
  422. `grp_hasSpecialProps` enum('true','false') NOT NULL default 'false',
  423. PRIMARY KEY (`grp_ID`),
  424. UNIQUE KEY `grp_ID` (`grp_ID`),
  425. KEY `grp_ID_2` (`grp_ID`)
  426. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
  427. --
  428. -- Dumping data for table `group_grp`
  429. --
  430. -- --------------------------------------------------------
  431. --
  432. -- Table structure for table `istlookup_lu`
  433. --
  434. CREATE TABLE `istlookup_lu` (
  435. `lu_fam_ID` mediumint(9) NOT NULL default '0',
  436. `lu_LookupDateTime` datetime NOT NULL default '0000-00-00 00:00:00',
  437. `lu_DeliveryLine1` varchar(255) default NULL,
  438. `lu_DeliveryLine2` varchar(255) default NULL,
  439. `lu_City` varchar(50) default NULL,
  440. `lu_State` varchar(50) default NULL,
  441. `lu_ZipAddon` varchar(50) default NULL,
  442. `lu_Zip` varchar(10) default NULL,
  443. `lu_Addon` varchar(10) default NULL,
  444. `lu_LOTNumber` varchar(10) default NULL,
  445. `lu_DPCCheckdigit` varchar(10) default NULL,
  446. `lu_RecordType` varchar(10) default NULL,
  447. `lu_LastLine` varchar(255) default NULL,
  448. `lu_CarrierRoute` varchar(10) default NULL,
  449. `lu_ReturnCodes` varchar(10) default NULL,
  450. `lu_ErrorCodes` varchar(10) default NULL,
  451. `lu_ErrorDesc` varchar(255) default NULL,
  452. PRIMARY KEY (`lu_fam_ID`)
  453. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='US Address Verification Lookups From Intelligent Search Tech';
  454. --
  455. -- Dumping data for table `istlookup_lu`
  456. --
  457. -- --------------------------------------------------------
  458. --
  459. -- Table structure for table `list_lst`
  460. --
  461. CREATE TABLE `list_lst` (
  462. `lst_ID` mediumint(8) unsigned NOT NULL default '0',
  463. `lst_OptionID` mediumint(8) unsigned NOT NULL default '0',
  464. `lst_OptionSequence` tinyint(3) unsigned NOT NULL default '0',
  465. `lst_OptionName` varchar(50) NOT NULL default ''
  466. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  467. --
  468. -- Dumping data for table `list_lst`
  469. --
  470. INSERT INTO `list_lst` (`lst_ID`, `lst_OptionID`, `lst_OptionSequence`, `lst_OptionName`) VALUES
  471. (1, 1, 1, 'Member'),
  472. (1, 2, 2, 'Regular Attender'),
  473. (1, 3, 3, 'Guest'),
  474. (1, 5, 4, 'Non-Attender'),
  475. (1, 4, 5, 'Non-Attender (staff)'),
  476. (2, 1, 1, 'Head of Household'),
  477. (2, 2, 2, 'Spouse'),
  478. (2, 3, 3, 'Child'),
  479. (2, 4, 4, 'Other Relative'),
  480. (2, 5, 5, 'Non Relative'),
  481. (3, 1, 1, 'Ministry'),
  482. (3, 2, 2, 'Team'),
  483. (3, 3, 3, 'Bible Study'),
  484. (3, 4, 4, 'Sunday School Class'),
  485. (4, 1, 1, 'True / False'),
  486. (4, 2, 2, 'Date'),
  487. (4, 3, 3, 'Text Field (50 char)'),
  488. (4, 4, 4, 'Text Field (100 char)'),
  489. (4, 5, 5, 'Text Field (Long)'),
  490. (4, 6, 6, 'Year'),
  491. (4, 7, 7, 'Season'),
  492. (4, 8, 8, 'Number'),
  493. (4, 9, 9, 'Person from Group'),
  494. (4, 10, 10, 'Money'),
  495. (4, 11, 11, 'Phone Number'),
  496. (4, 12, 12, 'Custom Drop-Down List'),
  497. (5, 1, 1, 'bAll'),
  498. (5, 2, 2, 'bAdmin'),
  499. (5, 3, 3, 'bAddRecords'),
  500. (5, 4, 4, 'bEditRecords'),
  501. (5, 5, 5, 'bDeleteRecords'),
  502. (5, 6, 6, 'bMenuOptions'),
  503. (5, 7, 7, 'bManageGroups'),
  504. (5, 8, 8, 'bFinance'),
  505. (5, 9, 9, 'bNotes'),
  506. (5, 10, 10, 'bCommunication'),
  507. (5, 11, 11, 'bCanvasser');
  508. -- --------------------------------------------------------
  509. --
  510. -- Table structure for table `menuconfig_mcf`
  511. --
  512. CREATE TABLE `menuconfig_mcf` (
  513. `mid` int(11) NOT NULL auto_increment,
  514. `name` varchar(20) NOT NULL,
  515. `parent` varchar(20) NOT NULL,
  516. `ismenu` tinyint(1) NOT NULL,
  517. `content_english` varchar(100) NOT NULL,
  518. `content` varchar(100) NULL,
  519. `uri` varchar(255) NOT NULL,
  520. `statustext` varchar(255) NOT NULL,
  521. `security_grp` varchar(50) NOT NULL,
  522. `session_var` varchar(50) default NULL,
  523. `session_var_in_text` tinyint(1) NOT NULL,
  524. `session_var_in_uri` tinyint(1) NOT NULL,
  525. `url_parm_name` varchar(50) default NULL,
  526. `active` tinyint(1) NOT NULL,
  527. `sortorder` tinyint(3) NOT NULL,
  528. PRIMARY KEY (`mid`)
  529. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=84 ;
  530. --
  531. -- Dumping data for table `menuconfig_mcf`
  532. --
  533. INSERT INTO `menuconfig_mcf` (`mid`, `name`, `parent`, `ismenu`, `content_english`, `content`, `uri`, `statustext`, `security_grp`, `session_var`, `session_var_in_text`, `session_var_in_uri`, `url_parm_name`, `active`, `sortorder`) VALUES
  534. (1, 'ROOT', '', 1, 'Main', NULL, '', '', 'bAll', NULL, 0, 0, NULL, 1, 0),
  535. (2, 'main', 'root', 1, 'Main', NULL, '', '', 'bAll', NULL, 0, 0, NULL, 1, 1),
  536. (3, 'logoff', 'main', 0, 'Log Off', NULL, 'Default.php?Logoff=True', '', 'bAll', NULL, 0, 0, NULL, 1, 1),
  537. (4, 'chgpassword', 'main', 0, 'Change My Password', NULL, 'UserPasswordChange.php', '', 'bAll', NULL, 0, 0, NULL, 1, 2),
  538. (5, 'chgsetting', 'main', 0, 'Change My Settings', NULL, 'SettingsIndividual.php', '', 'bAll', NULL, 0, 0, NULL, 1, 0),
  539. (6, 'admin', 'root', 1, 'Admin', NULL, '', '', 'bAdmin', NULL, 0, 0, NULL, 1, 2),
  540. (7, 'editusers', 'admin', 0, 'Edit Users', NULL, 'UserList.php', '', 'bAdmin', NULL, 0, 0, NULL, 1, 1),
  541. (8, 'addnewuser', 'admin', 0, 'Add New User', NULL, 'UserEditor.php', '', 'bAdmin', NULL, 0, 0, NULL, 1, 2),
  542. (9, 'custompersonfld', 'admin', 0, 'Edit Custom Person Fields', NULL, 'PersonCustomFieldsEditor.php', '', 'bAdmin', NULL, 0, 0, NULL, 1, 3),
  543. (10, 'donationfund', 'admin', 0, 'Edit Donation Funds', NULL, 'DonationFundEditor.php', '', 'bAdmin', NULL, 0, 0, NULL, 1, 4),
  544. (11, 'dbbackup', 'admin', 0, 'Backup Database', NULL, 'BackupDatabase.php', '', 'bAdmin', NULL, 0, 0, NULL, 1, 5),
  545. (12, 'cvsimport', 'admin', 0, 'CSV Import', NULL, 'CSVImport.php', '', 'bAdmin', NULL, 0, 0, NULL, 1, 6),
  546. (13, 'accessreport', 'admin', 0, 'Access report', NULL, 'AccessReport.php', '', 'bAdmin', NULL, 0, 0, NULL, 1, 7),
  547. (14, 'generalsetting', 'admin', 0, 'Edit General Settings', NULL, 'SettingsGeneral.php', '', 'bAdmin', NULL, 0, 0, NULL, 1, 8),
  548. (15, 'reportsetting', 'admin', 0, 'Edit Report Settings', NULL, 'SettingsReport.php', '', 'bAdmin', NULL, 0, 0, NULL, 1, 9),
  549. (16, 'userdefault', 'admin', 0, 'Edit User Default Settings', NULL, 'SettingsUser.php', '', 'bAdmin', NULL, 0, 0, NULL, 1, 10),
  550. (17, 'envelopmgr', 'admin', 0, 'Envelope Manager', NULL, 'ManageEnvelopes.php', '', 'bAdmin', NULL, 0, 0, NULL, 1, 11),
  551. (18, 'register', 'admin', 0, 'Please select this option to register ChurchInfo after configuring.', NULL, 'Register.php', '', 'bAdmin', NULL, 0, 0, NULL, 1, 12),
  552. (19, 'people', 'root', 1, 'People/Families', NULL, '', 'People/Families', 'bAll', NULL, 0, 0, NULL, 1, 3),
  553. (20, 'newperson', 'people', 0, 'Add New Person', NULL, 'PersonEditor.php', '', 'bAddRecords', NULL, 0, 0, NULL, 1, 1),
  554. (21, 'viewperson', 'people', 0, 'View All Persons', NULL, 'SelectList.php?mode=person', '', 'bAll', NULL, 0, 0, NULL, 1, 2),
  555. (22, 'classes', 'people', 0, 'Classification Manager', NULL, 'OptionManager.php?mode=classes', '', 'bMenuOptions', NULL, 0, 0, NULL, 1, 3),
  556. (23, 'separator1', 'people', 0, '---------------------------', NULL, '', '', 'bAll', NULL, 0, 0, NULL, 1, 4),
  557. (24, 'volunteeropportunity', 'people', 0, 'Edit volunteer opportunities', NULL, 'VolunteerOpportunityEditor.php', '', 'bAll', NULL, 0, 0, NULL, 1, 5),
  558. (25, 'separator2', 'people', 0, '---------------------------', NULL, '', '', 'bAll', NULL, 0, 0, NULL, 1, 6),
  559. (26, 'newfamily', 'people', 0, 'Add New Family', NULL, 'FamilyEditor.php', '', 'bAddRecords', NULL, 0, 0, NULL, 1, 7),
  560. (27, 'viewfamily', 'people', 0, 'View All Families', NULL, 'SelectList.php?mode=family', '', 'bAll', NULL, 0, 0, NULL, 1, 8),
  561. (28, 'familygeotools', 'people', 0, 'Family Geographic Utilties', NULL, 'GeoPage.php', '', 'bAll', NULL, 0, 0, NULL, 1, 9),
  562. (29, 'familymap', 'people', 0, 'Family Map', NULL, 'MapUsingGoogle.php?GroupID=-1', '', 'bAll', NULL, 0, 0, NULL, 1, 10),
  563. (30, 'rolemanager', 'people', 0, 'Family Roles Manager', NULL, 'OptionManager.php?mode=famroles', '', 'bMenuOptions', NULL, 0, 0, NULL, 1, 11),
  564. (31, 'events', 'root', 1, 'Events', NULL, '', 'Events', 'bAll', NULL, 0, 0, NULL, 1, 4),
  565. (32, 'listevent', 'events', 0, 'List Church Events', NULL, 'ListEvents.php', 'List Church Events', 'bAll', NULL, 0, 0, NULL, 1, 1),
  566. (33, 'addevent', 'events', 0, 'Add Church Event', NULL, 'EventNames.php', 'Add Church Event', 'bAll', NULL, 0, 0, NULL, 1, 2),
  567. (34, 'eventype', 'events', 0, 'List Event Types', NULL, 'EventNames.php', '', 'bAdmin', NULL, 0, 0, NULL, 1, 3),
  568. (83, 'eventcheckin', 'events', 0, 'Check-in and Check-out', NULL, 'Checkin.php', '', 'bAll', NULL, 0, 0, NULL, 1, 4),
  569. (35, 'deposit', 'root', 1, 'Deposit', NULL, '', '', 'bFinance', NULL, 0, 0, NULL, 1, 5),
  570. (36, 'newdeposit', 'deposit', 0, 'Create New Deposit', NULL, 'DepositSlipEditor.php?DepositType=Bank', '', 'bFinance', NULL, 0, 0, NULL, 1, 1),
  571. (37, 'viewdeposit', 'deposit', 0, 'View All Deposits', NULL, 'FindDepositSlip.php', '', 'bFinance', NULL, 0, 0, NULL, 1, 2),
  572. (38, 'depositreport', 'deposit', 0, 'Deposit Reports', NULL, 'FinancialReports.php', '', 'bFinance', NULL, 0, 0, NULL, 1, 3),
  573. (39, 'separator3', 'deposit', 0, '---------------------------', NULL, '', '', 'bFinance', NULL, 0, 0, NULL, 1, 4),
  574. (40, 'depositslip', 'deposit', 0, 'Edit Deposit Slip', NULL, 'DepositSlipEditor.php', '', 'bFinance', 'iCurrentDeposit', 1, 1, 'DepositSlipID', 1, 5),
  575. (41, 'cart', 'root', 1, 'Cart', NULL, '', '', 'bAll', NULL, 0, 0, NULL, 1, 6),
  576. (42, 'viewcart', 'cart', 0, 'List Cart Items', NULL, 'CartView.php', '', 'bAll', NULL, 0, 0, NULL, 1, 1),
  577. (43, 'emptycart', 'cart', 0, 'Empty Cart', NULL, 'CartView.php?Action=EmptyCart', '', 'bAll', NULL, 0, 0, NULL, 1, 2),
  578. (44, 'carttogroup', 'cart', 0, 'Empty Cart to Group', NULL, 'CartToGroup.php', '', 'bManageGroups', NULL, 0, 0, NULL, 1, 3),
  579. (45, 'carttofamily', 'cart', 0, 'Empty Cart to Family', NULL, 'CartToFamily.php', '', 'bAddRecords', NULL, 0, 0, NULL, 1, 4),
  580. (46, 'carttoevent', 'cart', 0, 'Empty Cart to Event', NULL, 'CartToEvent.php', 'Empty Cart contents to Event', 'bAll', NULL, 0, 0, NULL, 1, 5),
  581. (47, 'report', 'root', 1, 'Data/Reports', NULL, '', '', 'bAll', NULL, 0, 0, NULL, 1, 7),
  582. (48, 'cvsexport', 'report', 0, 'CSV Export Records', NULL, 'CSVExport.php', '', 'bAll', NULL, 0, 0, NULL, 1, 1),
  583. (49, 'querymenu', 'report', 0, 'Query Menu', NULL, 'QueryList.php', '', 'bAll', NULL, 0, 0, NULL, 1, 2),
  584. (50, 'reportmenu', 'report', 0, 'Reports Menu', NULL, 'ReportList.php', '', 'bAll', NULL, 0, 0, NULL, 1, 3),
  585. (51, 'groups', 'root', 1, 'Groups', NULL, '', '', 'bAll', NULL, 0, 0, NULL, 1, 8),
  586. (52, 'listgroups', 'groups', 0, 'List Groups', NULL, 'GroupList.php', '', 'bAll', NULL, 0, 0, NULL, 1, 1),
  587. (53, 'newgroup', 'groups', 0, 'Add a New Group', NULL, 'GroupEditor.php', '', 'bManageGroups', NULL, 0, 0, NULL, 1, 2),
  588. (54, 'editgroup', 'groups', 0, 'Edit Group Types', NULL, 'OptionManager.php?mode=grptypes', '', 'bMenuOptions', NULL, 0, 0, NULL, 1, 3),
  589. (55, 'assigngroup', 'group', 0, 'Group Assignment Helper', NULL, 'SelectList.php?mode=groupassign', '', 'bAll', NULL, 0, 0, NULL, 1, 4),
  590. (56, 'properties', 'root', 1, 'Properties', NULL, '', '', 'bAll', NULL, 0, 0, NULL, 1, 9),
  591. (57, 'peopleproperty', 'properties', 0, 'People Properties', NULL, 'PropertyList.php?Type=p', '', 'bAll', NULL, 0, 0, NULL, 1, 1),
  592. (58, 'familyproperty', 'properties', 0, 'Family Properties', NULL, 'PropertyList.php?Type=f', '', 'bAll', NULL, 0, 0, NULL, 1, 2),
  593. (59, 'groupproperty', 'properties', 0, 'Group Properties', NULL, 'PropertyList.php?Type=g', '', 'bAll', NULL, 0, 0, NULL, 1, 3),
  594. (60, 'propertytype', 'properties', 0, 'Property Types', NULL, 'PropertyTypeList.php', '', 'bAll', NULL, 0, 0, NULL, 1, 4),
  595. (64, 'help', 'root', 1, 'Help', NULL, '', '', 'bAll', NULL, 0, 0, NULL, 1, 127),
  596. (65, 'about', 'help', 0, 'About ChurchInfo', NULL, 'Help.php?page=About', '', 'bAll', NULL, 0, 0, NULL, 1, 1),
  597. (66, 'wiki', 'help', 0, 'Wiki Documentation', NULL, 'JumpToWiki.php', '', 'bAll', NULL, 0, 0, NULL, 1, 2),
  598. (67, 'helppeople', 'help', 0, 'People', NULL, 'Help.php?page=People', '', 'bAll', NULL, 0, 0, NULL, 1, 3),
  599. (68, 'helpfamily', 'help', 0, 'Families', NULL, 'Help.php?page=Family', '', 'bAll', NULL, 0, 0, NULL, 1, 4),
  600. (69, 'helpgeofeature', 'help', 0, 'Geographic features', NULL, 'Help.php?page=Geographic', '', 'bAll', NULL, 0, 0, NULL, 1, 5),
  601. (70, 'helpgroups', 'help', 0, 'Groups', NULL, 'Help.php?page=Groups', '', 'bAll', NULL, 0, 0, NULL, 1, 6),
  602. (71, 'helpfinance', 'help', 0, 'Finances', NULL, 'Help.php?page=Finances', '', 'bAll', NULL, 0, 0, NULL, 1, 7),
  603. (72, 'helpreports', 'help', 0, 'Reports', NULL, 'Help.php?page=Reports', '', 'bAll', NULL, 0, 0, NULL, 1, 8),
  604. (73, 'helpadmin', 'help', 0, 'Administration', NULL, 'Help.php?page=Admin', '', 'bAll', NULL, 0, 0, NULL, 1, 9),
  605. (74, 'helpcart', 'help', 0, 'Cart', NULL, 'Help.php?page=Cart', '', 'bAll', NULL, 0, 0, NULL, 1, 10),
  606. (75, 'helpproperty', 'help', 0, 'Properties', NULL, 'Help.php?page=Properties', '', 'bAll', NULL, 0, 0, NULL, 1, 11),
  607. (76, 'helpnotes', 'help', 0, 'Notes', NULL, 'Help.php?page=Notes', '', 'bAll', NULL, 0, 0, NULL, 1, 12),
  608. (77, 'helpcustomfields', 'help', 0, 'Custom Fields', NULL, 'Help.php?page=Custom', '', 'bAll', NULL, 0, 0, NULL, 1, 13),
  609. (78, 'helpclassification', 'help', 0, 'Classifications', NULL, 'Help.php?page=Class', '', 'bAll', NULL, 0, 0, NULL, 1, 14),
  610. (79, 'helpcanvass', 'help', 0, 'Canvass Support', NULL, 'Help.php?page=Canvass', '', 'bAll', NULL, 0, 0, NULL, 1, 15),
  611. (80, 'helpevents', 'help', 0, 'Events', NULL, 'Help.php?page=Events', '', 'bAll', NULL, 0, 0, NULL, 1, 16),
  612. (81, 'menusetup', 'admin', 0, 'Menu Options', NULL, 'MenuSetup.php', '', 'bAdmin', NULL, 0, 0, NULL, 1, 13),
  613. (82, 'customfamilyfld', 'admin', 0, 'Edit Custom Family Fields', NULL, 'FamilyCustomFieldsEditor.php', '', 'bAdmin', NULL, 0, 0, NULL, 1, 3);
  614. UPDATE menuconfig_mcf SET content=content_english;
  615. -- --------------------------------------------------------
  616. --
  617. -- Table structure for table `note_nte`
  618. --
  619. CREATE TABLE `note_nte` (
  620. `nte_ID` mediumint(8) unsigned NOT NULL auto_increment,
  621. `nte_per_ID` mediumint(8) unsigned NOT NULL default '0',
  622. `nte_fam_ID` mediumint(8) unsigned NOT NULL default '0',
  623. `nte_Private` mediumint(8) unsigned NOT NULL default '0',
  624. `nte_Text` text,
  625. `nte_DateEntered` datetime NOT NULL default '0000-00-00 00:00:00',
  626. `nte_DateLastEdited` datetime default NULL,
  627. `nte_EnteredBy` mediumint(8) unsigned NOT NULL default '0',
  628. `nte_EditedBy` mediumint(8) unsigned NOT NULL default '0',
  629. PRIMARY KEY (`nte_ID`)
  630. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
  631. --
  632. -- Dumping data for table `note_nte`
  633. --
  634. -- --------------------------------------------------------
  635. --
  636. -- Table structure for table `person2group2role_p2g2r`
  637. --
  638. CREATE TABLE `person2group2role_p2g2r` (
  639. `p2g2r_per_ID` mediumint(8) unsigned NOT NULL default '0',
  640. `p2g2r_grp_ID` mediumint(8) unsigned NOT NULL default '0',
  641. `p2g2r_rle_ID` mediumint(8) unsigned NOT NULL default '0',
  642. PRIMARY KEY (`p2g2r_per_ID`,`p2g2r_grp_ID`),
  643. KEY `p2g2r_per_ID` (`p2g2r_per_ID`,`p2g2r_grp_ID`,`p2g2r_rle_ID`)
  644. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  645. --
  646. -- Dumping data for table `person2group2role_p2g2r`
  647. --
  648. -- --------------------------------------------------------
  649. --
  650. -- Table structure for table `person2volunteeropp_p2vo`
  651. --
  652. CREATE TABLE `person2volunteeropp_p2vo` (
  653. `p2vo_ID` mediumint(9) NOT NULL auto_increment,
  654. `p2vo_per_ID` mediumint(9) default NULL,
  655. `p2vo_vol_ID` mediumint(9) default NULL,
  656. PRIMARY KEY (`p2vo_ID`),
  657. UNIQUE KEY `p2vo_ID` (`p2vo_ID`)
  658. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
  659. --
  660. -- Dumping data for table `person2volunteeropp_p2vo`
  661. --
  662. -- --------------------------------------------------------
  663. --
  664. -- Table structure for table `person_custom`
  665. --
  666. CREATE TABLE `person_custom` (
  667. `per_ID` mediumint(9) NOT NULL default '0',
  668. PRIMARY KEY (`per_ID`)
  669. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  670. --
  671. -- Dumping data for table `person_custom`
  672. --
  673. -- --------------------------------------------------------
  674. --
  675. -- Table structure for table `person_custom_master`
  676. --
  677. CREATE TABLE `person_custom_master` (
  678. `custom_Order` smallint(6) NOT NULL default '0',
  679. `custom_Field` varchar(5) NOT NULL default '',
  680. `custom_Name` varchar(40) NOT NULL default '',
  681. `custom_Special` mediumint(8) unsigned default NULL,
  682. `custom_Side` enum('left','right') NOT NULL default 'left',
  683. `custom_FieldSec` tinyint(4) NOT NULL,
  684. `type_ID` tinyint(4) NOT NULL default '0'
  685. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  686. --
  687. -- Dumping data for table `person_custom_master`
  688. --
  689. -- --------------------------------------------------------
  690. --
  691. -- Table structure for table `person_per`
  692. --
  693. CREATE TABLE `person_per` (
  694. `per_ID` mediumint(9) unsigned NOT NULL auto_increment,
  695. `per_Title` varchar(50) default NULL,
  696. `per_FirstName` varchar(50) default NULL,
  697. `per_MiddleName` varchar(50) default NULL,
  698. `per_LastName` varchar(50) default NULL,
  699. `per_Suffix` varchar(50) default NULL,
  700. `per_Address1` varchar(50) default NULL,
  701. `per_Address2` varchar(50) default NULL,
  702. `per_City` varchar(50) default NULL,
  703. `per_State` varchar(50) default NULL,
  704. `per_Zip` varchar(50) default NULL,
  705. `per_Country` varchar(50) default NULL,
  706. `per_HomePhone` varchar(30) default NULL,
  707. `per_WorkPhone` varchar(30) default NULL,
  708. `per_CellPhone` varchar(30) default NULL,
  709. `per_Email` varchar(50) default NULL,
  710. `per_WorkEmail` varchar(50) default NULL,
  711. `per_BirthMonth` tinyint(3) unsigned NOT NULL default '0',
  712. `per_BirthDay` tinyint(3) unsigned NOT NULL default '0',
  713. `per_BirthYear` year(4) default NULL,
  714. `per_MembershipDate` date default NULL,
  715. `per_Gender` tinyint(1) unsigned NOT NULL default '0',
  716. `per_fmr_ID` tinyint(3) unsigned NOT NULL default '0',
  717. `per_cls_ID` tinyint(3) unsigned NOT NULL default '0',
  718. `per_fam_ID` smallint(5) unsigned NOT NULL default '0',
  719. `per_Envelope` smallint(5) unsigned default NULL,
  720. `per_DateLastEdited` datetime default NULL,
  721. `per_DateEntered` datetime NOT NULL default '0000-00-00 00:00:00',
  722. `per_EnteredBy` smallint(5) unsigned NOT NULL default '0',
  723. `per_EditedBy` smallint(5) unsigned default '0',
  724. `per_FriendDate` date default NULL,
  725. `per_Flags` mediumint(9) NOT NULL default '0',
  726. PRIMARY KEY (`per_ID`),
  727. KEY `per_ID` (`per_ID`)
  728. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
  729. --
  730. -- Dumping data for table `person_per`
  731. --
  732. INSERT INTO `person_per` (`per_ID`, `per_Title`, `per_FirstName`, `per_MiddleName`, `per_LastName`, `per_Suffix`, `per_Address1`, `per_Address2`, `per_City`, `per_State`, `per_Zip`, `per_Country`, `per_HomePhone`, `per_WorkPhone`, `per_CellPhone`, `per_Email`, `per_WorkEmail`, `per_BirthMonth`, `per_BirthDay`, `per_BirthYear`, `per_MembershipDate`, `per_Gender`, `per_fmr_ID`, `per_cls_ID`, `per_fam_ID`, `per_Envelope`, `per_DateLastEdited`, `per_DateEntered`, `per_EnteredBy`, `per_EditedBy`, `per_FriendDate`, `per_Flags`) VALUES
  733. (1, NULL, 'ChurchInfo', NULL, 'Admin', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 0000, NULL, 0, 0, 0, 0, NULL, NULL, '2004-08-25 18:00:00', 0, 0, NULL, 0);
  734. -- --------------------------------------------------------
  735. --
  736. -- Table structure for table `pledge_plg`
  737. --
  738. CREATE TABLE `pledge_plg` (
  739. `plg_plgID` mediumint(9) NOT NULL auto_increment,
  740. `plg_FamID` mediumint(9) default NULL,
  741. `plg_FYID` mediumint(9) default NULL,
  742. `plg_date` date default NULL,
  743. `plg_amount` decimal(8,2) default NULL,
  744. `plg_schedule` enum('Monthly','Quarterly','Once','Other') default NULL,
  745. `plg_method` enum('CREDITCARD','CHECK','CASH','BANKDRAFT') default NULL,
  746. `plg_comment` text,
  747. `plg_DateLastEdited` date NOT NULL default '0000-00-00',
  748. `plg_EditedBy` mediumint(9) NOT NULL default '0',
  749. `plg_PledgeOrPayment` enum('Pledge','Payment') NOT NULL default 'Pledge',
  750. `plg_fundID` tinyint(3) unsigned default NULL,
  751. `plg_depID` mediumint(9) unsigned default NULL,
  752. `plg_CheckNo` bigint(16) unsigned default NULL,
  753. `plg_Problem` tinyint(1) default NULL,
  754. `plg_scanString` text,
  755. `plg_aut_ID` mediumint(9) NOT NULL default '0',
  756. `plg_aut_Cleared` tinyint(1) NOT NULL default '0',
  757. `plg_aut_ResultID` mediumint(9) NOT NULL default '0',
  758. `plg_NonDeductible` decimal(8,2) NOT NULL,
  759. PRIMARY KEY (`plg_plgID`)
  760. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
  761. --
  762. -- Dumping data for table `pledge_plg`
  763. --
  764. -- --------------------------------------------------------
  765. --
  766. -- Table structure for table `propertytype_prt`
  767. --
  768. CREATE TABLE `propertytype_prt` (
  769. `prt_ID` mediumint(9) NOT NULL auto_increment,
  770. `prt_Class` varchar(10) NOT NULL default '',
  771. `prt_Name` varchar(50) NOT NULL default '',
  772. `prt_Description` text NOT NULL,
  773. PRIMARY KEY (`prt_ID`),
  774. UNIQUE KEY `prt_ID` (`prt_ID`),
  775. KEY `prt_ID_2` (`prt_ID`)
  776. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ;
  777. --
  778. -- Dumping data for table `propertytype_prt`
  779. --
  780. INSERT INTO `propertytype_prt` (`prt_ID`, `prt_Class`, `prt_Name`, `prt_Description`) VALUES
  781. (1, 'p', 'General', 'General Person Properties'),
  782. (2, 'f', 'General', 'General Family Properties'),
  783. (3, 'g', 'General', 'General Group Properties');
  784. -- --------------------------------------------------------
  785. --
  786. -- Table structure for table `property_pro`
  787. --
  788. CREATE TABLE `property_pro` (
  789. `pro_ID` mediumint(8) unsigned NOT NULL auto_increment,
  790. `pro_Class` varchar(10) NOT NULL default '',
  791. `pro_prt_ID` mediumint(8) unsigned NOT NULL default '0',
  792. `pro_Name` varchar(200) NOT NULL default '0',
  793. `pro_Description` text NOT NULL,
  794. `pro_Prompt` varchar(255) default NULL,
  795. PRIMARY KEY (`pro_ID`),
  796. UNIQUE KEY `pro_ID` (`pro_ID`),
  797. KEY `pro_ID_2` (`pro_ID`)
  798. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ;
  799. --
  800. -- Dumping data for table `property_pro`
  801. --
  802. INSERT INTO `property_pro` (`pro_ID`, `pro_Class`, `pro_prt_ID`, `pro_Name`, `pro_Description`, `pro_Prompt`) VALUES
  803. (1, 'p', 1, 'Disabled', 'has a disability.', 'What is the nature of the disability?'),
  804. (2, 'f', 2, 'Single Parent', 'is a single-parent household.', ''),
  805. (3, 'g', 3, 'Youth', 'is youth-oriented.', '');
  806. -- --------------------------------------------------------
  807. --
  808. -- Table structure for table `queryparameteroptions_qpo`
  809. --
  810. CREATE TABLE `queryparameteroptions_qpo` (
  811. `qpo_ID` smallint(5) unsigned NOT NULL auto_increment,
  812. `qpo_qrp_ID` mediumint(8) unsigned NOT NULL default '0',
  813. `qpo_Display` varchar(50) NOT NULL default '',
  814. `qpo_Value` varchar(50) NOT NULL default '',
  815. PRIMARY KEY (`qpo_ID`),
  816. UNIQUE KEY `qpo_ID` (`qpo_ID`)
  817. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=28 ;
  818. --
  819. -- Dumping data for table `queryparameteroptions_qpo`
  820. --
  821. INSERT INTO `queryparameteroptions_qpo` (`qpo_ID`, `qpo_qrp_ID`, `qpo_Display`, `qpo_Value`) VALUES
  822. (1, 4, 'Male', '1'),
  823. (2, 4, 'Female', '2'),
  824. (3, 6, 'Male', '1'),
  825. (4, 6, 'Female', '2'),
  826. (5, 15, 'Name', 'CONCAT(per_FirstName,per_MiddleName,per_LastName)'),
  827. (6, 15, 'Zip Code', 'fam_Zip'),
  828. (7, 15, 'State', 'fam_State'),
  829. (8, 15, 'City', 'fam_City'),
  830. (9, 15, 'Home Phone', 'per_HomePhone'),
  831. (10, 27, '2007/2008', '12'),
  832. (11, 27, '2008/2009', '13'),
  833. (12, 27, '2009/2010', '14'),
  834. (13, 27, '2010/2011', '15'),
  835. (14, 28, '2007/2008', '12'),
  836. (15, 28, '2008/2009', '13'),
  837. (16, 28, '2009/2010', '14'),
  838. (17, 28, '2010/2011', '15'),
  839. (18, 30, '2007/2008', '12'),
  840. (19, 30, '2008/2009', '13'),
  841. (20, 30, '2009/2010', '14'),
  842. (21, 30, '2010/2011', '15'),
  843. (22, 31, '2007/2008', '12'),
  844. (23, 31, '2008/2009', '13'),
  845. (24, 31, '2009/2010', '14'),
  846. (25, 31, '2010/2011', '15'),
  847. (26, 15, 'Email', 'per_Email'),
  848. (27, 15, 'WorkEmail', 'per_WorkEmail');
  849. -- --------------------------------------------------------
  850. --
  851. -- Table structure for table `queryparameters_qrp`
  852. --
  853. CREATE TABLE `queryparameters_qrp` (
  854. `qrp_ID` mediumint(8) unsigned NOT NULL auto_increment,
  855. `qrp_qry_ID` mediumint(8) unsigned NOT NULL default '0',
  856. `qrp_Type` tinyint(3) unsigned NOT NULL default '0',
  857. `qrp_OptionSQL` text,
  858. `qrp_Name` varchar(25) default NULL,
  859. `qrp_Description` text,
  860. `qrp_Alias` varchar(25) default NULL,
  861. `qrp_Default` varchar(25) default NULL,
  862. `qrp_Required` tinyint(3) unsigned NOT NULL default '0',
  863. `qrp_InputBoxSize` tinyint(3) unsigned NOT NULL default '0',
  864. `qrp_Validation` varchar(5) NOT NULL default '',
  865. `qrp_NumericMax` int(11) default NULL,
  866. `qrp_NumericMin` int(11) default NULL,
  867. `qrp_AlphaMinLength` int(11) default NULL,
  868. `qrp_AlphaMaxLength` int(11) default NULL,
  869. PRIMARY KEY (`qrp_ID`),
  870. UNIQUE KEY `qrp_ID` (`qrp_ID`),
  871. KEY `qrp_ID_2` (`qrp_ID`),
  872. KEY `qrp_qry_ID` (`qrp_qry_ID`)
  873. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=102 ;
  874. --
  875. -- Dumping data for table `queryparameters_qrp`
  876. --
  877. INSERT INTO `queryparameters_qrp` (`qrp_ID`, `qrp_qry_ID`, `qrp_Type`, `qrp_OptionSQL`, `qrp_Name`, `qrp_Description`, `qrp_Alias`, `qrp_Default`, `qrp_Required`, `qrp_InputBoxSize`, `qrp_Validation`, `qrp_NumericMax`, `qrp_NumericMin`, `qrp_AlphaMinLength`, `qrp_AlphaMaxLength`) VALUES
  878. (1, 4, 0, NULL, 'Minimum Age', 'The minimum age for which you want records returned.', 'min', '0', 0, 5, 'n', 120, 0, NULL, NULL),
  879. (2, 4, 0, NULL, 'Maximum Age', 'The maximum age for which you want records returned.', 'max', '120', 1, 5, 'n', 120, 0, NULL, NULL),
  880. (4, 6, 1, '', 'Gender', 'The desired gender to search the database for.', 'gender', '1', 1, 0, '', 0, 0, 0, 0),
  881. (5, 7, 2, 'SELECT lst_OptionID as Value, lst_OptionName as Display FROM list_lst WHERE lst_ID=2 ORDER BY lst_OptionSequence', 'Family Role', 'Select the desired family role.', 'role', '1', 0, 0, '', 0, 0, 0, 0),
  882. (6, 7, 1, '', 'Gender', 'The gender for which you would like records returned.', 'gender', '1', 1, 0, '', 0, 0, 0, 0),
  883. (8, 9, 2, 'SELECT pro_ID AS Value, pro_Name as Display \r\nFROM property_pro\r\nWHERE pro_Class= ''p'' \r\nORDER BY pro_Name ', 'Property', 'The property for which you would like person records returned.', 'PropertyID', '0', 1, 0, '', 0, 0, 0, 0),
  884. (9, 10, 2, 'SELECT distinct don_date as Value, don_date as Display FROM donations_don ORDER BY don_date ASC', 'Beginning Date', 'Please select the beginning date to calculate total contributions for each member (i.e. YYYY-MM-DD). NOTE: You can only choose dates that conatain donations.', 'startdate', '1', 1, 0, '0', 0, 0, 0, 0),
  885. (10, 10, 2, 'SELECT distinct don_date as Value, don_date as Display FROM donations_don\r\nORDER BY don_date DESC', 'Ending Date', 'Please enter the last date to calculate total contributions for each member (i.e. YYYY-MM-DD).', 'enddate', '1', 1, 0, '', 0, 0, 0, 0),
  886. (14, 15, 0, '', 'Search', 'Enter any part of the following: Name, City, State, Zip, Home Phone, Email, or Work Email.', 'searchstring', '', 1, 0, '', 0, 0, 0, 0),
  887. (15, 15, 1, '', 'Field', 'Select field to search for.', 'searchwhat', '1', 1, 0, '', 0, 0, 0, 0),
  888. (16, 11, 2, 'SELECT distinct don_date as Value, don_date as Display FROM donations_don ORDER BY don_date ASC', 'Beginning Date', 'Please select the beginning date to calculate total contributions for each member (i.e. YYYY-MM-DD). NOTE: You can only choose dates that conatain donations.', 'startdate', '1', 1, 0, '0', 0, 0, 0, 0),
  889. (17, 11, 2, 'SELECT distinct don_date as Value, don_date as Display FROM donations_don\r\nORDER BY don_date DESC', 'Ending Date', 'Please enter the last date to calculate total contributions for each member (i.e. YYYY-MM-DD).', 'enddate', '1', 1, 0, '', 0, 0, 0, 0),
  890. (18, 18, 0, '', 'Month', 'The birthday month for which you would like records returned.', 'birthmonth', '1', 1, 0, '', 12, 1, 1, 2),
  891. (19, 19, 2, 'SELECT grp_ID AS Value, grp_Name AS Display FROM group_grp ORDER BY grp_Type', 'Class', 'The sunday school class for which you would like records returned.', 'group', '1', 1, 0, '', 12, 1, 1, 2),
  892. (20, 20, 2, 'SELECT grp_ID AS Value, grp_Name AS Display FROM group_grp ORDER BY grp_Type', 'Class', 'The sunday school class for which you would like records returned.', 'group', '1', 1, 0, '', 12, 1, 1, 2),
  893. (21, 21, 2, 'SELECT grp_ID AS Value, grp_Name AS Display FROM group_grp ORDER BY grp_Type', 'Registered students', 'Group of registered students', 'group', '1', 1, 0, '', 12, 1, 1, 2),
  894. (22, 22, 0, '', 'Month', 'The membership anniversary month for which you would like records returned.', 'membermonth', '1', 1, 0, '', 12, 1, 1, 2),
  895. (25, 25, 2, 'SELECT vol_ID AS Value, vol_Name AS Display FROM volunteeropportunity_vol ORDER BY vol_Name', 'Volunteer opportunities', 'Choose a volunteer opportunity', 'volopp', '1', 1, 0, '', 12, 1, 1, 2),
  896. (26, 26, 0, '', 'Months', 'Number of months since becoming a friend', 'friendmonths', '1', 1, 0, '', 24, 1, 1, 2),
  897. (27, 28, 1, '', 'First Fiscal Year', 'First fiscal year for comparison', 'fyid1', '9', 1, 0, '', 12, 9, 0, 0),
  898. (28, 28, 1, '', 'Second Fiscal Year', 'Second fiscal year for comparison', 'fyid2', '9', 1, 0, '', 12, 9, 0, 0),
  899. (30, 30, 1, '', 'First Fiscal Year', 'Pledged this year', 'fyid1', '9', 1, 0, '', 12, 9, 0, 0),
  900. (31, 30, 1, '', 'Second Fiscal Year', 'but not this year', 'fyid2', '9', 1, 0, '', 12, 9, 0, 0),
  901. (100, 100, 2, 'SELECT vol_ID AS Value, vol_Name AS Display FROM volunteeropportunity_vol ORDER BY vol_Name', 'Volunteer opportunities', 'First volunteer opportunity choice', 'volopp1', '1', 1, 0, '', 12, 1, 1, 2),
  902. (101, 100, 2, 'SELECT vol_ID AS Value, vol_Name AS Display FROM volunteeropportunity_vol ORDER BY vol_Name', 'Volunteer opportunities', 'Second volunteer opportunity choice', 'volopp2', '1', 1, 0, '', 12, 1, 1, 2);
  903. -- --------------------------------------------------------
  904. --
  905. -- Table structure for table `query_qry`
  906. --
  907. CREATE TABLE `query_qry` (
  908. `qry_ID` mediumint(8) unsigned NOT NULL auto_increment,
  909. `qry_SQL` text NOT NULL,
  910. `qry_Name` varchar(255) NOT NULL default '',
  911. `qry_Description` text NOT NULL,
  912. `qry_Count` tinyint(1) unsigned NOT NULL default '0',
  913. PRIMARY KEY (`qry_ID`),
  914. UNIQUE KEY `qry_ID` (`qry_ID`),
  915. KEY `qry_ID_2` (`qry_ID`)
  916. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=101 ;
  917. --
  918. -- Dumping data for table `query_qry`
  919. --
  920. INSERT INTO `query_qry` (`qry_ID`, `qry_SQL`, `qry_Name`, `qry_Description`, `qry_Count`) VALUES
  921. (2, 'SELECT COUNT(per_ID)\nAS ''Count''\nFROM person_per', 'Person Count', 'Returns the total number of people in the database.', 0),
  922. (3, 'SELECT CONCAT(''<a href=FamilyView.php?FamilyID='',fam_ID,''>'',fam_Name,''</a>'') AS ''Family Name'', COUNT(*) AS ''No.''\nFROM person_per\nINNER JOIN family_fam\nON fam_ID = per_fam_ID\nGROUP BY per_fam_ID\nORDER BY ''No.'' DESC', 'Family Member Count', 'Returns each family and the total number of people assigned to them.', 0),
  923. (4, 'SELECT per_ID as AddToCart,CONCAT(''<a\r\nhref=PersonView.php?PersonID='',per_ID,''>'',per_FirstName,''\r\n'',per_LastName,''</a>'') AS Name,\r\nCONCAT(per_BirthMonth,''/'',per_BirthDay,''/'',per_BirthYear) AS ''Birth Date'',\r\nYEAR(CURRENT_DATE) - per_BirthYear - 1 AS ''Age''\r\nFROM person_per\r\nWHERE\r\nDATE_ADD(CONCAT(per_BirthYear,''-'',per_BirthMonth,''-'',per_BirthDay),INTERVAL\r\n~min~ YEAR) <= CURDATE()\r\nAND\r\nDATE_ADD(CONCAT(per_BirthYear,''-'',per_BirthMonth,''-'',per_BirthDay),INTERVAL\r\n(~max~ + 1) YEAR) >= CURDATE()', 'Person by Age', 'Returns any person records with ages between two given ages.', 1),
  924. (6, 'SELECT COUNT(per_ID) AS Total FROM person_per WHERE per_Gender = ~gender~', 'Total By Gender', 'Total of records matching a given gender.', 0),
  925. (7, 'SELECT per_ID as AddToCart, CONCAT(per_FirstName,'' '',per_LastName) AS Name FROM person_per WHERE per_fmr_ID = ~role~ AND per_Gender = ~gender~', 'Person by Role and Gender', 'Selects person records with the family role and gender specified.', 1),
  926. (9, 'SELECT \r\nper_ID as AddToCart, \r\nCONCAT(per_FirstName,'' '',per_LastName) AS Name, \r\nCONCAT(r2p_Value,'' '') AS Value\r\nFROM person_per,record2property_r2p\r\nWHERE per_ID = r2p_record_ID\r\nAND r2p_pro_ID = ~PropertyID~\r\nORDER BY per_LastName', 'Person by Property', 'Returns person records which are assigned the given property.', 1),
  927. (15, 'SELECT per_ID as AddToCart, CONCAT(''<a href=PersonView.php?PersonID='',per_ID,''>'',per_FirstName,'' '',per_MiddleName,'' '',per_LastName,''</a>'') AS Name, fam_City as City, fam_State as State, fam_Zip as ZIP, per_HomePhone as HomePhone, per_Email as Email, per_WorkEmail as WorkEmail FROM person_per RIGHT JOIN family_fam ON family_fam.fam_id = person_per.per_fam_id WHERE ~searchwhat~ LIKE ''%~searchstring~%''', 'Advanced Search', 'Search by any part of Name, City, State, Zip, Home Phone, Email, or Work Email.', 1),
  928. (16, 'SELECT per_ID as AddToCart, CONCAT(''<a href=PersonView.php?PersonID='',per_ID,''>'',per_FirstName,'' '',per_LastName,''</a>'') AS Name FROM person_per LEFT JOIN person2group2role_p2g2r ON per_id = p2g2r_per_ID LEFT JOIN group_grp a ON grp_ID = p2g2r_grp_ID LEFT JOIN list_lst b ON lst_ID = grp_RoleListID AND p2g2r_rle_ID = lst_OptionID WHERE lst_OptionName = ''Teacher''', 'Find Teachers', 'Find all people assigned to Sunday school classes as teachers', 1),
  929. (17, 'SELECT per_ID as AddToCart, CONCAT(''<a href=PersonView.php?PersonID='',per_ID,''>'',per_FirstName,'' '',per_LastName,''</a>'') AS Name FROM person_per LEFT JOIN person2group2role_p2g2r ON per_id = p2g2r_per_ID LEFT JOIN group_grp a ON grp_ID = p2g2r_grp_ID LEFT JOIN list_lst b ON lst_ID = grp_RoleListID AND p2g2r_rle_ID = lst_OptionID WHERE lst_OptionName = ''Student''', 'Find Students', 'Find all people assigned to Sunday school classes as students', 1),
  930. (18, 'SELECT per_ID as AddToCart, per_BirthDay as Day, CONCAT(per_FirstName,'' '',per_LastName) AS Name FROM person_per WHERE per_cls_ID=1 AND per_BirthMonth=~birthmonth~ ORDER BY per_BirthDay', 'Birthdays', 'Members with birthdays in a particular month', 0),
  931. (19, 'SELECT per_ID as AddToCart, CONCAT(''<a href=PersonView.php?PersonID='',per_ID,''>'',per_FirstName,'' '',per_LastName,''</a>'') AS Name FROM person_per LEFT JOIN person2group2role_p2g2r ON per_id = p2g2r_per_ID LEFT JOIN group_grp a ON grp_ID = p2g2r_grp_ID LEFT JOIN list_lst b ON lst_ID = grp_RoleListID AND p2g2r_rle_ID = lst_OptionID WHERE lst_OptionName = ''Student'' AND grp_ID = ~group~ ORDER BY per_LastName', 'Class Students', 'Find students for a particular class', 1),
  932. (20, 'SELECT per_ID as AddToCart, CONCAT(''<a href=PersonView.php?PersonID='',per_ID,''>'',per_FirstName,'' '',per_LastName,''</a>'') AS Name FROM person_per LEFT JOIN person2group2role_p2g2r ON per_id = p2g2r_per_ID LEFT JOIN group_grp a ON grp_ID = p2g2r_grp_ID LEFT JOIN list_lst b ON lst_ID = grp_RoleListID AND p2g2r_rle_ID = lst_OptionID WHERE lst_OptionName = ''Teacher'' AND grp_ID = ~group~ ORDER BY per_LastName', 'Class Teachers', 'Find teachers for a particular class', 1),
  933. (21, 'SELECT per_ID as AddToCart, CONCAT(''<a href=PersonView.php?PersonID='',per_ID,''>'',per_FirstName,'' '',per_LastName,''</a>'') AS Name FROM person_per LEFT JOIN person2group2role_p2g2r ON per_id = p2g2r_per_ID WHERE p2g2r_grp_ID=~group~ ORDER BY per_LastName', 'Registered students', 'Find Registered students', 1),
  934. (22, 'SELECT per_ID as AddToCart, DAYOFMONTH(per_MembershipDate) as Day, per_MembershipDate AS DATE, CONCAT(per_FirstName,'' '',per_LastName) AS Name FROM person_per WHERE per_cls_ID=1 AND MONTH(per_MembershipDate)=~membermonth~ ORDER BY per_MembershipDate', 'Membership anniversaries', 'Members who joined in a particular month', 0),
  935. (23, 'SELECT usr_per_ID as AddToCart, CONCAT(a.per_FirstName,'' '',a.per_LastName) AS Name FROM user_usr LEFT JOIN person_per a ON per_ID=usr_per_ID ORDER BY per_LastName', 'Select database users', 'People who are registered as database users', 0),
  936. (24, 'SELECT per_ID as AddToCart, CONCAT(''<a href=PersonView.php?PersonID='',per_ID,''>'',per_FirstName,'' '',per_LastName,''</a>'') AS Name FROM person_per WHERE per_cls_id =1', 'Select all members', 'People who are members', 0),
  937. (25, 'SELECT per_ID as AddToCart, CONCAT(''<a href=PersonView.php?PersonID='',per_ID,''>'',per_FirstName,'' '',per_LastName,''</a>'') AS Name FROM person_per LEFT JOIN person2volunteeropp_p2vo ON per_id = p2vo_per_ID WHERE p2vo_vol_ID = ~volopp~ ORDER BY per_LastName', 'Volunteers', 'Find volunteers for a particular opportunity', 1),
  938. (26, 'SELECT per_ID as AddToCart, CONCAT(per_FirstName,'' '',per_LastName) AS Name FROM person_per WHERE DATE_SUB(NOW(),INTERVAL ~friendmonths~ MONTH)<per_FriendDate ORDER BY per_MembershipDate', 'Recent friends', 'Friends who signed up in previous months', 0),
  939. (27, 'SELECT per_ID as AddToCart, CONCAT(per_FirstName,'' '',per_LastName) AS Name FROM person_per inner join family_fam on per_fam_ID=fam_ID where per_fmr_ID<>3 AND fam_OkToCanvass="TRUE" ORDER BY fam_Zip', 'Families to Canvass', 'People in families that are ok to canvass.', 0),
  940. (28, 'SELECT fam_Name, a.plg_amount as PlgFY1, b.plg_amount as PlgFY2 from family_fam left join pledge_plg a on a.plg_famID = fam_ID and a.plg_FYID=~fyid1~ and a.plg_PledgeOrPayment=''Pledge'' left join pledge_plg b on b.plg_famID = fam_ID and b.plg_FYID=~fyid2~ and b.plg_PledgeOrPayment=''Pledge'' order by fam_Name', 'Pledge comparison', 'Compare pledges between two fiscal years', 1),
  941. (30, 'SELECT per_ID as AddToCart, CONCAT(per_FirstName,'' '',per_LastName) AS Name, fam_address1, fam_city, fam_state, fam_zip FROM person_per join family_fam on per_fam_id=fam_id where per_fmr_id<>3 and per_fam_id in (select fam_id from family_fam inner join pledge_plg a on a.plg_famID=fam_ID and a.plg_FYID=~fyid1~ and a.plg_amount>0) and per_fam_id not in (select fam_id from family_fam inner join pledge_plg b on b.plg_famID=fam_ID and b.plg_FYID=~fyid2~ and b.plg_amount>0)', 'Missing pledges', 'Find people who pledged one year but not another', 1),
  942. (31, 'select per_ID as AddToCart, per_FirstName, per_LastName, per_email from person_per, autopayment_aut where aut_famID=per_fam_ID and aut_CreditCard!="" and per_email!="" and (per_fmr_ID=1 or per_fmr_ID=2 or per_cls_ID=1)', 'Credit Cart People', 'People who are configured to pay by credit card.', 0),
  943. (100, 'SELECT a.per_ID as AddToCart, CONCAT(''<a href=PersonView.php?PersonID='',a.per_ID,''>'',a.per_FirstName,'' '',a.per_LastName,''</a>'') AS Name FROM person_per AS a LEFT JOIN person2volunteeropp_p2vo p2v1 ON (a.per_id = p2v1.p2vo_per_ID AND p2v1.p2vo_vol_ID = ~volopp1~) LEFT JOIN person2volunteeropp_p2vo p2v2 ON (a.per_id = p2v2.p2vo_per_ID AND p2v2.p2vo_vol_ID = ~volopp2~) WHERE p2v1.p2vo_per_ID=p2v2.p2vo_per_ID ORDER BY per_LastName', 'Volunteers', 'Find volunteers for who match two specific opportunity codes', 1);
  944. -- --------------------------------------------------------
  945. --
  946. -- Table structure for table `record2property_r2p`
  947. --
  948. CREATE TABLE `record2property_r2p` (
  949. `r2p_pro_ID` mediumint(8) unsigned NOT NULL default '0',
  950. `r2p_record_ID` mediumint(8) unsigned NOT NULL default '0',
  951. `r2p_Value` text NOT NULL
  952. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  953. --
  954. -- Dumping data for table `record2property_r2p`
  955. --
  956. -- --------------------------------------------------------
  957. --
  958. -- Table structure for table `result_res`
  959. --
  960. CREATE TABLE `result_res` (
  961. `res_ID` mediumint(9) NOT NULL auto_increment,
  962. `res_echotype1` text NOT NULL,
  963. `res_echotype2` text NOT NULL,
  964. `res_echotype3` text NOT NULL,
  965. `res_authorization` text NOT NULL,
  966. `res_order_number` text NOT NULL,
  967. `res_reference` text NOT NULL,
  968. `res_status` text NOT NULL,
  969. `res_avs_result` text NOT NULL,
  970. `res_security_result` text NOT NULL,
  971. `res_mac` text NOT NULL,
  972. `res_decline_code` text NOT NULL,
  973. `res_tran_date` text NOT NULL,
  974. `res_merchant_name` text NOT NULL,
  975. `res_version` text NOT NULL,
  976. `res_EchoServer` text NOT NULL,
  977. PRIMARY KEY (`res_ID`)
  978. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
  979. --
  980. -- Dumping data for table `result_res`
  981. --
  982. -- --------------------------------------------------------
  983. --
  984. -- Table structure for table `userconfig_ucfg`
  985. --
  986. CREATE TABLE `userconfig_ucfg` (
  987. `ucfg_per_id` mediumint(9) unsigned NOT NULL,
  988. `ucfg_id` int(11) NOT NULL default '0',
  989. `ucfg_name` varchar(50) NOT NULL default '',
  990. `ucfg_value` text,
  991. `ucfg_type` enum('text','number','date','boolean','textarea') NOT NULL default 'text',
  992. `ucfg_tooltip` text NOT NULL,
  993. `ucfg_permission` enum('FALSE','TRUE') NOT NULL default 'FALSE',
  994. `ucfg_cat` varchar(20) NOT NULL,
  995. PRIMARY KEY (`ucfg_per_id`,`ucfg_id`)
  996. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  997. --
  998. -- Dumping data for table `userconfig_ucfg`
  999. --
  1000. INSERT INTO `userconfig_ucfg` (`ucfg_per_id`, `ucfg_id`, `ucfg_name`, `ucfg_value`, `ucfg_type`, `ucfg_tooltip`, `ucfg_permission`, `ucfg_cat`) VALUES
  1001. (0, 0, 'bEmailMailto', '1', 'boolean', 'User permission to send email via mailto: links', 'TRUE', ''),
  1002. (0, 1, 'sMailtoDelimiter', ',', 'text', 'Delimiter to separate emails in mailto: links', 'TRUE', ''),
  1003. (0, 2, 'bSendPHPMail', '0', 'boolean', 'User permission to send email using PHPMailer', 'FALSE', ''),
  1004. (0, 3, 'sFromEmailAddress', '', 'text', 'Reply email address: PHPMailer', 'FALSE', ''),
  1005. (0, 4, 'sFromName', 'ChurchInfo Webmaster', 'text', 'Name that appears in From field: PHPMailer', 'FALSE', ''),
  1006. (0, 5, 'bCreateDirectory', '0', 'boolean', 'User permission to create directories', 'FALSE', 'SECURITY'),
  1007. (0, 6, 'bExportCSV', '0', 'boolean', 'User permission to export CSV files', 'FALSE', 'SECURITY'),
  1008. (0, 7, 'bUSAddressVerification', '0', 'boolean', 'User permission to use IST Address Verification', 'FALSE', ''),
  1009. (1, 0, 'bEmailMailto', '1', 'boolean', 'User permission to send email via mailto: links', 'TRUE', ''),
  1010. (1, 1, 'sMailtoDelimiter', ',', 'text', 'user permission to send email via mailto: links', 'TRUE', ''),
  1011. (1, 2, 'bSendPHPMail', '1', 'boolean', 'User permission to send email using PHPMailer', 'TRUE', ''),
  1012. (1, 3, 'sFromEmailAddress', '', 'text', 'Reply email address for PHPMailer', 'TRUE', ''),
  1013. (1, 4, 'sFromName', 'ChurchInfo Webmaster', 'text', 'Name that appears in From field', 'TRUE', ''),
  1014. (1, 5, 'bCreateDirectory', '1', 'boolean', 'User permission to create directories', 'TRUE', ''),
  1015. (1, 6, 'bExportCSV', '1', 'boolean', 'User permission to export CSV files', 'TRUE', ''),
  1016. (1, 7, 'bUSAddressVerification', '1', 'boolean', 'User permission to use IST Address Verification', 'TRUE', ''),
  1017. (0, 10, 'bAddEvent', '0', 'boolean', 'Allow user to add new event', 'FALSE', 'SECURITY'),
  1018. (0, 11, 'bSeePrivacyData', '0', 'boolean', 'Allow user to see member privacy data, e.g. Birth Year, Age.', 'FALSE', 'SECURITY');
  1019. -- --------------------------------------------------------
  1020. --
  1021. -- Table structure for table `user_usr`
  1022. --
  1023. CREATE TABLE `user_usr` (
  1024. `usr_per_ID` mediumint(9) unsigned NOT NULL default '0',
  1025. `usr_Password` varchar(50) NOT NULL default '',
  1026. `usr_NeedPasswordChange` tinyint(3) unsigned NOT NULL default '0',
  1027. `usr_LastLogin` datetime NOT NULL default '0000-00-00 00:00:00',
  1028. `usr_LoginCount` smallint(5) unsigned NOT NULL default '0',
  1029. `usr_FailedLogins` tinyint(3) unsigned NOT NULL default '0',
  1030. `usr_AddRecords` tinyint(3) unsigned NOT NULL default '0',
  1031. `usr_EditRecords` tinyint(3) unsigned NOT NULL default '0',
  1032. `usr_DeleteRecords` tinyint(3) unsigned NOT NULL default '0',
  1033. `usr_MenuOptions` tinyint(3) unsigned NOT NULL default '0',
  1034. `usr_ManageGroups` tinyint(3) unsigned NOT NULL default '0',
  1035. `usr_Finance` tinyint(3) unsigned NOT NULL default '0',
  1036. `usr_Communication` tinyint(3) unsigned NOT NULL default '0',
  1037. `usr_Notes` tinyint(3) unsigned NOT NULL default '0',
  1038. `usr_Admin` tinyint(3) unsigned NOT NULL default '0',
  1039. `usr_Workspacewidth` smallint(6) default NULL,
  1040. `usr_BaseFontSize` tinyint(4) default NULL,
  1041. `usr_SearchLimit` tinyint(4) default '10',
  1042. `usr_Style` varchar(50) default 'Style.css',
  1043. `usr_showPledges` tinyint(1) NOT NULL default '0',
  1044. `usr_showPayments` tinyint(1) NOT NULL default '0',
  1045. `usr_showSince` date NOT NULL default '0000-00-00',
  1046. `usr_defaultFY` mediumint(9) NOT NULL default '10',
  1047. `usr_currentDeposit` mediumint(9) NOT NULL default '0',
  1048. `usr_UserName` varchar(32) default NULL,
  1049. `usr_EditSelf` tinyint(3) unsigned NOT NULL default '0',
  1050. `usr_CalStart` date default NULL,
  1051. `usr_CalEnd` date default NULL,
  1052. `usr_CalNoSchool1` date default NULL,
  1053. `usr_CalNoSchool2` date default NULL,
  1054. `usr_CalNoSchool3` date default NULL,
  1055. `usr_CalNoSchool4` date default NULL,
  1056. `usr_CalNoSchool5` date default NULL,
  1057. `usr_CalNoSchool6` date default NULL,
  1058. `usr_CalNoSchool7` date default NULL,
  1059. `usr_CalNoSchool8` date default NULL,
  1060. `usr_SearchFamily` tinyint(3) default NULL,
  1061. `usr_Canvasser` tinyint(3) NOT NULL default '0',
  1062. PRIMARY KEY (`usr_per_ID`),
  1063. UNIQUE KEY `usr_UserName` (`usr_UserName`),
  1064. KEY `usr_per_ID` (`usr_per_ID`)
  1065. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  1066. --
  1067. -- Dumping data for table `user_usr`
  1068. --
  1069. INSERT INTO `user_usr` (`usr_per_ID`, `usr_Password`, `usr_NeedPasswordChange`, `usr_LastLogin`,
  1070. `usr_LoginCount`, `usr_FailedLogins`, `usr_AddRecords`, `usr_EditRecords`, `usr_DeleteRecords`,
  1071. `usr_MenuOptions`, `usr_ManageGroups`, `usr_Finance`, `usr_Communication`, `usr_Notes`, `usr_Admin`,
  1072. `usr_Workspacewidth`, `usr_BaseFontSize`, `usr_SearchLimit`, `usr_Style`, `usr_showPledges`,
  1073. `usr_showPayments`, `usr_showSince`, `usr_defaultFY`, `usr_currentDeposit`, `usr_UserName`, `usr_EditSelf`,
  1074. `usr_CalStart`, `usr_CalEnd`, `usr_CalNoSchool1`, `usr_CalNoSchool2`, `usr_CalNoSchool3`, `usr_CalNoSchool4`,
  1075. `usr_CalNoSchool5`, `usr_CalNoSchool6`, `usr_CalNoSchool7`, `usr_CalNoSchool8`, `usr_SearchFamily`,
  1076. `usr_Canvasser`)
  1077. VALUES
  1078. (1, '1a7ac1b904382aaf0ac67b4f00e7b93f', 1, '0000-00-00 00:00:00', 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 580, 9, 10, 'Style.css', 0, 0, '0000-00-00', 10, 0, 'Admin', 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0);
  1079. -- --------------------------------------------------------
  1080. --
  1081. -- Table structure for table `version_ver`
  1082. --
  1083. CREATE TABLE `version_ver` (
  1084. `ver_ID` mediumint(9) unsigned NOT NULL auto_increment,
  1085. `ver_version` varchar(50) NOT NULL default '',
  1086. `ver_date` datetime default NULL,
  1087. PRIMARY KEY (`ver_ID`),
  1088. UNIQUE KEY `ver_version` (`ver_version`)
  1089. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ;
  1090. --
  1091. -- Dumping data for table `version_ver`
  1092. --
  1093. INSERT INTO `version_ver` (`ver_version`, `ver_date`) VALUES
  1094. ('1.2.11', NOW() );
  1095. -- --------------------------------------------------------
  1096. --
  1097. -- Table structure for table `volunteeropportunity_vol`
  1098. --
  1099. CREATE TABLE `volunteeropportunity_vol` (
  1100. `vol_ID` tinyint(3) NOT NULL auto_increment,
  1101. `vol_Active` enum('true','false') NOT NULL default 'true',
  1102. `vol_Name` varchar(30) default NULL,
  1103. `vol_Description` varchar(100) default NULL,
  1104. PRIMARY KEY (`vol_ID`),
  1105. UNIQUE KEY `vol_ID` (`vol_ID`)
  1106. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
  1107. --
  1108. -- Dumping data for table `volunteeropportunity_vol`
  1109. --
  1110. -- --------------------------------------------------------
  1111. --
  1112. -- Table structure for table `whycame_why`
  1113. --
  1114. CREATE TABLE `whycame_why` (
  1115. `why_ID` mediumint(9) NOT NULL auto_increment,
  1116. `why_per_ID` mediumint(9) NOT NULL default '0',
  1117. `why_join` text NOT NULL,
  1118. `why_come` text NOT NULL,
  1119. `why_suggest` text NOT NULL,
  1120. `why_hearOfUs` text NOT NULL,
  1121. PRIMARY KEY (`why_ID`)
  1122. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
  1123. --
  1124. -- Dumping data for table `whycame_why`
  1125. --