Ticket #103: default_gms_db.sql

File default_gms_db.sql, 12.7 kB (added by chrisbraybrook, 2 years ago)

SQL File for creating empty GMS Database Architecture with default data.

Line 
1 -- phpMyAdmin SQL Dump
2 -- version 2.9.1.1
3 -- http://www.phpmyadmin.net
4 --
5 -- Host: localhost
6 -- Generation Time: Mar 27, 2007 at 11:21 AM
7 -- Server version: 5.0.22
8 -- PHP Version: 5.1.6
9 --
10 -- Database: `gbm_developer_db2`
11 --
12
13 -- --------------------------------------------------------
14
15 --
16 -- Table structure for table `gbm_registrations`
17 --
18 -- Creation: Dec 11, 2006 at 08:19 PM
19 -- Last update: Mar 25, 2007 at 05:53 PM
20 --
21
22 CREATE TABLE `gbm_registrations` (
23   `id` int(11) NOT NULL auto_increment,
24   `name` text NOT NULL,
25   `req_username` text,
26   `avatar` text,
27   `email_addr` text NOT NULL,
28   `notes` text,
29   `validation_key` varchar(52) default NULL,
30   `last_modified` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
31   `approved_by` text,
32   PRIMARY KEY  (`id`)
33 ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=6 ;
34
35 -- --------------------------------------------------------
36
37 --
38 -- Table structure for table `gms_categories`
39 --
40 -- Creation: Feb 18, 2007 at 03:23 PM
41 -- Last update: Mar 08, 2007 at 11:36 PM
42 --
43
44 CREATE TABLE `gms_categories` (
45   `id` int(11) NOT NULL auto_increment,
46   `name` text NOT NULL,
47   `parent` int(11) NOT NULL default '0',
48   `owner` text NOT NULL,
49   `icon` text NOT NULL,
50   `description` text,
51   PRIMARY KEY  (`id`)
52 ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=10005 ;
53
54 --
55 -- Dumping data for table `gms_categories`
56 --
57
58 INSERT INTO `gms_categories` (`id`, `name`, `parent`, `owner`, `icon`, `description`) VALUES
59 (0, 'Top Level', 0, '', 'Ability_Druid_SupriseAttack.png', NULL),
60 (10, 'Axe', 1, 'Weapons', 'INV_Axe_01.png', NULL),
61 (8, 'Potions', 4, 'Misc.', 'INV_Potion_01.png', NULL),
62 (9, 'Containers', 4, 'Misc.', 'INV_Misc_Bag_08.png', NULL),
63 (6, 'Herbs', 4, 'Misc.', 'INV_Misc_Flower_02.png', NULL),
64 (5, 'Ammo', 4, 'Weapons', 'INV_Ammo_Arrow_02.png', NULL),
65 (4, 'Misc.', 0, 'Main', 'INV_Crate_01.png', NULL),
66 (2, 'Swords', 1, 'Weapons', 'INV_Sword_01.png', NULL),
67 (3, 'Shields', 30, 'Armor', 'INV_Shield_01.png', NULL),
68 (1, 'Weapons', 0, 'Main', 'INV_Sword_01.png', NULL),
69 (11, 'Mace', 1, 'Weapons', 'INV_Mace_01.png', NULL),
70 (12, 'Staff', 1, 'Weapons', 'INV_Staff_01.png', NULL),
71 (13, 'Bow', 1, 'Weapons', 'INV_Weapon_Bow_02.png', NULL),
72 (14, 'Rifle', 1, 'Weapons', 'INV_Weapon_Rifle_01.png', NULL),
73 (15, 'Crossbow', 1, 'Weapons', 'INV_Weapon_Crossbow_02.png', NULL),
74 (16, 'Dagger', 1, 'Weapons', 'INV_Sword_04.png', NULL),
75 (17, 'Trade Skills', 0, 'Main', 'INV_TradeskillItem_01.png', NULL),
76 (18, 'Alchemy', 17, 'Trade Skills', 'INV_Potion_43.png', NULL),
77 (19, 'Blacksmithing', 17, 'Trade Skills', 'INV_Stone_GrindingStone_04.png', NULL),
78 (20, 'Engineering', 17, 'Trade Skills', 'INV_Misc_Spyglass_03.png', NULL),
79 (21, 'Fishing', 17, 'Trade Skills', 'INV_Fishingpole_02.png', NULL),
80 (22, 'Herbalism', 17, 'Trade Skills', 'INV_Misc_Leaf_02.png', NULL),
81 (23, 'Leatherworking', 17, 'Trade Skills', 'INV_Misc_LeatherScrap_07.png', NULL),
82 (24, 'Mining', 17, 'Trade Skills', 'INV_Ore_Copper_01.png', NULL),
83 (25, 'Poison', 17, 'Weapons', 'Ability_Poisons.png', NULL),
84 (26, 'Tailoring', 17, 'Trade Skills', 'INV_Fabric_Linen_02.png', NULL),
85 (27, 'Enchanting', 17, 'Trade Skills', 'INV_Enchant_EssenceEternalLarge.png', NULL),
86 (28, 'Food', 4, 'Misc.', 'INV_Misc_Food_12.png', NULL),
87 (29, 'Scroll', 4, 'Misc.', 'INV_Scroll_01.png', NULL),
88 (30, 'Armor', 0, 'Main', 'INV_Chest_Plate03.png', NULL),
89 (31, 'Cloth', 30, 'Armor', 'INV_Chest_Cloth_01.png', NULL),
90 (32, 'Leather', 30, 'Bloodbank', 'INV_Chest_Leather_07.png', NULL),
91 (33, 'Mail', 30, 'Bloodbank', 'INV_Chest_Plate09.png', NULL),
92 (34, 'Plate', 30, 'Bloodbank', 'INV_Chest_Plate01.png', NULL),
93 (40, 'Wand', 1, 'Bloodbank', 'INV_Wand_12.png', NULL),
94 (36, 'Off-hand item', 1, 'Bloodbank', 'INV_Wand_01.png', NULL),
95 (37, 'Jewls & Trinkets', 4, 'Bloodbank', 'INV_Jewelry_Ring_45.png', NULL),
96 (38, 'For Fun', 4, 'Bloodbank', 'INV_Holiday_Christmas_Present_03.png', NULL),
97 (39, 'Tomes', 4, 'Bloodbank', 'INV_Misc_Book_10.png', NULL),
98 (41, 'First Aid', 17, 'Bloodbank', 'INV_Misc_Bandage_18.png', NULL),
99 (42, 'Cooking', 17, 'Bloodbank', 'INV_Food_ChristmasFruitCake_01.png', NULL),
100 (43, 'Reagent', 17, 'Bloodbank', 'INV_Misc_Gem_Pearl_02.png', NULL),
101 (9999, 'Full Catalogue', 0, '', 'Ability_Druid_SupriseAttack.png', NULL),
102 (10000, 'Polearm', 1, '175', 'INV_Weapon_Halberd_02.png', NULL);
103
104 -- --------------------------------------------------------
105
106 --
107 -- Table structure for table `gms_items`
108 --
109 -- Creation: Mar 27, 2007 at 10:53 AM
110 -- Last update: Mar 27, 2007 at 10:56 AM
111 --
112
113 CREATE TABLE `gms_items` (
114   `id` int(11) NOT NULL auto_increment,
115   `name` text NOT NULL,
116   `banked` text,
117   `owner` int(11) NOT NULL default '0',
118   `parent` int(11) NOT NULL default '0',
119   `quantity` int(11) NOT NULL default '0',
120   `quantitymax` int(11) NOT NULL default '0',
121   `itempoints` int(11) NOT NULL default '0',
122   `timestamp` int(11) NOT NULL default '0',
123   PRIMARY KEY  (`id`)
124 ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=787 ;
125
126 -- --------------------------------------------------------
127
128 --
129 -- Table structure for table `gms_news`
130 --
131 -- Creation: Dec 11, 2006 at 08:19 PM
132 -- Last update: Mar 26, 2007 at 12:10 AM
133 --
134
135 CREATE TABLE `gms_news` (
136   `id` int(11) NOT NULL auto_increment,
137   `name` text NOT NULL,
138   `header` text NOT NULL,
139   `date` text NOT NULL,
140   `news` text NOT NULL,
141   PRIMARY KEY  (`id`),
142   UNIQUE KEY `id` (`id`)
143 ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;
144
145 --
146 -- Dumping data for table `gms_news`
147 --
148
149 INSERT INTO `gms_news` (`id`, `name`, `header`, `date`, `news`) VALUES
150 (1, 'Isyldar', 'Welcome to the Guild Bank!', 'Sep 30, 2006', 'If you have any questions about the Guild Bank, comments, concerns, bug reports, etc. DO NOT hesitate to fill out a trouble-ticket on <a href="http://trac.chrisbraybrook.com/wowgbm">http://trac.chrisbraybrook.com/wowgbm</a>.<br />\r\n<br />\r\nWe will respond in as timely a fashion as we possibly can, and otherwise just look forward to working with you in general. Welcome aboard!');
151
152 -- --------------------------------------------------------
153
154 --
155 -- Table structure for table `gms_request`
156 --
157 -- Creation: Dec 11, 2006 at 08:19 PM
158 -- Last update: Dec 11, 2006 at 09:15 PM
159 --
160
161 CREATE TABLE `gms_request` (
162   `id` int(11) NOT NULL auto_increment,
163   `name` text NOT NULL,
164   `item` text NOT NULL,
165   `qty` varchar(10) NOT NULL default '1',
166   `status` varchar(10) NOT NULL default 'waiting',
167   `comments` text,
168   `last_modified` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
169   PRIMARY KEY  (`id`)
170 ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
171
172 -- --------------------------------------------------------
173
174 --
175 -- Table structure for table `gms_systemcache`
176 --
177 -- Creation: Mar 27, 2007 at 10:53 AM
178 -- Last update: Mar 27, 2007 at 11:08 AM
179 --
180
181 CREATE TABLE `gms_systemcache` (
182   `item_name` varchar(100) NOT NULL default '',
183   `item_link` varchar(100) default NULL,
184   `item_color` varchar(20) NOT NULL default '',
185   `item_icon` varchar(50) NOT NULL default '',
186   `item_html` text NOT NULL,
187   UNIQUE KEY `item_name` (`item_name`),
188   FULLTEXT KEY `item_html` (`item_html`)
189 ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
190
191 -- --------------------------------------------------------
192
193 --
194 -- Table structure for table `gms_users_configs`
195 --
196 -- Creation: Dec 11, 2006 at 09:19 PM
197 -- Last update: Mar 25, 2007 at 05:53 PM
198 --
199
200 CREATE TABLE `gms_users_configs` (
201   `id` int(11) NOT NULL auto_increment,
202   `url` text,
203   `email` text,
204   `name` text,
205   `icon` text,
206   `level` int(11) NOT NULL default '0',
207   `points` int(11) NOT NULL default '0',
208   `memo` text,
209   `submitcnt` int(11) NOT NULL default '5',
210   `rank` text,
211   `image` text,
212   `item_view_full` binary(1) NOT NULL default '0',
213   PRIMARY KEY  (`id`)
214 ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=105 ;
215
216 --
217 -- Dumping data for table `gms_users_configs`
218 --
219
220 INSERT INTO `gms_users_configs` (`id`, `url`, `email`, `name`, `icon`, `level`, `points`, `memo`, `submitcnt`, `rank`, `image`, `item_view_full`) VALUES
221 (1, '', 'admin@guildbank.ca', 'GuildMaster', NULL, 0, 0, '', 1, 'GuildMaster', NULL, 0x30),
222 (2, '', 'postmaster@somewhere.net', 'Guild PostMaster', '', 0, 0, '', 1, '', 'mem2.png', 0x30),
223 (3, 'http://trac.chrisbraybrook.com/wowgbm', 'web_projects@chrisbraybrook.com', 'Technical Support', '', 0, 0, '', 1, '', NULL, 0x30),
224 (4, '', '', 'Former Member', '', 0, 0, 'This member used to be a part of our Guild. They are no more. Look away.', 1, '', '', 0x30);
225
226 -- --------------------------------------------------------
227
228 --
229 -- Table structure for table `gms_users_info`
230 --
231 -- Creation: Dec 11, 2006 at 08:19 PM
232 -- Last update: Mar 27, 2007 at 11:16 AM
233 --
234
235 CREATE TABLE `gms_users_info` (
236   `id` int(11) NOT NULL auto_increment,
237   `username` text NOT NULL,
238   `password` text NOT NULL,
239   `client_fname` text,
240   `client_lname` text,
241   `address` text,
242   `suite` text,
243   `city` text,
244   `province` text,
245   `postal_code` varchar(6) default NULL,
246   `country` text,
247   `admin` tinyint(1) NOT NULL default '0',
248   `system_user` int(11) NOT NULL default '0',
249   `display_as_member` int(11) NOT NULL default '1',
250   `user_deletable` tinyint(1) NOT NULL default '1',
251   `user_timeout_seconds` int(11) NOT NULL default '900',
252   `last_login_time` datetime NOT NULL default '0000-00-00 00:00:00',
253   `last_login_seconds` int(11) NOT NULL default '0',
254   `last_logout_time` datetime NOT NULL default '0000-00-00 00:00:00',
255   `last_logout_seconds` int(11) NOT NULL default '0',
256   `current_session_id` text,
257   `last_action_time` int(11) NOT NULL default '0',
258   `user_logged_in` tinyint(1) NOT NULL default '0',
259   `account_status` int(11) NOT NULL default '1',
260   `valid_email` tinyint(1) NOT NULL default '0',
261   `validation_key` varchar(22) default NULL,
262   `validation_key_sent` int(11) NOT NULL default '0',
263   `email_last_updated` int(11) NOT NULL default '0',
264   `email_display_public` binary(1) NOT NULL default '1',
265   `admin_comments` text,
266   PRIMARY KEY  (`id`),
267   KEY `id` (`id`)
268 ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=105 ;
269
270 --
271 -- Dumping data for table `gms_users_info`
272 --
273
274 INSERT INTO `gms_users_info` (`id`, `username`, `password`, `client_fname`, `client_lname`, `address`, `suite`, `city`, `province`, `postal_code`, `country`, `admin`, `system_user`, `display_as_member`, `user_deletable`, `user_timeout_seconds`, `last_login_time`, `last_login_seconds`, `last_logout_time`, `last_logout_seconds`, `current_session_id`, `last_action_time`, `user_logged_in`, `account_status`, `valid_email`, `validation_key`, `validation_key_sent`, `email_last_updated`, `email_display_public`, `admin_comments`) VALUES
275 (1, 'admin', '5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8', 'Administrator', '', '', '', '', '', NULL, '', 1, 1, 1, 0, 900, '2007-03-27 10:27:31', 1175008171, '2007-03-26 19:26:39', 1174954479, 'iiif3td4jsmfr01du18fmesk61', 1175012218, 1, 1, 0, NULL, 0, 0, 0x31, 'This account is reserved for the GuildMaster / Primary Administrator.'),
276 (2, 'PostMaster', '', 'Postmaster', '', '', '', '', '', NULL, '', 0, 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0x30, 'This is your Guild PostMaster, responsible for all of the mail that gets sent out around here. (Well, more of a figurehead actually. You can set the Guild e-mail here, where all of your email comes from.)'),
277 (3, 'TechSupport', '8e383deeb55c660a8c1563112f0ccd6d444ea2d1', 'Technical', 'Support', '', '', '', '', NULL, '', 1, 1, 0, 0, 900, '2006-11-15 21:15:39', 0, '2006-11-15 21:15:09', 0, ' ', 0, 0, 1, 0, NULL, 0, 0, 0x30, 'Technical Support login. Used when tech support needs access to your Guild Bank to correct problems that have arisen. To disable this account, simply change the Unlock Account bit noted above, or delete the user.\r\n\r\nBE CAREFUL ABOUT DELETING THIS USER, AS IT MAY RESULT IN TERMINATION OF SUPPORT FOR YOUR GUILD BANK.'),
278 (4, 'formermember', '', 'Former', 'Member', '', '', '', '', '', '', 0, 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, NULL, 0, 0, 0, 1, '', 0, 0, 0x30, '');
279
280 -- --------------------------------------------------------
281
282 --
283 -- Table structure for table `gms_users_perms`
284 --
285 -- Creation: Dec 11, 2006 at 08:19 PM
286 -- Last update: Mar 25, 2007 at 05:53 PM
287 --
288
289 CREATE TABLE `gms_users_perms` (
290   `id` int(11) NOT NULL auto_increment,
291   `users_admin` tinyint(1) NOT NULL default '0',
292   `item_admin` int(11) NOT NULL default '0',
293   `news_admin` int(11) NOT NULL default '0',
294   `delete_multiple_users` tinyint(1) NOT NULL default '0',
295   `change_password` int(11) NOT NULL default '1',
296   `edit_profile` int(11) NOT NULL default '1',
297   PRIMARY KEY  (`id`)
298 ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=105 ;
299
300 --
301 -- Dumping data for table `gms_users_perms`
302 --
303
304 INSERT INTO `gms_users_perms` (`id`, `users_admin`, `item_admin`, `news_admin`, `delete_multiple_users`, `change_password`, `edit_profile`) VALUES
305 (1, 1, 1, 1, 0, 1, 1),
306 (2, 0, 0, 0, 0, 0, 0),
307 (3, 1, 1, 1, 1, 1, 1),
308 (4, 0, 0, 0, 0, 0, 0);