PageRenderTime 78ms CodeModel.GetById 36ms 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

Large files files are truncated, but you can click here to view the full file

  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`

Large files files are truncated, but you can click here to view the full file