3 -- Host: localhost Database: phpgroupware
4 -- ------------------------------------------------------
7 -- Current Database: `phpgroupware`
10 CREATE DATABASE /*!32312 IF NOT EXISTS*/ `phpgroupware` /*!40100 DEFAULT CHARACTER SET latin1 */;
15 -- Table structure for table `eq_aaronic`
17 CREATE TABLE `eq_aaronic` (
18 `aaronic` int(16) unsigned NOT NULL auto_increment,
19 `name` varchar(60) default NULL,
20 `phone` varchar(12) default NULL,
21 `valid` tinyint(1) default NULL,
22 PRIMARY KEY (`aaronic`)
23 ) ENGINE=MyISAM AUTO_INCREMENT=92 DEFAULT CHARSET=latin1;
27 -- Table structure for table `eq_activity`
29 CREATE TABLE `eq_activity` (
30 `activity` int(16) unsigned NOT NULL auto_increment,
31 `assignment` int(16) unsigned NOT NULL,
32 `date` date default NULL,
34 PRIMARY KEY (`activity`),
35 KEY `assignment` (`assignment`)
36 ) ENGINE=MyISAM AUTO_INCREMENT=33 DEFAULT CHARSET=latin1;
39 -- Table structure for table `eq_appointment`
41 CREATE TABLE `eq_appointment` (
42 `appointment` int(16) unsigned NOT NULL auto_increment,
43 `presidency` int(16) unsigned NOT NULL default '0',
44 `family` int(16) unsigned default '0',
45 `elder` int(16) unsigned default '0',
46 `date` date NOT NULL default '0000-00-00',
47 `time` time NOT NULL default '00:00:00',
48 `uid` bigint(64) unsigned NOT NULL default '0',
49 PRIMARY KEY (`appointment`)
50 ) ENGINE=MyISAM AUTO_INCREMENT=132 DEFAULT CHARSET=latin1;
53 -- Table structure for table `eq_assignment`
55 CREATE TABLE `eq_assignment` (
56 `assignment` int(12) unsigned NOT NULL auto_increment,
57 `name` varchar(60) NOT NULL,
58 `code` varchar(12) default NULL,
59 PRIMARY KEY (`assignment`)
60 ) ENGINE=MyISAM AUTO_INCREMENT=11 DEFAULT CHARSET=latin1;
63 -- Dumping data for table `eq_assignment`
65 LOCK TABLES `eq_assignment` WRITE;
66 /*!40000 ALTER TABLE `eq_assignment` DISABLE KEYS */;
67 INSERT INTO `eq_assignment` (`assignment`, `name`, `code`) VALUES (1,'Enrichment Night Babysitting','RS'),(2,'Building Lockup','LU'),(3,'Building Cleaning Coordinator','CC'),(4,'Missionary Splits','MS'),(5,'Stake Farm','SF'),(6,'Loveland Kitchen','LK'),(7,'Moves','MV'),(8,'Temple Kitchen & Laundary','TKL'),(9,'Temple Sealings','TS'),(10,'Temple Initatories','TI');
68 /*!40000 ALTER TABLE `eq_assignment` ENABLE KEYS */;
72 -- Table structure for table `eq_attendance`
74 CREATE TABLE `eq_attendance` (
75 `elder` int(16) unsigned NOT NULL default '0',
76 `date` date default NULL,
78 ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
81 -- Table structure for table `eq_calling`
83 CREATE TABLE `eq_calling` (
84 `indiv_id` int(16) unsigned default NULL,
85 `name` varchar(30) default NULL,
86 `organization` varchar(30) default NULL,
87 `position` varchar(30) default NULL,
88 `sequence` int(16) unsigned default NULL,
89 `sustained` varchar(30) default NULL,
90 KEY `indiv_id` (`indiv_id`)
91 ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
94 -- Table structure for table `eq_child`
96 CREATE TABLE `eq_child` (
97 `child` int(16) unsigned NOT NULL auto_increment,
98 `family` int(16) unsigned default NULL,
99 `name` varchar(30) default NULL,
100 `birthday` date default NULL,
101 `indiv_id` int(16) unsigned default NULL,
102 `valid` tinyint(1) default NULL,
103 PRIMARY KEY (`child`)
104 ) ENGINE=MyISAM AUTO_INCREMENT=260 DEFAULT CHARSET=latin1;
107 -- Table structure for table `eq_companionship`
110 CREATE TABLE `eq_companionship` (
111 `companionship` int(16) unsigned NOT NULL default '0',
112 `elder` int(16) unsigned NOT NULL default '0',
113 `aaronic` int(16) unsigned NOT NULL default '0',
114 `district` int(16) unsigned default NULL,
115 `valid` tinyint(1) default NULL,
116 KEY `companionship` (`companionship`)
117 ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
120 -- Table structure for table `eq_district`
122 CREATE TABLE `eq_district` (
123 `district` int(16) unsigned NOT NULL default '0',
124 `name` varchar(30) default NULL,
125 `supervisor` int(16) unsigned default NULL,
126 `valid` tinyint(1) default NULL,
127 PRIMARY KEY (`district`)
128 ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
129 LOCK TABLES `eq_district` WRITE;
130 /*!40000 ALTER TABLE `eq_district` DISABLE KEYS */;
131 INSERT INTO `eq_district` (`district`, `name`, `supervisor`, `valid`) VALUES (0,'High Priests',0,0);
132 /*!40000 ALTER TABLE `eq_district` ENABLE KEYS */;
136 -- Table structure for table `eq_elder`
138 CREATE TABLE `eq_elder` (
139 `elder` int(16) unsigned NOT NULL auto_increment,
140 `name` varchar(60) default NULL,
141 `phone` varchar(12) default NULL,
142 `ppi_pri` int(10) unsigned NOT NULL default '1',
143 `ppi_notes` varchar(128) default NULL,
144 `int_pri` int(10) unsigned default '1',
145 `int_notes` varchar(128) default NULL,
146 `attending` tinyint(1) default '0',
147 `valid` tinyint(1) default NULL,
148 PRIMARY KEY (`elder`)
149 ) ENGINE=MyISAM AUTO_INCREMENT=105 DEFAULT CHARSET=latin1;
152 -- Table structure for table `eq_family`
154 CREATE TABLE `eq_family` (
155 `family` int(16) unsigned NOT NULL auto_increment,
156 `hofh_id` int(16) unsigned NOT NULL default '0',
157 `name` varchar(30) NOT NULL default '',
158 `name_id` varchar(30) NOT NULL default '',
159 `elder_id` int(16) unsigned default '0',
160 `companionship` int(16) unsigned default NULL,
161 `visit_pri` int(10) unsigned default '1',
162 `visit_notes` varchar(128) default NULL,
163 `valid` tinyint(1) default NULL,
164 PRIMARY KEY (`family`)
165 ) ENGINE=MyISAM AUTO_INCREMENT=277 DEFAULT CHARSET=latin1;
168 -- Table structure for table `eq_interview`
170 CREATE TABLE `eq_interview` (
171 `interview` int(16) unsigned NOT NULL auto_increment,
172 `interviewer` int(16) unsigned default NULL,
173 `elder` int(16) unsigned default NULL,
174 `aaronic` int(16) unsigned NOT NULL default '0',
175 `date` date default NULL,
177 PRIMARY KEY (`interview`)
178 ) ENGINE=MyISAM AUTO_INCREMENT=65 DEFAULT CHARSET=latin1;
181 -- Table structure for table `eq_parent`
183 CREATE TABLE `eq_parent` (
184 `parent` int(16) unsigned NOT NULL auto_increment,
185 `family` int(16) unsigned default NULL,
186 `name` varchar(30) default NULL,
187 `birthday` date default NULL,
188 `phone` varchar(12) default NULL,
189 `address` varchar(255) default NULL,
190 `indiv_id` int(16) unsigned default NULL,
191 `valid` tinyint(1) default NULL,
192 PRIMARY KEY (`parent`)
193 ) ENGINE=MyISAM AUTO_INCREMENT=396 DEFAULT CHARSET=latin1;
196 -- Table structure for table `eq_participation`
198 CREATE TABLE `eq_participation` (
199 `elder` int(16) unsigned NOT NULL default '0',
200 `activity` int(16) unsigned default NULL,
201 UNIQUE KEY `activity_ndx` (`elder`,`activity`)
202 ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
205 -- Table structure for table `eq_ppi`
207 CREATE TABLE `eq_ppi` (
208 `ppi` int(16) unsigned NOT NULL auto_increment,
209 `interviewer` int(16) unsigned default NULL,
210 `elder` int(16) unsigned default NULL,
211 `date` date default NULL,
213 `eqpresppi` tinyint(1) default '0',
215 ) ENGINE=MyISAM AUTO_INCREMENT=248 DEFAULT CHARSET=latin1;
219 -- Table structure for table `eq_presidency`
221 CREATE TABLE `eq_presidency` (
222 `presidency` int(16) unsigned NOT NULL auto_increment,
223 `elder` int(16) unsigned NOT NULL default '0',
224 `district` int(16) unsigned default '0',
225 `name` varchar(60) NOT NULL,
226 `email` varchar(60) NOT NULL,
227 `president` tinyint(1) default '0',
228 `counselor` tinyint(1) default '0',
229 `secretary` tinyint(1) default '0',
230 `valid` tinyint(1) default '1',
231 KEY `presidency` (`presidency`),
232 KEY `elder` (`elder`)
233 ) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=latin1;
236 -- Table structure for table `eq_visit`
238 CREATE TABLE `eq_visit` (
239 `visit` int(16) unsigned NOT NULL auto_increment,
240 `family` int(16) unsigned default NULL,
241 `companionship` int(16) unsigned default NULL,
242 `date` date default NULL,
244 `visited` enum('y','n','') default NULL,
245 PRIMARY KEY (`visit`)
246 ) ENGINE=MyISAM AUTO_INCREMENT=9513 DEFAULT CHARSET=latin1;
249 -- Table structure for table `eq_willingness`
251 CREATE TABLE `eq_willingness` (
252 `elder` int(16) unsigned NOT NULL,
253 `assignment` int(16) unsigned NOT NULL,
254 `willing` enum('y','n','') NOT NULL,
255 KEY `elder` (`elder`,`assignment`)
256 ) ENGINE=MyISAM DEFAULT CHARSET=latin1;