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


#
# 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 62 \g


#
# Dumping data for table 'Sections'
#

INSERT INTO Sections  VALUES (0,'Home',0,'',-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 441 \g


#
# Dumping data for table 'Pages'
#

INSERT INTO Pages  VALUES (0,0,'St. Pauls School Intranet','Home','',-1,0,-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 534 \g


#
# Dumping data for table 'PageMakeup'
#

INSERT INTO PageMakeup  VALUES (0,0,0,0)\g


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


#
# Dumping data for table 'HTMLComponents'
#

INSERT INTO HTMLComponents  VALUES (0,'<p><center><h3>You are reminded that the schools <a href="/firefly/firefly-pd.jsp?db=CC&page=15">ICT Access Policy</a> governs all use of the schools computers.</h3></center>

<p>The Internet link suggests a variety of search engines that may be of use in searching the Internet, and provides a link to the <a href="http://lily/spswebsite250999/index.htm">school\'s web site</a>.

<p>The other links provide access to the <b>Academic</b>, <b>Sporting</b>, <b>Careers</b>, and <b>other extra curricular</b> information.

<p>If you experience any difficulties in the use of the system, please talk to a member of staff. Further information is available from the IT Support staff on extension 407.</p>',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 1 \g


#
# Dumping data for table 'Groups'
#

INSERT INTO Groups  VALUES (-1,'Administrators',NULL)\g

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


#
# Dumping data for table 'GroupMaps'
#

INSERT INTO GroupMaps  VALUES (-1,'admin')\g

#
# Table structure for table 'ImageComponents'
#
CREATE TABLE ImageComponents (
  cid INT NOT NULL,
  name CHAR(1024),
  sid INT NOT NULL
) \g


#
# Dumping data for table 'ImageComponents'
#

INSERT INTO ImageComponents  VALUES (532,'.gif',0)\g

#
# Table structure for table 'Tests'
#
CREATE TABLE Tests (
  tid INT NOT NULL,
  sid INT NOT NULL,
  title TEXT(128) NOT NULL,
  ttime INT NOT NULL
) \g


#
# Dumping data for table 'Tests'
#

INSERT INTO Tests  VALUES (0,0,'Test',1800)\g

#
# Table structure for table 'Questions'
#
CREATE TABLE Questions (
  qid INT NOT NULL,
  tid INT NOT NULL,
  ddesc TEXT(1024) NOT NULL,
  answer INT NOT NULL,
  explanation INT NOT NULL
) \g


#
# Dumping data for table 'Questions'
#

INSERT INTO Questions  VALUES (800,0,'Question 1',0,850)\g
INSERT INTO Questions  VALUES (801,0,'Question 2',1,851)\g
INSERT INTO Questions  VALUES (802,0,'Question 3',2,852)\g

#
# Table structure for table 'Answers'
#
CREATE TABLE Answers (
  aid INT NOT NULL,
  qid INT NOT NULL,
  ddesc TEXT(1024) NOT NULL
) \g


#
# Dumping data for table 'Answers'
#

INSERT INTO Answers  VALUES (0,800,'A1')\g
INSERT INTO Answers  VALUES (1,801,'A2')\g
INSERT INTO Answers  VALUES (2,802,'A3')\g
INSERT INTO Answers  VALUES (3,800,'A10')\g
INSERT INTO Answers  VALUES (4,801,'A20')\g
INSERT INTO Answers  VALUES (5,802,'A30')\g
INSERT INTO Answers  VALUES (6,800,'A100')\g
INSERT INTO Answers  VALUES (7,801,'A200')\g
INSERT INTO Answers  VALUES (8,802,'A300')\g

