2001-04-16 13:39:40 +00:00
|
|
|
# MySQL dump 7.1
|
|
|
|
#
|
|
|
|
# Host: localhost Database: drop
|
|
|
|
#--------------------------------------------------------
|
2001-04-16 18:21:22 +00:00
|
|
|
# Server version 3.22.32
|
2001-04-16 13:39:40 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Table structure for table 'access'
|
|
|
|
#
|
2001-04-06 14:14:16 +00:00
|
|
|
DROP TABLE IF EXISTS access;
|
|
|
|
CREATE TABLE access (
|
|
|
|
id tinyint(10) DEFAULT '0' NOT NULL auto_increment,
|
|
|
|
mask varchar(255) DEFAULT '' NOT NULL,
|
|
|
|
type varchar(16) DEFAULT '' NOT NULL,
|
|
|
|
reason text NOT NULL,
|
|
|
|
UNIQUE mask (mask),
|
|
|
|
PRIMARY KEY (id)
|
|
|
|
);
|
2000-12-30 11:55:52 +00:00
|
|
|
|
2001-04-16 13:39:40 +00:00
|
|
|
#
|
|
|
|
# Table structure for table 'blocks'
|
|
|
|
#
|
2001-04-06 14:14:16 +00:00
|
|
|
DROP TABLE IF EXISTS blocks;
|
2001-01-13 16:33:19 +00:00
|
|
|
CREATE TABLE blocks (
|
|
|
|
name varchar(64) DEFAULT '' NOT NULL,
|
|
|
|
module varchar(64) DEFAULT '' NOT NULL,
|
|
|
|
offset tinyint(2) DEFAULT '0' NOT NULL,
|
2001-01-23 22:14:29 +00:00
|
|
|
status tinyint(2) DEFAULT '0' NOT NULL,
|
2001-01-13 16:33:19 +00:00
|
|
|
weight tinyint(1) DEFAULT '0' NOT NULL,
|
|
|
|
region tinyint(1) DEFAULT '0' NOT NULL,
|
2001-02-04 22:09:38 +00:00
|
|
|
remove tinyint(1) DEFAULT '0' NOT NULL,
|
2001-01-13 16:33:19 +00:00
|
|
|
PRIMARY KEY (name)
|
|
|
|
);
|
|
|
|
|
2001-04-16 13:39:40 +00:00
|
|
|
#
|
|
|
|
# Table structure for table 'book'
|
|
|
|
#
|
2001-04-06 14:14:16 +00:00
|
|
|
DROP TABLE IF EXISTS book;
|
|
|
|
CREATE TABLE book (
|
|
|
|
lid int(10) unsigned DEFAULT '0' NOT NULL auto_increment,
|
|
|
|
nid int(10) unsigned DEFAULT '0' NOT NULL,
|
|
|
|
body text NOT NULL,
|
|
|
|
section int(10) DEFAULT '0' NOT NULL,
|
|
|
|
parent int(10) DEFAULT '0' NOT NULL,
|
|
|
|
weight tinyint(3) DEFAULT '0' NOT NULL,
|
|
|
|
PRIMARY KEY (lid)
|
|
|
|
);
|
|
|
|
|
2001-04-16 13:39:40 +00:00
|
|
|
#
|
|
|
|
# Table structure for table 'boxes'
|
|
|
|
#
|
2001-04-06 14:14:16 +00:00
|
|
|
DROP TABLE IF EXISTS boxes;
|
2001-01-03 21:23:58 +00:00
|
|
|
CREATE TABLE boxes (
|
|
|
|
id tinyint(4) DEFAULT '0' NOT NULL auto_increment,
|
|
|
|
subject varchar(64) DEFAULT '' NOT NULL,
|
|
|
|
content text,
|
|
|
|
info varchar(128) DEFAULT '' NOT NULL,
|
|
|
|
link varchar(128) DEFAULT '' NOT NULL,
|
|
|
|
type tinyint(2) DEFAULT '0' NOT NULL,
|
|
|
|
UNIQUE subject (subject),
|
|
|
|
UNIQUE info (info),
|
|
|
|
PRIMARY KEY (id)
|
|
|
|
);
|
|
|
|
|
2001-04-16 13:39:40 +00:00
|
|
|
#
|
|
|
|
# Table structure for table 'category'
|
|
|
|
#
|
|
|
|
DROP TABLE IF EXISTS category;
|
|
|
|
CREATE TABLE category (
|
|
|
|
cid int(10) unsigned DEFAULT '0' NOT NULL auto_increment,
|
|
|
|
name varchar(32) DEFAULT '' NOT NULL,
|
|
|
|
type varchar(16) DEFAULT '' NOT NULL,
|
|
|
|
post int(3) DEFAULT '0' NOT NULL,
|
|
|
|
dump int(3) DEFAULT '0' NOT NULL,
|
|
|
|
expire int(3) DEFAULT '0' NOT NULL,
|
|
|
|
comment int(2) unsigned DEFAULT '0' NOT NULL,
|
|
|
|
submission int(2) unsigned DEFAULT '0' NOT NULL,
|
2001-05-16 20:54:37 +00:00
|
|
|
promote int(2) unsigned DEFAULT '0' NOT NULL,
|
2001-04-16 13:39:40 +00:00
|
|
|
UNIQUE name (name),
|
|
|
|
PRIMARY KEY (cid)
|
|
|
|
);
|
|
|
|
|
|
|
|
#
|
|
|
|
# Table structure for table 'channel'
|
|
|
|
#
|
2001-04-06 14:14:16 +00:00
|
|
|
DROP TABLE IF EXISTS channel;
|
2000-10-24 11:53:41 +00:00
|
|
|
CREATE TABLE channel (
|
|
|
|
id int(11) DEFAULT '0' NOT NULL auto_increment,
|
|
|
|
site varchar(255) DEFAULT '' NOT NULL,
|
|
|
|
file varchar(255) DEFAULT '' NOT NULL,
|
|
|
|
url varchar(255) DEFAULT '' NOT NULL,
|
|
|
|
contact varchar(255) DEFAULT '',
|
|
|
|
timestamp int(11),
|
|
|
|
UNIQUE site (site),
|
|
|
|
UNIQUE file (file),
|
|
|
|
UNIQUE url (url),
|
|
|
|
PRIMARY KEY (id)
|
|
|
|
);
|
|
|
|
|
2001-04-16 13:39:40 +00:00
|
|
|
#
|
|
|
|
# Table structure for table 'comments'
|
|
|
|
#
|
2001-04-06 14:14:16 +00:00
|
|
|
DROP TABLE IF EXISTS comments;
|
2000-10-24 11:53:41 +00:00
|
|
|
CREATE TABLE comments (
|
|
|
|
cid int(6) DEFAULT '0' NOT NULL auto_increment,
|
|
|
|
pid int(6) DEFAULT '0' NOT NULL,
|
2001-01-20 12:20:31 +00:00
|
|
|
lid int(6) DEFAULT '0' NOT NULL,
|
2000-10-24 11:53:41 +00:00
|
|
|
author int(6) DEFAULT '0' NOT NULL,
|
|
|
|
subject varchar(64) DEFAULT '' NOT NULL,
|
|
|
|
comment text NOT NULL,
|
|
|
|
hostname varchar(128) DEFAULT '' NOT NULL,
|
|
|
|
timestamp int(11) DEFAULT '0' NOT NULL,
|
|
|
|
score int(6) DEFAULT '0' NOT NULL,
|
|
|
|
votes int(6) DEFAULT '0' NOT NULL,
|
2001-04-06 14:14:16 +00:00
|
|
|
link varchar(16) DEFAULT '' NOT NULL,
|
2001-05-16 20:54:37 +00:00
|
|
|
users text NOT NULL,
|
2001-04-16 13:39:40 +00:00
|
|
|
PRIMARY KEY (cid),
|
|
|
|
KEY lid (lid)
|
2000-10-24 11:53:41 +00:00
|
|
|
);
|
|
|
|
|
2001-05-16 20:54:37 +00:00
|
|
|
#
|
|
|
|
# Table structure for table 'cvs'
|
|
|
|
#
|
|
|
|
DROP TABLE IF EXISTS cvs;
|
|
|
|
CREATE TABLE cvs (
|
|
|
|
user varchar(32) DEFAULT '' NOT NULL,
|
|
|
|
files text,
|
|
|
|
status int(2) DEFAULT '0' NOT NULL,
|
|
|
|
message text,
|
|
|
|
timestamp int(11) DEFAULT '0' NOT NULL
|
|
|
|
);
|
|
|
|
|
2001-04-16 13:39:40 +00:00
|
|
|
#
|
|
|
|
# Table structure for table 'diaries'
|
|
|
|
#
|
2001-04-06 14:14:16 +00:00
|
|
|
DROP TABLE IF EXISTS diaries;
|
2000-10-24 11:53:41 +00:00
|
|
|
CREATE TABLE diaries (
|
|
|
|
id int(5) DEFAULT '0' NOT NULL auto_increment,
|
|
|
|
author int(6) DEFAULT '0' NOT NULL,
|
|
|
|
text text,
|
|
|
|
timestamp int(11) DEFAULT '0' NOT NULL,
|
|
|
|
PRIMARY KEY (id)
|
|
|
|
);
|
|
|
|
|
2001-05-16 20:54:37 +00:00
|
|
|
#
|
|
|
|
# Table structure for table 'forum'
|
|
|
|
#
|
|
|
|
DROP TABLE IF EXISTS forum;
|
|
|
|
CREATE TABLE forum (
|
|
|
|
lid int(10) unsigned DEFAULT '0' NOT NULL auto_increment,
|
|
|
|
nid int(10) unsigned DEFAULT '0' NOT NULL,
|
|
|
|
body text NOT NULL,
|
|
|
|
PRIMARY KEY (lid)
|
|
|
|
);
|
|
|
|
|
2001-04-16 13:39:40 +00:00
|
|
|
#
|
|
|
|
# Table structure for table 'headlines'
|
|
|
|
#
|
2001-04-06 14:14:16 +00:00
|
|
|
DROP TABLE IF EXISTS headlines;
|
2000-10-24 11:53:41 +00:00
|
|
|
CREATE TABLE headlines (
|
|
|
|
id int(11) DEFAULT '0' NOT NULL,
|
|
|
|
title varchar(255) DEFAULT '' NOT NULL,
|
|
|
|
link varchar(255) DEFAULT '' NOT NULL,
|
|
|
|
number int(3) DEFAULT '0' NOT NULL,
|
|
|
|
UNIQUE title (title),
|
|
|
|
UNIQUE link (link)
|
|
|
|
);
|
|
|
|
|
2001-04-16 13:39:40 +00:00
|
|
|
#
|
|
|
|
# Table structure for table 'layout'
|
|
|
|
#
|
2001-04-06 14:14:16 +00:00
|
|
|
DROP TABLE IF EXISTS layout;
|
2000-12-30 11:55:52 +00:00
|
|
|
CREATE TABLE layout (
|
|
|
|
user int(11) DEFAULT '0' NOT NULL,
|
2001-01-13 16:33:19 +00:00
|
|
|
block varchar(64) DEFAULT '' NOT NULL
|
2000-12-30 11:55:52 +00:00
|
|
|
);
|
|
|
|
|
2001-04-16 13:39:40 +00:00
|
|
|
#
|
|
|
|
# Table structure for table 'locales'
|
|
|
|
#
|
2001-04-06 14:14:16 +00:00
|
|
|
DROP TABLE IF EXISTS locales;
|
2001-02-12 20:40:43 +00:00
|
|
|
CREATE TABLE locales (
|
|
|
|
id int(11) DEFAULT '0' NOT NULL auto_increment,
|
2001-02-14 09:32:33 +00:00
|
|
|
location varchar(128) DEFAULT '' NOT NULL,
|
2001-04-06 14:14:16 +00:00
|
|
|
string text NOT NULL,
|
|
|
|
da text NOT NULL,
|
|
|
|
fi text NOT NULL,
|
|
|
|
fr text NOT NULL,
|
|
|
|
en text NOT NULL,
|
|
|
|
es text NOT NULL,
|
|
|
|
nl text NOT NULL,
|
|
|
|
no text NOT NULL,
|
|
|
|
sw text NOT NULL,
|
2001-02-12 20:40:43 +00:00
|
|
|
PRIMARY KEY (id)
|
|
|
|
);
|
|
|
|
|
2001-04-16 13:39:40 +00:00
|
|
|
#
|
|
|
|
# Table structure for table 'modules'
|
|
|
|
#
|
2001-04-06 14:14:16 +00:00
|
|
|
DROP TABLE IF EXISTS modules;
|
2000-12-30 11:55:52 +00:00
|
|
|
CREATE TABLE modules (
|
|
|
|
name varchar(64) DEFAULT '' NOT NULL,
|
|
|
|
PRIMARY KEY (name)
|
|
|
|
);
|
|
|
|
|
2001-04-16 13:39:40 +00:00
|
|
|
#
|
|
|
|
# Table structure for table 'node'
|
|
|
|
#
|
2001-04-06 14:14:16 +00:00
|
|
|
DROP TABLE IF EXISTS node;
|
|
|
|
CREATE TABLE node (
|
|
|
|
nid int(10) unsigned DEFAULT '0' NOT NULL auto_increment,
|
2001-05-16 20:54:37 +00:00
|
|
|
lid int(10) DEFAULT '0' NOT NULL,
|
|
|
|
pid int(10) DEFAULT '0' NOT NULL,
|
2001-04-06 14:14:16 +00:00
|
|
|
log text NOT NULL,
|
|
|
|
type varchar(16) DEFAULT '' NOT NULL,
|
|
|
|
title varchar(128) DEFAULT '' NOT NULL,
|
|
|
|
score int(11) DEFAULT '0' NOT NULL,
|
|
|
|
votes int(11) DEFAULT '0' NOT NULL,
|
|
|
|
author int(6) DEFAULT '0' NOT NULL,
|
|
|
|
status int(4) DEFAULT '1' NOT NULL,
|
|
|
|
timestamp int(11) DEFAULT '0' NOT NULL,
|
2001-05-16 20:54:37 +00:00
|
|
|
cid int(10) unsigned DEFAULT '0' NOT NULL,
|
|
|
|
tid int(10) unsigned DEFAULT '0' NOT NULL,
|
|
|
|
comment int(2) DEFAULT '1' NOT NULL,
|
|
|
|
promote int(2) DEFAULT '1' NOT NULL,
|
|
|
|
moderate text NOT NULL,
|
|
|
|
users text NOT NULL,
|
2001-04-06 14:14:16 +00:00
|
|
|
KEY type (lid,type),
|
|
|
|
KEY author (author),
|
|
|
|
KEY title (title,type),
|
2001-05-16 20:54:37 +00:00
|
|
|
PRIMARY KEY (nid),
|
|
|
|
KEY promote (promote),
|
|
|
|
KEY status (status)
|
2001-04-06 14:14:16 +00:00
|
|
|
);
|
|
|
|
|
2001-04-16 13:39:40 +00:00
|
|
|
#
|
|
|
|
# Table structure for table 'page'
|
|
|
|
#
|
2001-04-07 15:02:28 +00:00
|
|
|
DROP TABLE IF EXISTS page;
|
|
|
|
CREATE TABLE page (
|
|
|
|
lid int(10) unsigned DEFAULT '0' NOT NULL auto_increment,
|
|
|
|
nid int(10) unsigned DEFAULT '0' NOT NULL,
|
|
|
|
body text NOT NULL,
|
|
|
|
format tinyint(2) DEFAULT '0' NOT NULL,
|
|
|
|
PRIMARY KEY (lid)
|
|
|
|
);
|
|
|
|
|
2001-05-19 17:41:41 +00:00
|
|
|
#
|
|
|
|
# Table structure for table 'poll'
|
|
|
|
#
|
|
|
|
CREATE TABLE poll (
|
|
|
|
lid int(10) unsigned DEFAULT '0' NOT NULL auto_increment,
|
|
|
|
nid int(10) unsigned DEFAULT '0' NOT NULL,
|
|
|
|
runtime int(10) DEFAULT '0' NOT NULL,
|
|
|
|
voters text NOT NULL,
|
|
|
|
active int(2) unsigned DEFAULT '0' NOT NULL,
|
|
|
|
PRIMARY KEY (lid)
|
|
|
|
);
|
|
|
|
|
|
|
|
#
|
|
|
|
# Table structure for table 'poll_choices'
|
|
|
|
#
|
|
|
|
CREATE TABLE poll_choices (
|
|
|
|
chid int(10) unsigned DEFAULT '0' NOT NULL auto_increment,
|
|
|
|
nid int(10) unsigned DEFAULT '0' NOT NULL,
|
|
|
|
chtext varchar(128) DEFAULT '' NOT NULL,
|
|
|
|
chvotes int(6) DEFAULT '0' NOT NULL,
|
|
|
|
chorder int(2) DEFAULT '0' NOT NULL,
|
|
|
|
PRIMARY KEY (chid)
|
|
|
|
);
|
|
|
|
|
2001-04-16 13:39:40 +00:00
|
|
|
#
|
|
|
|
# Table structure for table 'rating'
|
|
|
|
#
|
|
|
|
DROP TABLE IF EXISTS rating;
|
|
|
|
CREATE TABLE rating (
|
|
|
|
user int(6) DEFAULT '0' NOT NULL,
|
|
|
|
new int(6) DEFAULT '0' NOT NULL,
|
|
|
|
old int(6) DEFAULT '0' NOT NULL,
|
|
|
|
PRIMARY KEY (user)
|
2001-01-23 22:14:29 +00:00
|
|
|
);
|
|
|
|
|
2001-04-16 13:39:40 +00:00
|
|
|
#
|
|
|
|
# Table structure for table 'story'
|
|
|
|
#
|
2001-04-06 14:14:16 +00:00
|
|
|
DROP TABLE IF EXISTS story;
|
|
|
|
CREATE TABLE story (
|
|
|
|
lid int(10) unsigned DEFAULT '0' NOT NULL auto_increment,
|
|
|
|
nid int(10) unsigned DEFAULT '0' NOT NULL,
|
2000-10-24 11:53:41 +00:00
|
|
|
abstract text NOT NULL,
|
2001-04-06 14:14:16 +00:00
|
|
|
body text NOT NULL,
|
|
|
|
PRIMARY KEY (lid)
|
2000-10-24 11:53:41 +00:00
|
|
|
);
|
|
|
|
|
2001-05-16 20:54:37 +00:00
|
|
|
#
|
|
|
|
# Table structure for table 'testac'
|
|
|
|
#
|
|
|
|
DROP TABLE IF EXISTS testac;
|
|
|
|
CREATE TABLE testac (
|
|
|
|
object_id int(11),
|
|
|
|
object_title varchar(64)
|
|
|
|
);
|
|
|
|
|
|
|
|
#
|
|
|
|
# Table structure for table 'testad'
|
|
|
|
#
|
|
|
|
DROP TABLE IF EXISTS testad;
|
|
|
|
CREATE TABLE testad (
|
|
|
|
object_id int(11),
|
|
|
|
object_title varchar(64)
|
|
|
|
);
|
|
|
|
|
|
|
|
#
|
|
|
|
# Table structure for table 'testae'
|
|
|
|
#
|
|
|
|
DROP TABLE IF EXISTS testae;
|
|
|
|
CREATE TABLE testae (
|
|
|
|
object_id int(11),
|
|
|
|
object_title varchar(64)
|
|
|
|
);
|
|
|
|
|
2001-04-16 13:39:40 +00:00
|
|
|
#
|
|
|
|
# Table structure for table 'topic'
|
|
|
|
#
|
|
|
|
DROP TABLE IF EXISTS topic;
|
|
|
|
CREATE TABLE topic (
|
|
|
|
tid int(10) unsigned DEFAULT '0' NOT NULL auto_increment,
|
|
|
|
pid int(10) unsigned DEFAULT '0' NOT NULL,
|
|
|
|
name varchar(32) DEFAULT '' NOT NULL,
|
2001-05-16 20:54:37 +00:00
|
|
|
moderate text NOT NULL,
|
2001-04-16 13:39:40 +00:00
|
|
|
UNIQUE name (name),
|
|
|
|
PRIMARY KEY (tid)
|
|
|
|
);
|
|
|
|
|
|
|
|
#
|
|
|
|
# Table structure for table 'users'
|
|
|
|
#
|
2001-04-06 14:14:16 +00:00
|
|
|
DROP TABLE IF EXISTS users;
|
2000-10-24 11:53:41 +00:00
|
|
|
CREATE TABLE users (
|
|
|
|
id int(10) unsigned DEFAULT '0' NOT NULL auto_increment,
|
|
|
|
name varchar(60) DEFAULT '' NOT NULL,
|
|
|
|
userid varchar(15) DEFAULT '' NOT NULL,
|
|
|
|
passwd varchar(20) DEFAULT '' NOT NULL,
|
|
|
|
real_email varchar(60) DEFAULT '' NOT NULL,
|
|
|
|
fake_email varchar(60) DEFAULT '' NOT NULL,
|
|
|
|
url varchar(100) DEFAULT '' NOT NULL,
|
2001-04-06 14:14:16 +00:00
|
|
|
nodes tinyint(2) DEFAULT '10',
|
|
|
|
mode tinyint(1) DEFAULT '0' NOT NULL,
|
2000-10-24 11:53:41 +00:00
|
|
|
sort tinyint(1) DEFAULT '0',
|
|
|
|
threshold tinyint(1) DEFAULT '0',
|
|
|
|
bio tinytext NOT NULL,
|
|
|
|
theme varchar(255) DEFAULT '' NOT NULL,
|
|
|
|
signature varchar(255) DEFAULT '' NOT NULL,
|
|
|
|
last_access int(10) unsigned,
|
|
|
|
last_host varchar(255),
|
|
|
|
status tinyint(4) DEFAULT '0' NOT NULL,
|
|
|
|
hash varchar(12) DEFAULT '' NOT NULL,
|
2001-04-06 14:14:16 +00:00
|
|
|
timezone varchar(8),
|
2001-04-07 20:00:21 +00:00
|
|
|
rating decimal(8,2),
|
2001-04-06 14:14:16 +00:00
|
|
|
language char(2) DEFAULT '' NOT NULL,
|
|
|
|
access varchar(255) DEFAULT '' NOT NULL,
|
2000-10-24 11:53:41 +00:00
|
|
|
PRIMARY KEY (id)
|
|
|
|
);
|
|
|
|
|
2001-04-16 13:39:40 +00:00
|
|
|
#
|
|
|
|
# Table structure for table 'variable'
|
|
|
|
#
|
2001-04-06 14:14:16 +00:00
|
|
|
DROP TABLE IF EXISTS variable;
|
|
|
|
CREATE TABLE variable (
|
|
|
|
name varchar(32) DEFAULT '' NOT NULL,
|
2001-04-16 13:39:40 +00:00
|
|
|
value text NOT NULL,
|
2001-04-06 14:14:16 +00:00
|
|
|
PRIMARY KEY (name)
|
|
|
|
);
|
|
|
|
|
2001-04-16 13:39:40 +00:00
|
|
|
#
|
|
|
|
# Table structure for table 'watchdog'
|
|
|
|
#
|
2001-04-06 14:14:16 +00:00
|
|
|
DROP TABLE IF EXISTS watchdog;
|
2000-10-24 11:53:41 +00:00
|
|
|
CREATE TABLE watchdog (
|
|
|
|
id int(5) DEFAULT '0' NOT NULL auto_increment,
|
|
|
|
user int(6) DEFAULT '0' NOT NULL,
|
2001-04-06 14:14:16 +00:00
|
|
|
type varchar(16) DEFAULT '' NOT NULL,
|
|
|
|
link varchar(16) DEFAULT '' NOT NULL,
|
2000-10-24 11:53:41 +00:00
|
|
|
message varchar(255) DEFAULT '' NOT NULL,
|
2001-02-14 09:32:33 +00:00
|
|
|
location varchar(128) DEFAULT '' NOT NULL,
|
2000-10-24 11:53:41 +00:00
|
|
|
hostname varchar(128) DEFAULT '' NOT NULL,
|
2001-04-06 14:14:16 +00:00
|
|
|
timestamp int(11) DEFAULT '0' NOT NULL,
|
2000-10-24 11:53:41 +00:00
|
|
|
PRIMARY KEY (id)
|
|
|
|
);
|
2001-04-16 13:39:40 +00:00
|
|
|
|