#
# mSQL Dump  (requires mSQL 2.0 Beta 5 or newer)
#
# Host: localhost    Database: SPSIntranet
#--------------------------------------------------------


#
# Table structure for table 'Sections'
#
CREATE TABLE Sections (
  sid INT NOT NULL,
  name TEXT(32) NOT NULL,
  homepage INT NOT NULL,
  colour CHAR(8),
  parent INT NOT NULL,
  readgid INT NOT NULL,
  writegid INT NOT NULL
) \g

CREATE SEQUENCE ON Sections STEP 1 VALUE 5 \g


#
# Dumping data for table 'Sections'
#

INSERT INTO Sections  VALUES (0,'Firefly',0,'FFFFCC',-1,-2,-1)\g

#
# Table structure for table 'Pages'
#
CREATE TABLE Pages (
  page INT NOT NULL,
  sid INT,
  title TEXT(128) NOT NULL,
  linktitle TEXT(64),
  defstext TEXT(128),
  parent INT,
  headeronly INT,
  readgid INT,
  writegid INT
) \g

CREATE SEQUENCE ON Pages STEP 1 VALUE 12 \g


#
# Dumping data for table 'Pages'
#

INSERT INTO Pages  VALUES (0,0,'Firefly','Home','',-1,0,-3,-3)\g
INSERT INTO Pages  VALUES (1,0,'Wiki Documentation','Wiki Doc','',-1,1,-3,-3)\g
INSERT INTO Pages  VALUES (3,1,'Test','','',-1,0,-3,-3)\g
INSERT INTO Pages  VALUES (4,2,'Home','','',-1,0,-3,-3)\g
INSERT INTO Pages  VALUES (5,3,'test Home','Home',NULL,-1,1,-3,-3)\g
INSERT INTO Pages  VALUES (6,3,'test Department Members','Staff Members',NULL,-1,1,-3,-3)\g
INSERT INTO Pages  VALUES (7,3,'test Syllabus','Syllabus',NULL,-1,1,-3,-3)\g
INSERT INTO Pages  VALUES (8,3,'test 4th Form Syllabus','4th Form',NULL,7,1,-3,-3)\g
INSERT INTO Pages  VALUES (9,3,'test GCSE Syllabus','GCSE',NULL,7,1,-3,-3)\g
INSERT INTO Pages  VALUES (10,3,'test A Level Syllabus','A Level',NULL,7,1,-3,-3)\g
INSERT INTO Pages  VALUES (11,4,'go away Home','Home',NULL,-1,1,-3,-3)\g

#
# Table structure for table 'PageMakeup'
#
CREATE TABLE PageMakeup (
  page INT NOT NULL,
  position INT NOT NULL,
  type INT NOT NULL,
  cid INT NOT NULL
) \g

CREATE SEQUENCE ON PageMakeup STEP 1 VALUE 24 \g


#
# Dumping data for table 'PageMakeup'
#

INSERT INTO PageMakeup  VALUES (0,0,0,0)\g
INSERT INTO PageMakeup  VALUES (0,1,0,1)\g
INSERT INTO PageMakeup  VALUES (1,2,0,4)\g
INSERT INTO PageMakeup  VALUES (3,4,0,9)\g
INSERT INTO PageMakeup  VALUES (3,3,0,8)\g
INSERT INTO PageMakeup  VALUES (3,5,0,10)\g
INSERT INTO PageMakeup  VALUES (3,6,0,11)\g
INSERT INTO PageMakeup  VALUES (3,7,0,12)\g
INSERT INTO PageMakeup  VALUES (0,8,0,18)\g

#
# Table structure for table 'HTMLComponents'
#
CREATE TABLE HTMLComponents (
  cid INT NOT NULL,
  data TEXT(4096) NOT NULL,
  wiki INT
) \g


#
# Dumping data for table 'HTMLComponents'
#

