forked from expertiza/expertiza
-
Notifications
You must be signed in to change notification settings - Fork 0
/
db_backup
1407 lines (1196 loc) · 137 KB
/
db_backup
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
-- MySQL dump 10.10
--
-- Host: localhost Database: pg_development
-- ------------------------------------------------------
-- Server version 5.0.27-community
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
-- Table structure for table `assignment_questionnaires`
--
DROP TABLE IF EXISTS `assignment_questionnaires`;
CREATE TABLE `assignment_questionnaires` (
`id` int(11) NOT NULL auto_increment,
`assignment_id` int(11) default NULL,
`questionnaire_id` int(11) default NULL,
`user_id` int(11) default NULL,
`notification_limit` int(11) NOT NULL default '15',
`questionnaire_weight` int(11) NOT NULL default '0',
PRIMARY KEY (`id`),
KEY `fk_aq_user_id` (`user_id`),
KEY `fk_aq_assignments_id` (`assignment_id`),
KEY `fk_aq_questionnaire_id` (`questionnaire_id`),
CONSTRAINT `fk_aq_questionnaire_id` FOREIGN KEY (`questionnaire_id`) REFERENCES `questionnaires` (`id`),
CONSTRAINT `fk_aq_assignments_id` FOREIGN KEY (`assignment_id`) REFERENCES `assignments` (`id`),
CONSTRAINT `fk_aq_user_id` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `assignment_questionnaires`
--
LOCK TABLES `assignment_questionnaires` WRITE;
/*!40000 ALTER TABLE `assignment_questionnaires` DISABLE KEYS */;
INSERT INTO `assignment_questionnaires` VALUES (1,NULL,NULL,2,15,0);
/*!40000 ALTER TABLE `assignment_questionnaires` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `assignments`
--
DROP TABLE IF EXISTS `assignments`;
CREATE TABLE `assignments` (
`id` int(11) NOT NULL auto_increment,
`created_at` datetime default NULL,
`updated_at` datetime default NULL,
`name` varchar(255) default NULL,
`directory_path` varchar(255) default NULL,
`submitter_count` int(10) NOT NULL default '0',
`course_id` int(11) default '0',
`instructor_id` int(11) default '0',
`private` tinyint(1) NOT NULL default '0',
`num_reviews` int(11) NOT NULL default '0',
`num_review_of_reviews` int(11) NOT NULL default '0',
`num_review_of_reviewers` int(11) NOT NULL default '0',
`review_strategy_id` int(11) default '0',
`mapping_strategy_id` int(11) default '0',
`review_questionnaire_id` int(11) default NULL,
`review_of_review_questionnaire_id` int(11) default NULL,
`reviews_visible_to_all` tinyint(1) default NULL,
`team_assignment` tinyint(1) default NULL,
`wiki_type_id` int(11) default NULL,
`require_signup` tinyint(1) default NULL,
`num_reviewers` int(10) NOT NULL default '0',
`spec_location` text,
`author_feedback_questionnaire_id` int(11) default NULL,
`teammate_review_questionnaire_id` int(10) default NULL,
`team_count` int(11) NOT NULL default '0',
PRIMARY KEY (`id`),
KEY `fk_assignments_review_questionnaires` (`review_questionnaire_id`),
KEY `fk_assignments_review_of_review_questionnaires` (`review_of_review_questionnaire_id`),
KEY `fk_assignments_wiki_types` (`wiki_type_id`),
KEY `fk_assignments_instructors` (`instructor_id`),
KEY `fk_assignments_courses` (`course_id`),
KEY `fk_assignments_review_strategies` (`review_strategy_id`),
KEY `fk_assignments_mapping_strategies` (`mapping_strategy_id`),
CONSTRAINT `fk_assignments_mapping_strategies` FOREIGN KEY (`mapping_strategy_id`) REFERENCES `mapping_strategies` (`id`),
CONSTRAINT `fk_assignments_courses` FOREIGN KEY (`course_id`) REFERENCES `courses` (`id`),
CONSTRAINT `fk_assignments_instructors` FOREIGN KEY (`instructor_id`) REFERENCES `users` (`id`),
CONSTRAINT `fk_assignments_review_of_review_questionnaires` FOREIGN KEY (`review_of_review_questionnaire_id`) REFERENCES `questionnaires` (`id`),
CONSTRAINT `fk_assignments_review_questionnaires` FOREIGN KEY (`review_questionnaire_id`) REFERENCES `questionnaires` (`id`),
CONSTRAINT `fk_assignments_review_strategies` FOREIGN KEY (`review_strategy_id`) REFERENCES `review_strategies` (`id`),
CONSTRAINT `fk_assignments_wiki_types` FOREIGN KEY (`wiki_type_id`) REFERENCES `wiki_types` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `assignments`
--
LOCK TABLES `assignments` WRITE;
/*!40000 ALTER TABLE `assignments` DISABLE KEYS */;
/*!40000 ALTER TABLE `assignments` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `comments`
--
DROP TABLE IF EXISTS `comments`;
CREATE TABLE `comments` (
`id` int(11) NOT NULL auto_increment,
`participant_id` int(11) NOT NULL,
`private` tinyint(1) NOT NULL,
`comment` text NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `comments`
--
LOCK TABLES `comments` WRITE;
/*!40000 ALTER TABLE `comments` DISABLE KEYS */;
/*!40000 ALTER TABLE `comments` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `content_pages`
--
DROP TABLE IF EXISTS `content_pages`;
CREATE TABLE `content_pages` (
`id` int(11) NOT NULL auto_increment,
`title` varchar(255) default NULL,
`name` varchar(255) NOT NULL default '',
`markup_style_id` int(11) default NULL,
`content` text,
`permission_id` int(11) NOT NULL default '0',
`created_at` datetime default NULL,
`updated_at` datetime default NULL,
`content_cache` text,
PRIMARY KEY (`id`),
KEY `fk_content_page_permission_id` (`permission_id`),
KEY `fk_content_page_markup_style_id` (`markup_style_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `content_pages`
--
LOCK TABLES `content_pages` WRITE;
/*!40000 ALTER TABLE `content_pages` DISABLE KEYS */;
INSERT INTO `content_pages` VALUES (1,'Home Page','home',1,'<h1>Welcome to Expertiza</h1> <p> The Expertiza project is a system for using peer review to create reusable learning objects. Students do different assignments; then peer review selects the best work in each category, and assembles it to create a single unit.</p>',3,'2006-06-12 00:31:56','2007-02-23 10:17:45','<h1>Welcome to Expertiza</h1> <p> The Expertiza project is system for using peer review to create reusable learning objects. Students do different assignments; then peer review selects the best work in each category, and assembles it to create a single unit.</p>'),(2,'Session Expired','expired',1,'h1. Session Expired\n\nYour session has expired due to inactivity.\n\nTo continue please login again.\n',3,'2006-06-12 00:33:14','2007-02-23 10:17:45','<h1>Session Expired</h1>\n\n\n <p>Your session has expired due to inactivity.</p>\n\n\n <p>To continue please login again.</p>'),(3,'Not Found!','notfound',1,'h1. Not Found\n\nThe page you requested was not found!\n\nPlease contact your system administrator.',3,'2006-06-12 00:33:49','2007-02-23 10:17:45','<h1>Not Found</h1>\n\n\n <p>The page you requested was not found!</p>\n\n\n <p>Please contact your system administrator.</p>'),(4,'Permission Denied!','denied',1,'h1. Permission Denied\n\nSorry, but you don\'t have permission to view that page.\n\nPlease contact your system administrator.',3,'2006-06-12 00:34:30','2007-02-23 10:17:45','<h1>Permission Denied</h1>\n\n\n <p>Sorry, but you don’t have permission to view that page.</p>\n\n\n <p>Please contact your system administrator.</p>'),(6,'Contact Us','contact_us',1,'h1. Contact Us\n\nVisit the Goldberg Project Homepage at \"http://goldberg.rubyforge.org\":http://goldberg.rubyforge.org for further information on Goldberg. Visit the Goldberg RubyForge Project Info Page at \"http://rubyforge.org/projects/goldberg\":http://rubyforge.org/projects/goldberg to access the project\'s files and development information.\n',3,'2006-06-12 10:13:47','2007-02-23 10:17:46','<h1>Contact Us</h1>\n\n\n <p>Visit the Goldberg Project Homepage at <a href=\"http://goldberg.rubyforge.org\">http://goldberg.rubyforge.org</a> for further information on Goldberg. Visit the Goldberg RubyForge Project Info Page at <a href=\"http://rubyforge.org/projects/goldberg\">http://rubyforge.org/projects/goldberg</a> to access the project’s files and development information.</p>'),(8,'Site Administration','site_admin',1,'h1. Goldberg Setup\n\nThis is where you will find all the Goldberg-specific administration and configuration features. In here you can:\n\n* Set up Users.\n\n* Manage Roles and their Permissions.\n\n* Set up any Controllers and their Actions for your application.\n\n* Edit the Content Pages of the site.\n\n* Adjust Goldberg\'s system settings.\n\n\nh2. Users\n\nYou can set up Users with a username, password and a Role.\n\n\nh2. Roles and Permissions\n\nA User\'s Permissions affect what Actions they can perform and what Pages they can see. And because each Menu Item is based either on a Page or an Action, the Permissions determine what Menu Items the User can and cannot see.\n\nA Role is a set of Permissions. Roles are assigned to Users. Roles are hierarchical: a Role can have a parent Role; and if so it will inherit the Permissions of the parent Role, and all its parents.\n\n\nh2. Controllers and Actions\n\nTo execute any Action, a user must have the appropriate Permission. Therefore all Controllers and Actions you set up for your Rails application need to be entered here, otherwise no user will be able to execute them.\n\nYou start by setting up the Controller and assigning it a Permission. The Permission will be used as the default for any Actions invoked for that Controller.\n\nYou have the option of setting up specific Actions for the Controllers. You would want to do that if the Action were to appear as a Menu Item, or if it were to have a different level of security to the default for the Controller.\n\n\nh2. Content Pages\n\nGoldberg has a very simple CMS built in. You can create pages to be displayed on the site, possibly in menu items.\n\n\nh2. Menu Editor\n\nOnce you have set up your Controller Actions and Content Pages, you can put them into the site\'s menu using the Menu Editor.\n\nIn the Menu Editor you can add and remove Menu Items and move them around. The security of a Menu Item (whether the user can see it or not) depends on the Permission of the Action or Page attached to that Menu Item.\n\nh2. System Settings\n\nGo here to view and edit the settings that determine how Goldberg operates.\n',1,'2006-06-21 21:32:35','2010-01-20 17:50:59','<h1>Goldberg Setup</h1>\n\n\n <p>This is where you will find all the Goldberg-specific administration and configuration features. In here you can:</p>\n\n\n <ul>\n <li>Set up Users.</li>\n </ul>\n\n\n <ul>\n <li>Manage Roles and their Permissions.</li>\n </ul>\n\n\n <ul>\n <li>Set up any Controllers and their Actions for your application.</li>\n </ul>\n\n\n <ul>\n <li>Edit the Content Pages of the site.</li>\n </ul>\n\n\n <ul>\n <li>Adjust Goldberg’s system settings.</li>\n </ul>\n\n\n <h2>Users</h2>\n\n\n <p>You can set up Users with a username, password and a Role.</p>\n\n\n <h2>Roles and Permissions</h2>\n\n\n <p>A User’s Permissions affect what Actions they can perform and what Pages they can see. And because each Menu Item is based either on a Page or an Action, the Permissions determine what Menu Items the User can and cannot see.</p>\n\n\n <p>A Role is a set of Permissions. Roles are assigned to Users. Roles are hierarchical: a Role can have a parent Role; and if so it will inherit the Permissions of the parent Role, and all its parents.</p>\n\n\n <h2>Controllers and Actions</h2>\n\n\n <p>To execute any Action, a user must have the appropriate Permission. Therefore all Controllers and Actions you set up for your Rails application need to be entered here, otherwise no user will be able to execute them.</p>\n\n\n <p>You start by setting up the Controller and assigning it a Permission. The Permission will be used as the default for any Actions invoked for that Controller.</p>\n\n\n <p>You have the option of setting up specific Actions for the Controllers. You would want to do that if the Action were to appear as a Menu Item, or if it were to have a different level of security to the default for the Controller.</p>\n\n\n <h2>Content Pages</h2>\n\n\n <p>Goldberg has a very simple <span class=\"caps\">CMS</span> built in. You can create pages to be displayed on the site, possibly in menu items.</p>\n\n\n <h2>Menu Editor</h2>\n\n\n <p>Once you have set up your Controller Actions and Content Pages, you can put them into the site’s menu using the Menu Editor.</p>\n\n\n <p>In the Menu Editor you can add and remove Menu Items and move them around. The security of a Menu Item (whether the user can see it or not) depends on the Permission of the Action or Page attached to that Menu Item.</p>\n\n\n <h2>System Settings</h2>\n\n\n <p>Go here to view and edit the settings that determine how Goldberg operates.</p>'),(9,'Administration','admin',1,'h1. Site Administration\n\nThis is where the administrator can set up the site.\n\nThere is one menu item here by default -- \"Setup\":/menu/setup. That contains all the Goldberg configuration options.\n\nYou can add more menu items here to administer your application if you want, by going to \"Setup, Menu Editor\":/menu/setup/menus.\n',7,'2006-06-26 16:47:09','2010-01-20 17:50:41','<h1>Site Administration</h1>\n\n\n <p>This is where the administrator can set up the site.</p>\n\n\n <p>There is one menu item here by default—<a href=\"/menu/setup\">Setup</a>. That contains all the Goldberg configuration options.</p>\n\n\n <p>You can add more menu items here to administer your application if you want, by going to <a href=\"/menu/setup/menus\">Setup, Menu Editor</a>.</p>'),(10,'Credits and License','credits',1,'h1. Credits and License\n\nGoldberg contains original material and third-party material from various sources.\n\nAll original material is (p) Public Domain, No Rights Reserved. Goldberg comes with no warranty whatsoever.\n\nThe copyright for any third party material remains with the original author, and the material is distributed here under the original terms. \n\nMaterial has been selected from sources with licensing terms and conditions that allow use and redistribution for both personal and business purposes. These licences include public domain, BSD-style licences, and Creative Commons licences (but *not* Creative Commons Non-Commercial).\n\nIf you are an author and you believe your copyrighted material has been included in Goldberg in breach of your licensing terms and conditions, please contact Dave Nelson (urbanus at 240gl dot org).\n\n\nh2. Layouts\n\nGoldberg comes with a choice of layouts, adapted from various sources.\n\nh3. The Default\n\nThe default layout is a modified version of Andreas09 by Anreas Viklund. Andreas09 is distributed under free/unlicensed terms, with an informal request that credit be given to the original author. The original template can be obtained from \"Open Source Web Design\":http://www.oswd.org/design/preview/id/2493/.\n\nAuthor\'s website: \"andreasviklund.com\":http://andreasviklund.com/.\n\n\nh3. \"Earth Wind and Fire\"\n\nOriginally designed by Brett Hillesheim (brett7481 at msn dot com) and distributed under free terms (from the MadSeason website: \"Every template we create is completely open source, meaning you can take it and do whatever you want with it\"). The original template can be obtained from \"Open Source Web Design\":http://www.oswd.org/design/preview/id/2453/.\n\nAuthor\'s website: \"www.madseason.co.uk\":http://www.madseason.co.uk/.\n\n\nh3. \"Snooker\"\n\n\"Snooker\" is an original design and is therefore Public Domain. It incorporates dynamic two-column layout techniques described on the \"A List Apart\":http://alistapart.com/articles/negativemargins website.\n\n\nh3. \"Spoiled Brat\"\n\nOriginally designed by \"Rayk Web Design\":http://www.raykdesign.net/ and distributed under the terms of the \"Creative Commons Attribution Share Alike\":http://creativecommons.org/licenses/by-sa/2.5/legalcode licence. The original template can be obtained from \"Open Web Design\":http://www.openwebdesign.org/viewdesign.phtml?id=2894/.\n\nAuthor\'s website: \"www.csstinderbox.com\":http://www.csstinderbox.com/.\n\n\nh2. Other Features\n\nGoldberg also contains some miscellaneous code and techniques from other sources.\n\nh3. Suckerfish Menus\n\nThe three templates \"Earth Wind and Fire\", \"Snooker\" and \"Spoiled Brat\" have all been configured to use Suckerfish menus. This technique of using a combination of CSS and Javascript to implement dynamic menus was first described by \"A List Apart\":http://www.alistapart.com/articles/dropdowns/. Goldberg\'s implementation also incorporates techniques described by \"HTMLDog\":http://www.htmldog.com/articles/suckerfish/dropdowns/.\n\nh3. Tabbed Panels\n\nGoldberg\'s implementation of tabbed panels was adapted from \n\"InternetConnection\":http://support.internetconnection.net/CODE_LIBRARY/Javascript_Show_Hide.shtml.\n',3,'2006-10-02 10:35:35','2007-02-23 10:17:46','<h1>Credits and Licence</h1>\n\n\n <p>Goldberg contains original material and third party material from various sources.</p>\n\n\n <p>All original material is (p) Public Domain, No Rights Reserved. Goldberg comes with no warranty whatsoever.</p>\n\n\n <p>The copyright for any third party material remains with the original author, and the material is distributed here under the original terms.</p>\n\n\n <p>Material has been selected from sources with licensing terms and conditions that allow use and redistribution for both personal and business purposes. These licences include public domain, <span class=\"caps\">BSD</span>-style licences, and Creative Commons licences (but <strong>not</strong> Creative Commons Non-Commercial).</p>\n\n\n <p>If you are an author and you believe your copyrighted material has been included in Goldberg in breach of your licensing terms and conditions, please contact Dave Nelson (urbanus at 240gl dot org).</p>\n\n\n <h2>Layouts</h2>\n\n\n <p>Goldberg comes with a choice of layouts, adapted from various sources.</p>\n\n\n <h3>The Default</h3>\n\n\n <p>The default layout is a modified version of Andreas09 by Anreas Viklund. Andreas09 is distributed under free/unlicensed terms, with an informal request that credit be given to the original author. The original template can be obtained from <a href=\"http://www.oswd.org/design/preview/id/2493/\">Open Source Web Design</a>.</p>\n\n\n <p>Author’s website: <a href=\"http://andreasviklund.com/\">andreasviklund.com</a>.</p>\n\n\n <h3>“Earth Wind and Fire”</h3>\n\n\n <p>Originally designed by Brett Hillesheim (brett7481 at msn dot com) and distributed under free terms (from the MadSeason website: “Every template we create is completely open source, meaning you can take it and do whatever you want with it”). The original template can be obtained from <a href=\"http://www.oswd.org/design/preview/id/2453/\">Open Source Web Design</a>.</p>\n\n\n <p>Author’s website: <a href=\"http://www.madseason.co.uk/\">www.madseason.co.uk</a>.</p>\n\n\n <h3>“Snooker”</h3>\n\n\n <p>“Snooker” is an original design and is therefore Public Domain. It incorporates dynamic two-column layout techniques described on the <a href=\"http://alistapart.com/articles/negativemargins\">A List Apart</a> website.</p>\n\n\n <h3>“Spoiled Brat”</h3>\n\n\n <p>Originally designed by <a href=\"http://www.raykdesign.net/\">Rayk Web Design</a> and distributed under the terms of the <a href=\"http://creativecommons.org/licenses/by-sa/2.5/legalcode\">Creative Commons Attribution Share Alike</a> licence. The original template can be obtained from <a href=\"http://www.openwebdesign.org/viewdesign.phtml?id=2894/\">Open Web Design</a>.</p>\n\n\n <p>Author’s website: <a href=\"http://www.csstinderbox.com/\">www.csstinderbox.com</a>.</p>\n\n\n <h2>Other Features</h2>\n\n\n <p>Goldberg also contains some miscellaneous code and techniques from other sources.</p>\n\n\n <h3>Suckerfish Menus</h3>\n\n\n <p>The three templates “Earth Wind and Fire”, “Snooker” and “Spoiled Brat” have all been configured to use Suckerfish menus. This technique of using a combination of <span class=\"caps\">CSS</span> and Javascript to implement dynamic menus was first described by <a href=\"http://www.alistapart.com/articles/dropdowns/\">A List Apart</a>. Goldberg’s implementation also incorporates techniques described by <a href=\"http://www.htmldog.com/articles/suckerfish/dropdowns/\">HTMLDog</a>.</p>\n\n\n <h3>Tabbed Panels</h3>\n\n\n <p>Goldberg’s implementation of tabbed panels was adapted from \n<a href=\"http://support.internetconnection.net/CODE_LIBRARY/Javascript_Show_Hide.shtml\">InternetConnection</a>.</p>');
/*!40000 ALTER TABLE `content_pages` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `controller_actions`
--
DROP TABLE IF EXISTS `controller_actions`;
CREATE TABLE `controller_actions` (
`id` int(11) NOT NULL auto_increment,
`site_controller_id` int(11) NOT NULL default '0',
`name` varchar(255) NOT NULL default '',
`permission_id` int(11) default NULL,
`url_to_use` varchar(255) default NULL,
PRIMARY KEY (`id`),
KEY `fk_controller_action_permission_id` (`permission_id`),
KEY `fk_controller_action_site_controller_id` (`site_controller_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `controller_actions`
--
LOCK TABLES `controller_actions` WRITE;
/*!40000 ALTER TABLE `controller_actions` DISABLE KEYS */;
INSERT INTO `controller_actions` VALUES (1,1,'view_default',3,NULL),(2,1,'view',3,NULL),(3,7,'list',NULL,NULL),(4,6,'list',NULL,NULL),(5,3,'login',4,NULL),(6,3,'logout',4,NULL),(7,5,'link',4,NULL),(8,1,'list',NULL,NULL),(9,8,'list',NULL,NULL),(10,2,'list',NULL,NULL),(11,5,'list',NULL,NULL),(12,9,'list',NULL,NULL),(14,3,'login_failed',4,NULL),(15,10,'list',7,NULL),(16,12,'list_instructors',9,''),(17,12,'list_administrators',6,''),(18,12,'list_super_administrators',1,''),(19,13,'list_folders',7,''),(20,14,'create',7,''),(21,15,'list',7,''),(22,15,'create_questionnaire',7,''),(23,15,'edit_questionnaire',7,''),(24,15,'copy_questionnaire',7,''),(25,15,'save_questionnaire',7,''),(26,20,'add_student',7,''),(28,20,'edit_team_members',7,''),(29,14,'new',7,''),(30,14,'list',7,''),(31,20,'list_students',7,''),(32,22,'list',6,''),(33,23,'list',8,''),(34,20,'list_courses',7,''),(35,20,'list_assignments',7,''),(36,26,'edit',NULL,''),(37,27,'create',4,''),(38,27,'submit',NULL,''),(39,28,'list',NULL,''),(40,28,'list_assignments',NULL,''),(41,29,'list',NULL,''),(42,30,'start',NULL,NULL),(43,30,'restore',8,NULL),(44,32,'list',NULL,NULL),(45,36,'list',NULL,NULL),(46,37,'list_surveys',NULL,NULL),(47,38,'list',NULL,NULL),(48,38,'drill',NULL,NULL),(49,38,'goto_questionnaires',NULL,NULL),(50,38,'goto_author_feedbacks',NULL,NULL),(51,38,'goto_review_rubrics',NULL,NULL),(52,38,'goto_global_survey',NULL,NULL),(53,38,'goto_surveys',NULL,NULL),(54,38,'goto_course_evaluations',NULL,NULL),(55,38,'goto_courses',NULL,NULL),(56,38,'goto_assignments',NULL,NULL),(59,38,'goto_teammate_reviews',NULL,NULL),(60,20,'change_handle',8,NULL),(61,38,'goto_metareview_rubrics',NULL,NULL),(62,38,'goto_teammatereview_rubrics',NULL,NULL),(63,33,'view_my_scores',8,NULL);
/*!40000 ALTER TABLE `controller_actions` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `courses`
--
DROP TABLE IF EXISTS `courses`;
CREATE TABLE `courses` (
`id` int(11) NOT NULL auto_increment,
`name` varchar(255) default NULL,
`instructor_id` int(11) default NULL,
`directory_path` varchar(255) default NULL,
`info` text,
`created_at` datetime default NULL,
`updated_at` datetime default NULL,
`private` tinyint(1) NOT NULL default '0',
PRIMARY KEY (`id`),
KEY `fk_course_users` (`instructor_id`),
CONSTRAINT `fk_course_users` FOREIGN KEY (`instructor_id`) REFERENCES `users` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `courses`
--
LOCK TABLES `courses` WRITE;
/*!40000 ALTER TABLE `courses` DISABLE KEYS */;
/*!40000 ALTER TABLE `courses` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `deadline_rights`
--
DROP TABLE IF EXISTS `deadline_rights`;
CREATE TABLE `deadline_rights` (
`id` int(11) NOT NULL auto_increment,
`name` varchar(32) default NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `deadline_rights`
--
LOCK TABLES `deadline_rights` WRITE;
/*!40000 ALTER TABLE `deadline_rights` DISABLE KEYS */;
INSERT INTO `deadline_rights` VALUES (1,'No'),(2,'Late'),(3,'OK');
/*!40000 ALTER TABLE `deadline_rights` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `deadline_types`
--
DROP TABLE IF EXISTS `deadline_types`;
CREATE TABLE `deadline_types` (
`id` int(11) NOT NULL auto_increment,
`name` varchar(32) default NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `deadline_types`
--
LOCK TABLES `deadline_types` WRITE;
/*!40000 ALTER TABLE `deadline_types` DISABLE KEYS */;
INSERT INTO `deadline_types` VALUES (1,'submission'),(2,'review'),(3,'resubmission'),(4,'rereview'),(5,'metareview');
/*!40000 ALTER TABLE `deadline_types` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `due_dates`
--
DROP TABLE IF EXISTS `due_dates`;
CREATE TABLE `due_dates` (
`id` int(11) NOT NULL auto_increment,
`due_at` datetime default NULL,
`deadline_type_id` int(11) default NULL,
`assignment_id` int(11) default NULL,
`late_policy_id` int(11) default NULL,
`submission_allowed_id` int(11) default NULL,
`review_allowed_id` int(11) default NULL,
`resubmission_allowed_id` int(11) default NULL,
`rereview_allowed_id` int(11) default NULL,
`review_of_review_allowed_id` int(11) default NULL,
`round` int(11) default NULL,
PRIMARY KEY (`id`),
KEY `fk_deadline_type_due_date` (`deadline_type_id`),
KEY `fk_due_dates_assignments` (`assignment_id`),
KEY `fk_due_date_late_policies` (`late_policy_id`),
KEY `idx_submission_allowed` (`submission_allowed_id`),
KEY `idx_review_allowed` (`review_allowed_id`),
KEY `idx_resubmission_allowed` (`resubmission_allowed_id`),
KEY `idx_rereview_allowed` (`rereview_allowed_id`),
KEY `idx_review_of_review_allowed` (`review_of_review_allowed_id`),
CONSTRAINT `fk_deadline_type_due_date` FOREIGN KEY (`deadline_type_id`) REFERENCES `deadline_types` (`id`),
CONSTRAINT `fk_due_dates_assignments` FOREIGN KEY (`assignment_id`) REFERENCES `assignments` (`id`),
CONSTRAINT `fk_due_date_late_policies` FOREIGN KEY (`late_policy_id`) REFERENCES `late_policies` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `due_dates`
--
LOCK TABLES `due_dates` WRITE;
/*!40000 ALTER TABLE `due_dates` DISABLE KEYS */;
/*!40000 ALTER TABLE `due_dates` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `goldberg_content_pages`
--
DROP TABLE IF EXISTS `goldberg_content_pages`;
CREATE TABLE `goldberg_content_pages` (
`id` int(11) NOT NULL auto_increment,
`title` varchar(255) default NULL,
`name` varchar(255) NOT NULL default '',
`markup_style_id` int(11) default NULL,
`content` text,
`permission_id` int(11) NOT NULL default '0',
`created_at` datetime default NULL,
`updated_at` datetime default NULL,
`content_cache` text,
`markup_style` varchar(255) default NULL,
PRIMARY KEY (`id`),
KEY `fk_content_page_permission_id` (`permission_id`),
KEY `fk_content_page_markup_style_id` (`markup_style_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `goldberg_content_pages`
--
LOCK TABLES `goldberg_content_pages` WRITE;
/*!40000 ALTER TABLE `goldberg_content_pages` DISABLE KEYS */;
INSERT INTO `goldberg_content_pages` VALUES (1,'Home Page','home',1,'h1. Welcome to Goldberg!\n\nLooks like you have succeeded in getting Goldberg up and running. Now you will probably want to customize your site.\n\n*Very important:* The default login for the administrator is \"admin\", password \"admin\". You must change that before you make your site public!\n\nh2. Administering the Site\n\nAt the login prompt, enter an administrator username and password. The top menu should change: a new item called \"Administration\" will appear. Go there for further details.\n',3,'2006-06-12 00:31:56','2007-05-21 14:01:58','<h1>Welcome to Goldberg!</h1>\n\n\n <p>Looks like you have succeeded in getting Goldberg up and running. Now you will probably want to customise your site.</p>\n\n\n <p><strong>Very important:</strong> The default login for the administrator is “admin”, password “admin”. You must change that before you make your site public!</p>\n\n\n <h2>Administering the Site</h2>\n\n\n <p>At the login prompt, enter an administrator username and password. The top menu should change: a new item called “Administration” will appear. Go there for further details.</p>','Textile'),(2,'Session Expired','expired',1,'h1. Session Expired\n\nYour session has expired due to inactivity.\n\nTo continue please login again.\n',3,'2006-06-12 00:33:14','2007-05-21 14:01:58','<h1>Session Expired</h1>\n\n\n <p>Your session has expired due to inactivity.</p>\n\n\n <p>To continue please login again.</p>','Textile'),(3,'Not Found!','notfound',1,'h1. Not Found\n\nThe page you requested was not found!\n\nPlease contact your system administrator.',3,'2006-06-12 00:33:49','2007-05-21 14:01:59','<h1>Not Found</h1>\n\n\n <p>The page you requested was not found!</p>\n\n\n <p>Please contact your system administrator.</p>','Textile'),(4,'Permission Denied!','denied',1,'h1. Permission Denied\n\nSorry, but you don\'t have permission to view that page.\n\nPlease contact your system administrator.',3,'2006-06-12 00:34:30','2007-05-21 14:01:59','<h1>Permission Denied</h1>\n\n\n <p>Sorry, but you don’t have permission to view that page.</p>\n\n\n <p>Please contact your system administrator.</p>','Textile'),(6,'Contact Us','contact_us',1,'h1. Contact Us\n\nVisit the Goldberg Project Homepage at \"http://goldberg.rubyforge.org\":http://goldberg.rubyforge.org for further information on Goldberg. Visit the Goldberg RubyForge Project Info Page at \"http://rubyforge.org/projects/goldberg\":http://rubyforge.org/projects/goldberg to access the project\'s files and development information.',3,'2006-06-12 10:13:47','2007-05-21 14:01:59','<h1>Contact Us</h1>\n\n\n <p>Visit the Goldberg Project Homepage at <a href=\"http://goldberg.rubyforge.org\">http://goldberg.rubyforge.org</a> for further information on Goldberg. Visit the Goldberg RubyForge Project Info Page at <a href=\"http://rubyforge.org/projects/goldberg\">http://rubyforge.org/projects/goldberg</a> to access the project’s files and development information.</p>','Textile'),(8,'Site Administration','site_admin',1,'h1. Goldberg Setup\n\nThis is where you will find all the Goldberg-specific administration and configuration features. In here you can:\n\n* Set up Users.\n\n* Manage Roles and their Permissions.\n\n* Set up any Controllers and their Actions for your application.\n\n* Edit the Content Pages of the site.\n\n* Adjust Goldberg\'s system settings.\n\n\nh2. Users\n\nYou can set up Users with a username, password and a Role.\n\n\nh2. Roles and Permissions\n\nA User\'s Permissions affect what Actions they can perform and what Pages they can see. And because each Menu Item is based either on a Page or an Action, the Permissions determine what Menu Items the User can and cannot see.\n\nA Role is a set of Permissions. Roles are assigned to Users. Roles are hierarchical: a Role can have a parent Role; and if so it will inherit the Permissions of the parent Role, and all its parents.\n\n\nh2. Controllers and Actions\n\nTo execute any Action, a user must have the appropriate Permission. Therefore all Controllers and Actions you set up for your Rails application need to be entered here, otherwise no user will be able to execute them.\n\nYou start by setting up the Controller and assigning it a Permission. The Permission will be used as the default for any Actions invoked for that Controller.\n\nYou have the option of setting up specific Actions for the Controllers. You would want to do that if the Action were to appear as a Menu Item, or if it were to have a different level of security to the default for the Controller.\n\n\nh2. Content Pages\n\nGoldberg has a very simple CMS built in. You can create pages to be displayed on the site, possibly in menu items.\n\n\nh2. Menu Editor\n\nOnce you have set up your Controller Actions and Content Pages, you can put them into the site\'s menu using the Menu Editor.\n\nIn the Menu Editor you can add and remove Menu Items and move them around. The security of a Menu Item (whether the user can see it or not) depends on the Permission of the Action or Page attached to that Menu Item.\n\nh2. System Settings\n\nGo here to view and edit the settings that determine how Goldberg operates.\n',1,'2006-06-21 21:32:35','2007-05-21 14:01:59','<h1>Goldberg Setup</h1>\n\n\n <p>This is where you will find all the Goldberg-specific administration and configuration features. In here you can:</p>\n\n\n <ul>\n <li>Set up Users.</li>\n </ul>\n\n\n <ul>\n <li>Manage Roles and their Permissions.</li>\n </ul>\n\n\n <ul>\n <li>Set up any Controllers and their Actions for your application.</li>\n </ul>\n\n\n <ul>\n <li>Edit the Content Pages of the site.</li>\n </ul>\n\n\n <ul>\n <li>Adjust Goldberg’s system settings.</li>\n </ul>\n\n\n <h2>Users</h2>\n\n\n <p>You can set up Users with a username, password and a Role.</p>\n\n\n <h2>Roles and Permissions</h2>\n\n\n <p>A User’s Permissions affect what Actions they can perform and what Pages they can see. And because each Menu Item is based either on a Page or an Action, the Permissions determine what Menu Items the User can and cannot see.</p>\n\n\n <p>A Role is a set of Permissions. Roles are assigned to Users. Roles are hierarchical: a Role can have a parent Role; and if so it will inherit the Permissions of the parent Role, and all its parents.</p>\n\n\n <h2>Controllers and Actions</h2>\n\n\n <p>To execute any Action, a user must have the appropriate Permission. Therefore all Controllers and Actions you set up for your Rails application need to be entered here, otherwise no user will be able to execute them.</p>\n\n\n <p>You start by setting up the Controller and assigning it a Permission. The Permission will be used as the default for any Actions invoked for that Controller.</p>\n\n\n <p>You have the option of setting up specific Actions for the Controllers. You would want to do that if the Action were to appear as a Menu Item, or if it were to have a different level of security to the default for the Controller.</p>\n\n\n <h2>Content Pages</h2>\n\n\n <p>Goldberg has a very simple <span class=\"caps\">CMS</span> built in. You can create pages to be displayed on the site, possibly in menu items.</p>\n\n\n <h2>Menu Editor</h2>\n\n\n <p>Once you have set up your Controller Actions and Content Pages, you can put them into the site’s menu using the Menu Editor.</p>\n\n\n <p>In the Menu Editor you can add and remove Menu Items and move them around. The security of a Menu Item (whether the user can see it or not) depends on the Permission of the Action or Page attached to that Menu Item.</p>\n\n\n <h2>System Settings</h2>\n\n\n <p>Go here to view and edit the settings that determine how Goldberg operates.</p>','Textile'),(9,'Administration','admin',1,'h1. Site Administration\n\nThis is where the administrator can set up the site.\n\nThere is one menu item here by default -- \"Setup\":/menu/setup. That contains all the Goldberg configuration options.\n\nYou can add more menu items here to administer your application if you want, by going to \"Setup, Menu Editor\":/menu/setup/menus.\n',1,'2006-06-26 16:47:09','2007-05-21 14:01:59','<h1>Site Administration</h1>\n\n\n <p>This is where the administrator can set up the site.</p>\n\n\n <p>There is one menu item here by default—<a href=\"/menu/setup\">Setup</a>. That contains all the Goldberg configuration options.</p>\n\n\n <p>You can add more menu items here to administer your application if you want, by going to <a href=\"/menu/setup/menus\">Setup, Menu Editor</a>.</p>','Textile'),(10,'Credits and Licence','credits',1,'h1. Credits and Licence\n\nGoldberg contains original material and third party material from various sources.\n\nAll original material is (p) Public Domain, No Rights Reserved. Goldberg comes with no warranty whatsoever.\n\nThe copyright for any third party material remains with the original author, and the material is distributed here under the original terms. \n\nMaterial has been selected from sources with licensing terms and conditions that allow use and redistribution for both personal and business purposes. These licences include public domain, BSD-style licences, and Creative Commons licences (but *not* Creative Commons Non-Commercial).\n\nIf you are an author and you believe your copyrighted material has been included in Goldberg in breach of your licensing terms and conditions, please contact Dave Nelson (urbanus at 240gl dot org).\n\n\nh2. Layouts\n\nGoldberg comes with a choice of layouts, adapted from various sources.\n\nh3. The Default\n\nThe default layout is a modified version of Andreas09 by Anreas Viklund. Andreas09 is distributed under free/unlicensed terms, with an informal request that credit be given to the original author. The original template can be obtained from \"Open Source Web Design\":http://www.oswd.org/design/preview/id/2493/.\n\nAuthor\'s website: \"andreasviklund.com\":http://andreasviklund.com/.\n\n\nh3. \"Earth Wind and Fire\"\n\nOriginally designed by Brett Hillesheim (brett7481 at msn dot com) and distributed under free terms (from the MadSeason website: \"Every template we create is completely open source, meaning you can take it and do whatever you want with it\"). The original template can be obtained from \"Open Source Web Design\":http://www.oswd.org/design/preview/id/2453/.\n\nAuthor\'s website: \"www.madseason.co.uk\":http://www.madseason.co.uk/.\n\n\nh3. \"Snooker\"\n\n\"Snooker\" is an original design and is therefore Public Domain. It incorporates dynamic two-column layout techniques described on the \"A List Apart\":http://alistapart.com/articles/negativemargins website.\n\n\nh3. \"Spoiled Brat\"\n\nOriginally designed by \"Rayk Web Design\":http://www.raykdesign.net/ and distributed under the terms of the \"Creative Commons Attribution Share Alike\":http://creativecommons.org/licenses/by-sa/2.5/legalcode licence. The original template can be obtained from \"Open Web Design\":http://www.openwebdesign.org/viewdesign.phtml?id=2894/.\n\nAuthor\'s website: \"www.csstinderbox.com\":http://www.csstinderbox.com/.\n\n\nh2. Other Features\n\nGoldberg also contains some miscellaneous code and techniques from other sources.\n\nh3. Suckerfish Menus\n\nThe three templates \"Earth Wind and Fire\", \"Snooker\" and \"Spoiled Brat\" have all been configured to use Suckerfish menus. This technique of using a combination of CSS and Javascript to implement dynamic menus was first described by \"A List Apart\":http://www.alistapart.com/articles/dropdowns/. Goldberg\'s implementation also incorporates techniques described by \"HTMLDog\":http://www.htmldog.com/articles/suckerfish/dropdowns/.\n\nh3. Tabbed Panels\n\nGoldberg\'s implementation of tabbed panels was adapted from \n\"InternetConnection\":http://support.internetconnection.net/CODE_LIBRARY/Javascript_Show_Hide.shtml.\n',3,'2006-10-02 10:35:35','2007-05-21 14:01:59','<h1>Credits and Licence</h1>\n\n\n <p>Goldberg contains original material and third party material from various sources.</p>\n\n\n <p>All original material is (p) Public Domain, No Rights Reserved. Goldberg comes with no warranty whatsoever.</p>\n\n\n <p>The copyright for any third party material remains with the original author, and the material is distributed here under the original terms.</p>\n\n\n <p>Material has been selected from sources with licensing terms and conditions that allow use and redistribution for both personal and business purposes. These licences include public domain, <span class=\"caps\">BSD</span>-style licences, and Creative Commons licences (but <strong>not</strong> Creative Commons Non-Commercial).</p>\n\n\n <p>If you are an author and you believe your copyrighted material has been included in Goldberg in breach of your licensing terms and conditions, please contact Dave Nelson (urbanus at 240gl dot org).</p>\n\n\n <h2>Layouts</h2>\n\n\n <p>Goldberg comes with a choice of layouts, adapted from various sources.</p>\n\n\n <h3>The Default</h3>\n\n\n <p>The default layout is a modified version of Andreas09 by Anreas Viklund. Andreas09 is distributed under free/unlicensed terms, with an informal request that credit be given to the original author. The original template can be obtained from <a href=\"http://www.oswd.org/design/preview/id/2493/\">Open Source Web Design</a>.</p>\n\n\n <p>Author’s website: <a href=\"http://andreasviklund.com/\">andreasviklund.com</a>.</p>\n\n\n <h3>“Earth Wind and Fire”</h3>\n\n\n <p>Originally designed by Brett Hillesheim (brett7481 at msn dot com) and distributed under free terms (from the MadSeason website: “Every template we create is completely open source, meaning you can take it and do whatever you want with it”). The original template can be obtained from <a href=\"http://www.oswd.org/design/preview/id/2453/\">Open Source Web Design</a>.</p>\n\n\n <p>Author’s website: <a href=\"http://www.madseason.co.uk/\">www.madseason.co.uk</a>.</p>\n\n\n <h3>“Snooker”</h3>\n\n\n <p>“Snooker” is an original design and is therefore Public Domain. It incorporates dynamic two-column layout techniques described on the <a href=\"http://alistapart.com/articles/negativemargins\">A List Apart</a> website.</p>\n\n\n <h3>“Spoiled Brat”</h3>\n\n\n <p>Originally designed by <a href=\"http://www.raykdesign.net/\">Rayk Web Design</a> and distributed under the terms of the <a href=\"http://creativecommons.org/licenses/by-sa/2.5/legalcode\">Creative Commons Attribution Share Alike</a> licence. The original template can be obtained from <a href=\"http://www.openwebdesign.org/viewdesign.phtml?id=2894/\">Open Web Design</a>.</p>\n\n\n <p>Author’s website: <a href=\"http://www.csstinderbox.com/\">www.csstinderbox.com</a>.</p>\n\n\n <h2>Other Features</h2>\n\n\n <p>Goldberg also contains some miscellaneous code and techniques from other sources.</p>\n\n\n <h3>Suckerfish Menus</h3>\n\n\n <p>The three templates “Earth Wind and Fire”, “Snooker” and “Spoiled Brat” have all been configured to use Suckerfish menus. This technique of using a combination of <span class=\"caps\">CSS</span> and Javascript to implement dynamic menus was first described by <a href=\"http://www.alistapart.com/articles/dropdowns/\">A List Apart</a>. Goldberg’s implementation also incorporates techniques described by <a href=\"http://www.htmldog.com/articles/suckerfish/dropdowns/\">HTMLDog</a>.</p>\n\n\n <h3>Tabbed Panels</h3>\n\n\n <p>Goldberg’s implementation of tabbed panels was adapted from \n<a href=\"http://support.internetconnection.net/CODE_LIBRARY/Javascript_Show_Hide.shtml\">InternetConnection</a>.</p>','Textile'),(11,'Not Permitted','unconfirmed',NULL,'h1. Not Permitted\n\nSorry, but you are not allowed to log into the site until your registration has been confirmed.\n\nIf there is an issue please contact the system administrator.\n',3,'2007-04-01 10:37:42','2007-05-21 14:01:59','<h1>Not Permitted</h1>\n\n\n <p>Sorry, but you are not allowed to log into the site until your registration has been confirmed.</p>\n\n\n <p>If there is an issue please contact the system administrator.</p>','Textile');
/*!40000 ALTER TABLE `goldberg_content_pages` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `goldberg_controller_actions`
--
DROP TABLE IF EXISTS `goldberg_controller_actions`;
CREATE TABLE `goldberg_controller_actions` (
`id` int(11) NOT NULL auto_increment,
`site_controller_id` int(11) NOT NULL default '0',
`name` varchar(255) NOT NULL default '',
`permission_id` int(11) default NULL,
`url_to_use` varchar(255) default NULL,
PRIMARY KEY (`id`),
KEY `fk_controller_action_permission_id` (`permission_id`),
KEY `fk_controller_action_site_controller_id` (`site_controller_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `goldberg_controller_actions`
--
LOCK TABLES `goldberg_controller_actions` WRITE;
/*!40000 ALTER TABLE `goldberg_controller_actions` DISABLE KEYS */;
INSERT INTO `goldberg_controller_actions` VALUES (1,1,'view_default',3,NULL),(2,1,'view',3,NULL),(3,7,'list',NULL,NULL),(4,6,'list',NULL,NULL),(5,3,'login',4,NULL),(6,3,'logout',4,NULL),(7,5,'link',4,NULL),(8,1,'list',NULL,NULL),(9,8,'list',NULL,NULL),(10,2,'list',NULL,NULL),(11,5,'list',NULL,NULL),(12,9,'list',NULL,NULL),(13,3,'forgotten',4,NULL),(14,3,'login_failed',4,NULL),(15,10,'list',NULL,NULL),(16,10,'self_register',4,''),(17,10,'confirm_registration',4,''),(18,10,'confirm_registration_submit',4,''),(19,10,'self_create',4,''),(20,10,'forgot_password',4,''),(21,10,'forgot_password_submit',4,''),(22,10,'reset_password',4,''),(23,10,'reset_password_submit',4,'');
/*!40000 ALTER TABLE `goldberg_controller_actions` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `goldberg_markup_styles`
--
DROP TABLE IF EXISTS `goldberg_markup_styles`;
CREATE TABLE `goldberg_markup_styles` (
`id` int(11) NOT NULL auto_increment,
`name` varchar(255) NOT NULL default '',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `goldberg_markup_styles`
--
LOCK TABLES `goldberg_markup_styles` WRITE;
/*!40000 ALTER TABLE `goldberg_markup_styles` DISABLE KEYS */;
/*!40000 ALTER TABLE `goldberg_markup_styles` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `goldberg_menu_items`
--
DROP TABLE IF EXISTS `goldberg_menu_items`;
CREATE TABLE `goldberg_menu_items` (
`id` int(11) NOT NULL auto_increment,
`parent_id` int(11) default NULL,
`name` varchar(255) NOT NULL default '',
`label` varchar(255) NOT NULL default '',
`seq` int(11) default NULL,
`controller_action_id` int(11) default NULL,
`content_page_id` int(11) default NULL,
PRIMARY KEY (`id`),
KEY `fk_menu_item_controller_action_id` (`controller_action_id`),
KEY `fk_menu_item_content_page_id` (`content_page_id`),
KEY `fk_menu_item_parent_id` (`parent_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `goldberg_menu_items`
--
LOCK TABLES `goldberg_menu_items` WRITE;
/*!40000 ALTER TABLE `goldberg_menu_items` DISABLE KEYS */;
INSERT INTO `goldberg_menu_items` VALUES (1,NULL,'home','Home',1,NULL,1),(2,NULL,'contact_us','Contact Us',3,NULL,6),(3,NULL,'admin','Administration',2,NULL,9),(5,9,'setup/permissions','Permissions',3,4,NULL),(6,9,'setup/roles','Roles',2,3,NULL),(7,9,'setup/pages','Content Pages',5,8,NULL),(8,9,'setup/controllers','Controllers / Actions',4,9,NULL),(9,3,'setup','Setup',1,NULL,8),(11,9,'setup/menus','Menu Editor',6,11,NULL),(12,9,'setup/system_settings','System Settings',7,12,NULL),(13,9,'setup/users','Users',1,15,NULL),(14,2,'credits','Credits & Licence',1,NULL,10);
/*!40000 ALTER TABLE `goldberg_menu_items` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `goldberg_permissions`
--
DROP TABLE IF EXISTS `goldberg_permissions`;
CREATE TABLE `goldberg_permissions` (
`id` int(11) NOT NULL auto_increment,
`name` varchar(255) NOT NULL default '',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `goldberg_permissions`
--
LOCK TABLES `goldberg_permissions` WRITE;
/*!40000 ALTER TABLE `goldberg_permissions` DISABLE KEYS */;
INSERT INTO `goldberg_permissions` VALUES (1,'Administer site'),(2,'Public pages - edit'),(3,'Public pages - view'),(4,'Public actions - execute'),(5,'Members only page -- view');
/*!40000 ALTER TABLE `goldberg_permissions` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `goldberg_roles`
--
DROP TABLE IF EXISTS `goldberg_roles`;
CREATE TABLE `goldberg_roles` (
`id` int(11) NOT NULL auto_increment,
`name` varchar(255) NOT NULL default '',
`parent_id` int(11) default NULL,
`description` varchar(255) NOT NULL default '',
`default_page_id` int(11) default NULL,
`cache` text,
`created_at` datetime default NULL,
`updated_at` datetime default NULL,
`start_path` varchar(255) default NULL,
PRIMARY KEY (`id`),
KEY `fk_role_parent_id` (`parent_id`),
KEY `fk_role_default_page_id` (`default_page_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `goldberg_roles`
--
LOCK TABLES `goldberg_roles` WRITE;
/*!40000 ALTER TABLE `goldberg_roles` DISABLE KEYS */;
INSERT INTO `goldberg_roles` VALUES (1,'Public',NULL,'Members of the public who are not logged in.',NULL,'--- \n:credentials: !ruby/object:Goldberg::Credentials \n actions: \n goldberg/site_controllers: \n list: false\n goldberg/menu_items: \n list: false\n link: true\n goldberg/roles: \n list: false\n goldberg/permissions: \n list: false\n goldberg/system_settings: \n list: false\n goldberg/content_pages: \n list: false\n view_default: true\n view: true\n goldberg/auth: \n logout: true\n forgotten: true\n login_failed: true\n login: true\n goldberg/controller_actions: \n list: false\n goldberg/users: \n self_register: true\n list: false\n forgot_password: true\n forgot_password_submit: true\n reset_password: true\n reset_password_submit: true\n confirm_registration: true\n self_create: true\n confirm_registration_submit: true\n controllers: \n goldberg/site_controllers: false\n goldberg/roles_permissions: false\n goldberg/menu_items: false\n goldberg/permissions: false\n goldberg/roles: false\n goldberg/system_settings: false\n goldberg/content_pages: false\n goldberg/auth: false\n goldberg/controller_actions: false\n goldberg/users: false\n pages: \n notfound: true\n admin: false\n site_admin: false\n unconfirmed: true\n contact_us: true\n credits: true\n home: true\n expired: true\n denied: true\n permission_ids: \n - 4\n - 3\n role_id: 1\n role_ids: \n - 1\n updated_at: 2007-03-31 20:37:43 -04:00\n:menu: !ruby/object:Goldberg::Menu \n by_id: \n 1: &id003 !ruby/object:Goldberg::Menu::Node \n content_page_id: 1\n controller_action_id: \n id: 1\n label: Home\n name: home\n parent: \n parent_id: \n site_controller_id: \n url: /home\n 2: &id001 !ruby/object:Goldberg::Menu::Node \n children: \n - 14\n content_page_id: 6\n controller_action_id: \n id: 2\n label: Contact Us\n name: contact_us\n parent: \n parent_id: \n site_controller_id: \n url: /contact_us\n 14: &id002 !ruby/object:Goldberg::Menu::Node \n content_page_id: 10\n controller_action_id: \n id: 14\n label: Credits & Licence\n name: credits\n parent: \n parent_id: 2\n site_controller_id: \n url: /credits\n by_name: \n contact_us: *id001\n credits: *id002\n home: *id003\n crumbs: \n - 1\n root: &id004 !ruby/object:Goldberg::Menu::Node \n children: \n - 1\n - 2\n parent: \n selected: \n 1: *id003\n vector: \n - *id004\n - *id003\n','2006-06-23 21:03:49','2007-05-21 14:02:01',NULL),(2,'Member',1,'',NULL,'--- \n:credentials: !ruby/object:Goldberg::Credentials \n actions: \n goldberg/site_controllers: \n list: false\n goldberg/menu_items: \n list: false\n link: true\n goldberg/roles: \n list: false\n goldberg/permissions: \n list: false\n goldberg/system_settings: \n list: false\n goldberg/content_pages: \n list: false\n view_default: true\n view: true\n goldberg/auth: \n logout: true\n forgotten: true\n login_failed: true\n login: true\n goldberg/controller_actions: \n list: false\n goldberg/users: \n self_register: true\n list: false\n forgot_password: true\n forgot_password_submit: true\n reset_password: true\n reset_password_submit: true\n confirm_registration: true\n self_create: true\n confirm_registration_submit: true\n controllers: \n goldberg/site_controllers: false\n goldberg/roles_permissions: false\n goldberg/menu_items: false\n goldberg/permissions: false\n goldberg/roles: false\n goldberg/system_settings: false\n goldberg/content_pages: false\n goldberg/auth: false\n goldberg/controller_actions: false\n goldberg/users: false\n pages: \n notfound: true\n admin: false\n site_admin: false\n unconfirmed: true\n contact_us: true\n credits: true\n home: true\n expired: true\n denied: true\n permission_ids: \n - 5\n - 4\n - 3\n role_id: 2\n role_ids: \n - 2\n - 1\n updated_at: 2007-03-31 20:37:43 -04:00\n:menu: !ruby/object:Goldberg::Menu \n by_id: \n 1: &id003 !ruby/object:Goldberg::Menu::Node \n content_page_id: 1\n controller_action_id: \n id: 1\n label: Home\n name: home\n parent: \n parent_id: \n site_controller_id: \n url: /home\n 2: &id001 !ruby/object:Goldberg::Menu::Node \n children: \n - 14\n content_page_id: 6\n controller_action_id: \n id: 2\n label: Contact Us\n name: contact_us\n parent: \n parent_id: \n site_controller_id: \n url: /contact_us\n 14: &id002 !ruby/object:Goldberg::Menu::Node \n content_page_id: 10\n controller_action_id: \n id: 14\n label: Credits & Licence\n name: credits\n parent: \n parent_id: 2\n site_controller_id: \n url: /credits\n by_name: \n contact_us: *id001\n credits: *id002\n home: *id003\n crumbs: \n - 1\n root: &id004 !ruby/object:Goldberg::Menu::Node \n children: \n - 1\n - 2\n parent: \n selected: \n 1: *id003\n vector: \n - *id004\n - *id003\n','2006-06-23 21:03:50','2007-05-21 14:02:01',NULL),(3,'Administrator',2,'',8,'--- \n:credentials: !ruby/object:Goldberg::Credentials \n actions: \n goldberg/site_controllers: \n list: true\n goldberg/menu_items: \n list: true\n link: true\n goldberg/roles: \n list: true\n goldberg/permissions: \n list: true\n goldberg/system_settings: \n list: true\n goldberg/content_pages: \n list: true\n view_default: true\n view: true\n goldberg/auth: \n logout: true\n forgotten: true\n login_failed: true\n login: true\n goldberg/controller_actions: \n list: true\n goldberg/users: \n self_register: true\n list: true\n forgot_password: true\n forgot_password_submit: true\n reset_password: true\n reset_password_submit: true\n confirm_registration: true\n self_create: true\n confirm_registration_submit: true\n controllers: \n goldberg/site_controllers: true\n goldberg/roles_permissions: true\n goldberg/menu_items: true\n goldberg/permissions: true\n goldberg/roles: true\n goldberg/system_settings: true\n goldberg/content_pages: true\n goldberg/auth: true\n goldberg/controller_actions: true\n goldberg/users: true\n pages: \n notfound: true\n admin: true\n site_admin: true\n unconfirmed: true\n contact_us: true\n credits: true\n home: true\n expired: true\n denied: true\n permission_ids: \n - 1\n - 5\n - 4\n - 2\n - 3\n role_id: 3\n role_ids: \n - 3\n - 2\n - 1\n updated_at: 2007-03-31 20:37:43 -04:00\n:menu: !ruby/object:Goldberg::Menu \n by_id: \n 5: &id009 !ruby/object:Goldberg::Menu::Node \n content_page_id: \n controller_action_id: 4\n id: 5\n label: Permissions\n name: setup/permissions\n parent: \n parent_id: 9\n site_controller_id: 6\n url: /goldberg/permissions/list\n 11: &id004 !ruby/object:Goldberg::Menu::Node \n content_page_id: \n controller_action_id: 11\n id: 11\n label: Menu Editor\n name: setup/menus\n parent: \n parent_id: 9\n site_controller_id: 5\n url: /goldberg/menu_items/list\n 6: &id006 !ruby/object:Goldberg::Menu::Node \n content_page_id: \n controller_action_id: 3\n id: 6\n label: Roles\n name: setup/roles\n parent: \n parent_id: 9\n site_controller_id: 7\n url: /goldberg/roles/list\n 1: &id011 !ruby/object:Goldberg::Menu::Node \n content_page_id: 1\n controller_action_id: \n id: 1\n label: Home\n name: home\n parent: \n parent_id: \n site_controller_id: \n url: /home\n 12: &id003 !ruby/object:Goldberg::Menu::Node \n content_page_id: \n controller_action_id: 12\n id: 12\n label: System Settings\n name: setup/system_settings\n parent: \n parent_id: 9\n site_controller_id: 9\n url: /goldberg/system_settings/list\n 7: &id002 !ruby/object:Goldberg::Menu::Node \n content_page_id: \n controller_action_id: 8\n id: 7\n label: Content Pages\n name: setup/pages\n parent: \n parent_id: 9\n site_controller_id: 1\n url: /goldberg/content_pages/list\n 2: &id007 !ruby/object:Goldberg::Menu::Node \n children: \n - 14\n content_page_id: 6\n controller_action_id: \n id: 2\n label: Contact Us\n name: contact_us\n parent: \n parent_id: \n site_controller_id: \n url: /contact_us\n 13: &id001 !ruby/object:Goldberg::Menu::Node \n content_page_id: \n controller_action_id: 15\n id: 13\n label: Users\n name: setup/users\n parent: \n parent_id: 9\n site_controller_id: 10\n url: /goldberg/users/list\n 8: &id012 !ruby/object:Goldberg::Menu::Node \n content_page_id: \n controller_action_id: 9\n id: 8\n label: Controllers / Actions\n name: setup/controllers\n parent: \n parent_id: 9\n site_controller_id: 8\n url: /goldberg/site_controllers/list\n 3: &id005 !ruby/object:Goldberg::Menu::Node \n children: \n - 9\n content_page_id: 9\n controller_action_id: \n id: 3\n label: Administration\n name: admin\n parent: \n parent_id: \n site_controller_id: \n url: /admin\n 14: &id010 !ruby/object:Goldberg::Menu::Node \n content_page_id: 10\n controller_action_id: \n id: 14\n label: Credits & Licence\n name: credits\n parent: \n parent_id: 2\n site_controller_id: \n url: /credits\n 9: &id008 !ruby/object:Goldberg::Menu::Node \n children: \n - 13\n - 6\n - 5\n - 8\n - 7\n - 11\n - 12\n content_page_id: 8\n controller_action_id: \n id: 9\n label: Setup\n name: setup\n parent: \n parent_id: 3\n site_controller_id: \n url: /site_admin\n by_name: \n setup/users: *id001\n setup/pages: *id002\n setup/system_settings: *id003\n setup/menus: *id004\n admin: *id005\n setup/roles: *id006\n contact_us: *id007\n setup: *id008\n setup/permissions: *id009\n credits: *id010\n home: *id011\n setup/controllers: *id012\n crumbs: \n - 1\n root: &id013 !ruby/object:Goldberg::Menu::Node \n children: \n - 1\n - 3\n - 2\n parent: \n selected: \n 1: *id011\n vector: \n - *id013\n - *id011\n','2006-06-23 21:03:48','2007-05-21 14:02:01','/menu/admin');
/*!40000 ALTER TABLE `goldberg_roles` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `goldberg_roles_permissions`
--
DROP TABLE IF EXISTS `goldberg_roles_permissions`;
CREATE TABLE `goldberg_roles_permissions` (
`id` int(11) NOT NULL auto_increment,
`role_id` int(11) NOT NULL default '0',
`permission_id` int(11) NOT NULL default '0',
PRIMARY KEY (`id`),
KEY `fk_roles_permission_role_id` (`role_id`),
KEY `fk_roles_permission_permission_id` (`permission_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `goldberg_roles_permissions`
--
LOCK TABLES `goldberg_roles_permissions` WRITE;
/*!40000 ALTER TABLE `goldberg_roles_permissions` DISABLE KEYS */;
INSERT INTO `goldberg_roles_permissions` VALUES (4,3,1),(6,1,3),(7,3,2),(9,1,4),(10,2,5);
/*!40000 ALTER TABLE `goldberg_roles_permissions` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `goldberg_site_controllers`
--
DROP TABLE IF EXISTS `goldberg_site_controllers`;
CREATE TABLE `goldberg_site_controllers` (
`id` int(11) NOT NULL auto_increment,
`name` varchar(255) NOT NULL default '',
`permission_id` int(11) NOT NULL default '0',
`builtin` int(11) default '0',
PRIMARY KEY (`id`),
KEY `fk_site_controller_permission_id` (`permission_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `goldberg_site_controllers`
--
LOCK TABLES `goldberg_site_controllers` WRITE;
/*!40000 ALTER TABLE `goldberg_site_controllers` DISABLE KEYS */;
INSERT INTO `goldberg_site_controllers` VALUES (1,'goldberg/content_pages',1,1),(2,'goldberg/controller_actions',1,1),(3,'goldberg/auth',1,1),(5,'goldberg/menu_items',1,1),(6,'goldberg/permissions',1,1),(7,'goldberg/roles',1,1),(8,'goldberg/site_controllers',1,1),(9,'goldberg/system_settings',1,1),(10,'goldberg/users',1,1),(11,'goldberg/roles_permissions',1,1);
/*!40000 ALTER TABLE `goldberg_site_controllers` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `goldberg_system_settings`
--
DROP TABLE IF EXISTS `goldberg_system_settings`;
CREATE TABLE `goldberg_system_settings` (
`id` int(11) NOT NULL auto_increment,
`site_name` varchar(255) NOT NULL default '',
`site_subtitle` varchar(255) default NULL,
`footer_message` varchar(255) default '',
`public_role_id` int(11) NOT NULL default '0',
`session_timeout` int(11) NOT NULL default '0',
`default_markup_style_id` int(11) default '0',
`site_default_page_id` int(11) NOT NULL default '0',
`not_found_page_id` int(11) NOT NULL default '0',
`permission_denied_page_id` int(11) NOT NULL default '0',
`session_expired_page_id` int(11) NOT NULL default '0',
`menu_depth` int(11) NOT NULL default '0',
`start_path` varchar(255) default NULL,
`site_url_prefix` varchar(255) default NULL,
`self_reg_enabled` tinyint(1) default NULL,
`self_reg_role_id` int(11) default NULL,
`self_reg_confirmation_required` tinyint(1) default NULL,
`self_reg_confirmation_error_page_id` int(11) default NULL,
`self_reg_send_confirmation_email` tinyint(1) default NULL,
PRIMARY KEY (`id`),
KEY `fk_system_settings_public_role_id` (`public_role_id`),
KEY `fk_system_settings_site_default_page_id` (`site_default_page_id`),
KEY `fk_system_settings_not_found_page_id` (`not_found_page_id`),
KEY `fk_system_settings_permission_denied_page_id` (`permission_denied_page_id`),
KEY `fk_system_settings_session_expired_page_id` (`session_expired_page_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `goldberg_system_settings`
--
LOCK TABLES `goldberg_system_settings` WRITE;
/*!40000 ALTER TABLE `goldberg_system_settings` DISABLE KEYS */;
INSERT INTO `goldberg_system_settings` VALUES (1,'Goldberg','A website development tool for Ruby on Rails','A <a href=\"http://goldberg.rubyforge.org\">Goldberg</a> site',1,7200,1,1,3,4,2,3,'','http://localhost:3000/',0,NULL,0,11,0);
/*!40000 ALTER TABLE `goldberg_system_settings` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `goldberg_users`
--
DROP TABLE IF EXISTS `goldberg_users`;
CREATE TABLE `goldberg_users` (
`id` int(11) NOT NULL auto_increment,
`name` varchar(255) NOT NULL default '',
`password` varchar(40) NOT NULL default '',
`role_id` int(11) NOT NULL default '0',
`password_salt` varchar(255) default NULL,
`fullname` varchar(255) default NULL,
`email` varchar(255) default NULL,
`start_path` varchar(255) default NULL,
`self_reg_confirmation_required` tinyint(1) default NULL,
`confirmation_key` varchar(255) default NULL,
`password_changed_at` datetime default NULL,
`password_expired` tinyint(1) default NULL,
PRIMARY KEY (`id`),
KEY `fk_user_role_id` (`role_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `goldberg_users`
--
LOCK TABLES `goldberg_users` WRITE;
/*!40000 ALTER TABLE `goldberg_users` DISABLE KEYS */;
INSERT INTO `goldberg_users` VALUES (2,'admin','d033e22ae348aeb5660fc2140aec35850c4da997',3,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
/*!40000 ALTER TABLE `goldberg_users` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `institutions`
--
DROP TABLE IF EXISTS `institutions`;
CREATE TABLE `institutions` (
`id` int(11) NOT NULL auto_increment,
`name` varchar(255) NOT NULL default '',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `institutions`
--
LOCK TABLES `institutions` WRITE;
/*!40000 ALTER TABLE `institutions` DISABLE KEYS */;
INSERT INTO `institutions` VALUES (1,'North Carolina State University');
/*!40000 ALTER TABLE `institutions` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `invitations`
--
DROP TABLE IF EXISTS `invitations`;
CREATE TABLE `invitations` (
`id` int(11) NOT NULL auto_increment,
`assignment_id` int(11) default NULL,
`from_id` int(11) default NULL,
`to_id` int(11) default NULL,
`reply_status` char(1) default NULL,
PRIMARY KEY (`id`),
KEY `fk_invitationfrom_users` (`from_id`),
KEY `fk_invitationto_users` (`to_id`),
KEY `fk_invitation_assignments` (`assignment_id`),
CONSTRAINT `fk_invitation_assignments` FOREIGN KEY (`assignment_id`) REFERENCES `assignments` (`id`),
CONSTRAINT `fk_invitationfrom_users` FOREIGN KEY (`from_id`) REFERENCES `users` (`id`),
CONSTRAINT `fk_invitationto_users` FOREIGN KEY (`to_id`) REFERENCES `users` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `invitations`
--
LOCK TABLES `invitations` WRITE;
/*!40000 ALTER TABLE `invitations` DISABLE KEYS */;
/*!40000 ALTER TABLE `invitations` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `languages`
--
DROP TABLE IF EXISTS `languages`;
CREATE TABLE `languages` (
`id` int(11) NOT NULL auto_increment,
`name` varchar(32) default NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `languages`
--
LOCK TABLES `languages` WRITE;
/*!40000 ALTER TABLE `languages` DISABLE KEYS */;
/*!40000 ALTER TABLE `languages` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `late_policies`
--
DROP TABLE IF EXISTS `late_policies`;
CREATE TABLE `late_policies` (
`id` int(11) NOT NULL auto_increment,
`penalty_period_in_minutes` int(11) default NULL,
`penalty_per_unit` int(11) default NULL,
`expressed_as_percentage` tinyint(1) default NULL,
`max_penalty` int(11) NOT NULL default '0',
PRIMARY KEY (`id`),
KEY `penalty_period_length_unit` (`penalty_period_in_minutes`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `late_policies`
--
LOCK TABLES `late_policies` WRITE;
/*!40000 ALTER TABLE `late_policies` DISABLE KEYS */;
INSERT INTO `late_policies` VALUES (1,30,1,NULL,20),(2,60,1,NULL,20),(3,90,1,NULL,20),(4,120,1,NULL,20);
/*!40000 ALTER TABLE `late_policies` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `mapping_strategies`
--
DROP TABLE IF EXISTS `mapping_strategies`;
CREATE TABLE `mapping_strategies` (
`id` int(11) NOT NULL auto_increment,
`name` varchar(255) default NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `mapping_strategies`
--
LOCK TABLES `mapping_strategies` WRITE;
/*!40000 ALTER TABLE `mapping_strategies` DISABLE KEYS */;
INSERT INTO `mapping_strategies` VALUES (1,'Static, pseudo-random'),(2,'Dynamic, fewest extant reviews');
/*!40000 ALTER TABLE `mapping_strategies` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `markup_styles`
--
DROP TABLE IF EXISTS `markup_styles`;
CREATE TABLE `markup_styles` (
`id` int(11) NOT NULL auto_increment,
`name` varchar(255) NOT NULL default '',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `markup_styles`
--
LOCK TABLES `markup_styles` WRITE;
/*!40000 ALTER TABLE `markup_styles` DISABLE KEYS */;
INSERT INTO `markup_styles` VALUES (1,'Textile'),(2,'Markdown');
/*!40000 ALTER TABLE `markup_styles` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `menu_items`
--
DROP TABLE IF EXISTS `menu_items`;
CREATE TABLE `menu_items` (
`id` int(11) NOT NULL auto_increment,
`parent_id` int(11) default NULL,
`name` varchar(255) NOT NULL default '',
`label` varchar(255) NOT NULL default '',
`seq` int(11) default NULL,
`controller_action_id` int(11) default NULL,
`content_page_id` int(11) default NULL,
PRIMARY KEY (`id`),
KEY `fk_menu_item_controller_action_id` (`controller_action_id`),
KEY `fk_menu_item_content_page_id` (`content_page_id`),
KEY `fk_menu_item_parent_id` (`parent_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `menu_items`
--
LOCK TABLES `menu_items` WRITE;
/*!40000 ALTER TABLE `menu_items` DISABLE KEYS */;
INSERT INTO `menu_items` VALUES (1,NULL,'home','Home',1,NULL,1),(2,NULL,'contact_us','Contact Us',10,NULL,6),(3,NULL,'admin','Administration',2,NULL,8),(5,9,'setup/permissions','Permissions',3,4,NULL),(6,9,'setup/roles','Roles',2,3,NULL),(7,9,'setup/pages','Content Pages',5,8,NULL),(8,9,'setup/controllers','Controllers / Actions',4,9,NULL),(9,3,'setup','Setup',1,NULL,8),(11,9,'setup/menus','Menu Editor',6,11,NULL),(12,9,'setup/system_settings','System Settings',7,12,NULL),(13,34,'manage/users','Users',1,15,NULL),(14,2,'credits','Credits & Licence',1,NULL,10),(15,43,'show/instructors','Instructors',4,16,NULL),(16,43,'show/administrators','Administrators',3,17,NULL),(17,43,'show/super-administrators','Super-Administrators',2,18,NULL),(22,43,'show/institutions','Institutions',1,32,NULL),(26,NULL,'student_task','Assignments',8,33,NULL),(27,NULL,'profile','Profile',9,36,NULL),(30,34,'impersonate','Impersonate User',5,42,NULL),(32,NULL,'Survey Deployments','Survey Deployments',4,45,NULL),(33,32,'Statistical Test','Statistical Test',3,46,NULL),(34,NULL,'manage instructor content','Manage...',3,48,NULL),(35,34,'manage/questionnaires','Questionnaires',2,49,NULL),(36,35,'manage/questionnaires/review rubrics','Review rubrics',1,51,NULL),(37,35,'manage/questionnaires/author feedbacks','Author feedbacks',4,50,NULL),(38,35,'manage/questionnaires/global survey','Global survey',5,52,NULL),(39,35,'manage/questionnaires/surveys','Surveys',6,53,NULL),(40,35,'manage/questionnaires/course evaluations','Course evaluations',7,53,NULL),(41,34,'manage/courses','Courses',3,55,NULL),(42,34,'manage/assignments','Assignments',4,56,NULL),(43,3,'show','Show...',2,15,NULL),(45,35,'manage/questionnaires/metareview rubrics','Metareview rubrics',2,61,NULL),(46,35,'manage/questionnaires/teammate review rubrics','Teammate review rubrics',3,62,NULL);
/*!40000 ALTER TABLE `menu_items` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `nodes`
--
DROP TABLE IF EXISTS `nodes`;
CREATE TABLE `nodes` (
`id` int(11) NOT NULL auto_increment,
`parent_id` int(11) default NULL,
`node_object_id` int(11) default NULL,
`type` varchar(255) default NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `nodes`
--
LOCK TABLES `nodes` WRITE;
/*!40000 ALTER TABLE `nodes` DISABLE KEYS */;
INSERT INTO `nodes` VALUES (1,NULL,1,'FolderNode'),(2,NULL,2,'FolderNode'),(3,NULL,3,'FolderNode'),(11,1,4,'FolderNode'),(12,1,5,'FolderNode'),(13,1,6,'FolderNode'),(14,1,7,'FolderNode'),(15,1,8,'FolderNode'),(16,1,9,'FolderNode'),(17,1,10,'FolderNode');
/*!40000 ALTER TABLE `nodes` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `participants`
--
DROP TABLE IF EXISTS `participants`;
CREATE TABLE `participants` (
`id` int(11) NOT NULL auto_increment,
`submit_allowed` tinyint(1) default '1',
`review_allowed` tinyint(1) default '1',
`user_id` int(11) default NULL,
`parent_id` int(11) default NULL,
`directory_num` int(11) default NULL,
`submitted_at` datetime default NULL,
`topic` varchar(255) default NULL,
`permission_granted` tinyint(1) default NULL,
`penalty_accumulated` int(10) NOT NULL default '0',
`submitted_hyperlink` varchar(500) default NULL,
`grade` float default NULL,
`type` varchar(255) default NULL,
`handle` varchar(255) default NULL,
PRIMARY KEY (`id`),
KEY `fk_participant_users` (`user_id`),
CONSTRAINT `fk_participant_users` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `participants`
--
LOCK TABLES `participants` WRITE;
/*!40000 ALTER TABLE `participants` DISABLE KEYS */;
/*!40000 ALTER TABLE `participants` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `permissions`
--
DROP TABLE IF EXISTS `permissions`;
CREATE TABLE `permissions` (
`id` int(11) NOT NULL auto_increment,
`name` varchar(255) NOT NULL default '',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `permissions`
--
LOCK TABLES `permissions` WRITE;
/*!40000 ALTER TABLE `permissions` DISABLE KEYS */;
INSERT INTO `permissions` VALUES (1,'administer goldberg'),(3,'public pages - view'),(4,'public actions - execute'),(6,'administer pg'),(7,'administer assignments'),(8,'do assignments'),(9,'administer instructors'),(10,'administer courses');
/*!40000 ALTER TABLE `permissions` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `plugin_schema_info`
--
DROP TABLE IF EXISTS `plugin_schema_info`;
CREATE TABLE `plugin_schema_info` (
`plugin_name` varchar(255) default NULL,
`version` int(11) default NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `plugin_schema_info`
--
LOCK TABLES `plugin_schema_info` WRITE;
/*!40000 ALTER TABLE `plugin_schema_info` DISABLE KEYS */;
INSERT INTO `plugin_schema_info` VALUES ('goldberg',3);
/*!40000 ALTER TABLE `plugin_schema_info` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `question_advices`
--
DROP TABLE IF EXISTS `question_advices`;
CREATE TABLE `question_advices` (
`id` int(11) NOT NULL auto_increment,
`question_id` int(11) default NULL,
`score` int(11) default NULL,
`advice` text,
PRIMARY KEY (`id`),
KEY `fk_question_question_advices` (`question_id`),
CONSTRAINT `fk_question_question_advices` FOREIGN KEY (`question_id`) REFERENCES `questions` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `question_advices`
--
LOCK TABLES `question_advices` WRITE;
/*!40000 ALTER TABLE `question_advices` DISABLE KEYS */;
/*!40000 ALTER TABLE `question_advices` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `questionnaires`
--
DROP TABLE IF EXISTS `questionnaires`;
CREATE TABLE `questionnaires` (
`id` int(11) NOT NULL auto_increment,
`name` varchar(64) default NULL,
`instructor_id` int(11) NOT NULL default '0',
`private` tinyint(1) NOT NULL default '0',
`min_question_score` int(11) NOT NULL default '0',
`max_question_score` int(11) default NULL,
`created_at` datetime default NULL,
`updated_at` datetime NOT NULL,
`default_num_choices` int(11) default NULL,
`type` varchar(255) default NULL,
`display_type` varchar(255) default NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `questionnaires`
--
LOCK TABLES `questionnaires` WRITE;
/*!40000 ALTER TABLE `questionnaires` DISABLE KEYS */;
/*!40000 ALTER TABLE `questionnaires` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `questions`
--
DROP TABLE IF EXISTS `questions`;
CREATE TABLE `questions` (
`id` int(11) NOT NULL auto_increment,
`txt` text,
`true_false` tinyint(1) default NULL,
`weight` int(11) default NULL,
`questionnaire_id` int(11) default NULL,
PRIMARY KEY (`id`),
KEY `fk_question_questionnaires` (`questionnaire_id`),
CONSTRAINT `fk_question_questionnaires` FOREIGN KEY (`questionnaire_id`) REFERENCES `questionnaires` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `questions`
--
LOCK TABLES `questions` WRITE;
/*!40000 ALTER TABLE `questions` DISABLE KEYS */;
/*!40000 ALTER TABLE `questions` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `response_maps`
--
DROP TABLE IF EXISTS `response_maps`;
CREATE TABLE `response_maps` (
`id` int(11) NOT NULL auto_increment,
`reviewed_object_id` int(11) NOT NULL,
`reviewer_id` int(11) NOT NULL,
`reviewee_id` int(11) NOT NULL,
`type` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
KEY `fk_response_map_reviewer` (`reviewer_id`),
CONSTRAINT `fk_response_map_reviewer` FOREIGN KEY (`reviewer_id`) REFERENCES `participants` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `response_maps`
--
LOCK TABLES `response_maps` WRITE;
/*!40000 ALTER TABLE `response_maps` DISABLE KEYS */;
/*!40000 ALTER TABLE `response_maps` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `responses`
--
DROP TABLE IF EXISTS `responses`;
CREATE TABLE `responses` (
`id` int(11) NOT NULL auto_increment,
`map_id` int(11) NOT NULL,
`additional_comment` varchar(255) default NULL,
`created_at` datetime default NULL,
`updated_at` datetime default NULL,
PRIMARY KEY (`id`),
KEY `fk_response_response_map` (`map_id`),
CONSTRAINT `fk_response_response_map` FOREIGN KEY (`map_id`) REFERENCES `response_maps` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `responses`
--
LOCK TABLES `responses` WRITE;
/*!40000 ALTER TABLE `responses` DISABLE KEYS */;
/*!40000 ALTER TABLE `responses` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `resubmission_times`
--
DROP TABLE IF EXISTS `resubmission_times`;
CREATE TABLE `resubmission_times` (
`id` int(11) NOT NULL auto_increment,
`participant_id` int(11) default NULL,
`resubmitted_at` datetime default NULL,
PRIMARY KEY (`id`),
KEY `fk_resubmission_times_participants` (`participant_id`),
CONSTRAINT `fk_resubmission_times_participants` FOREIGN KEY (`participant_id`) REFERENCES `participants` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `resubmission_times`
--
LOCK TABLES `resubmission_times` WRITE;
/*!40000 ALTER TABLE `resubmission_times` DISABLE KEYS */;
/*!40000 ALTER TABLE `resubmission_times` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `review_strategies`
--
DROP TABLE IF EXISTS `review_strategies`;
CREATE TABLE `review_strategies` (
`id` int(11) NOT NULL auto_increment,
`name` varchar(255) default NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--