INSERT INTO HTMLComponents  VALUES (0,'Welcome to Firefly, a new dynamic intranet system!  You can visit its web site at http://firefly.sourceforge.net/, where you can learn more about it, submit a bug report or feature request, download the latest version or get involved in development.

Select a site to connect to:',1)\g
INSERT INTO HTMLComponents  VALUES (1,'<p><a href="/firefly/firefly-pd.jsp?db=SPS">St. Paul\'s School Intranet</a>
<br><a href="/firefly/firefly-pd.jsp?db=CC">Colet Court Intranet</a></p>',NULL)\g
INSERT INTO HTMLComponents  VALUES (4,'<h3>Paragraphs</h3>
<p>To delimit paragraphs, please press return twice, so there is a one
line gap between the end of the old paragraph and the beginning of
the new.
<h3>Word wrap</h3>
<p>Words are automatically wrapped to the window. Please do not press 
return unless you want to create a line break. Although the paragraph
may appear as a long string in the editing window,  it will be
wrapped to the side of the viewer\'s screen. 
<h3>Emphasis</h3>
<p>To make text italic, put two identical inverted commas on each side.
Use the inverted comma key  on the right of the semicolon key, rather
than the other type in the top left of the keyboard.  You need to
type the same inverted comma twice, rather than using double
quotemarks.

<p>     \'\'Italic text\'\'            -- OK<br>
      "Italic text"             -- WRONG<br>
     ``Italic text``            -- WRONG - wrong type of inverted comma

<p>To put text on multiple lines in italic, you must emphasise every
line individually.


<p>  \'\'Italic text line 1\'\'<br>
  \'\'Italic text line 2\'\'<br>
  \'\'Italic text line 3\'\'     -- OK

<P>  \'\'Italic text line 1<br>
    Italic text line 2<br>
    Italic text line 3\'\'     -- WRONG


<p>To make text bold, follow the same procedure as for italic, but use
three inverted commas rather than two each side of the text. To put
text on multiple lines in bold, you must emphasise every line
individually, as for italic text.

<h3>Links</h3>
<p>At the moment, you must precede every link with  " http:// ". Here is
an example:

<p>    http://www.stpaulsschool.org.uk  -- OK<br>
    www.stpaulsschool.org.uk         -- WRONG

<p>We are working on making it possible to omit " http:// ", but for the
moment, we recommend you use it.


<h3>Bullets</h3>
<p>To make an unordered list, simply prefix each item with a * sign. 
For example:

<p>*This is the first point
<br>*This is the second
<br>*And this is the third',NULL)\g
INSERT INTO HTMLComponents  VALUES (5,'Hello!

----

This is a nice test.  Hello, hello.  Link to http://www.yahoo.com/',1)\g
INSERT INTO HTMLComponents  VALUES (6,'<h1>TEST</h1>',NULL)\g
INSERT INTO HTMLComponents  VALUES (8,'I am a paragraph.

I am another one.

We\'re just very short paragraphs.

*Bullet
*points
*work
*like
*this

----',1)\g
INSERT INTO HTMLComponents  VALUES (9,'\'\'italic\'\'
\'\'\'bold\'\'\'',1)\g
INSERT INTO HTMLComponents  VALUES (10,'Have a look at this website:

http://www.lastminute.com',1)\g
INSERT INTO HTMLComponents  VALUES (11,'mailto:simon@haywired.org',1)\g
INSERT INTO HTMLComponents  VALUES (12,'ISBN: 0-05-003547-9',1)\g
INSERT INTO HTMLComponents  VALUES (18,'<p><center><a href="http://www.chestertonsociety.co.uk/">',NULL)\g

#
# Table structure for table 'Groups'
#
CREATE TABLE Groups (
  gid INT NOT NULL,
  name TEXT(32),
  hidden INT
) \g

CREATE SEQUENCE ON Groups STEP 1 VALUE 0 \g


#
# Dumping data for table 'Groups'
#


#
# Table structure for table 'GroupMaps'
#
CREATE TABLE GroupMaps (
  gid INT NOT NULL,
  user TEXT(32) NOT NULL
) \g


#
# Dumping data for table 'GroupMaps'
#


