2000-12-30 11:55:52 +00:00
|
|
|
|
|
|
|
CREATE TABLE affiliates (
|
|
|
|
id int(11) DEFAULT '0' NOT NULL auto_increment,
|
|
|
|
link varchar(255) DEFAULT '' NOT NULL,
|
|
|
|
name varchar(255) DEFAULT '' NOT NULL,
|
|
|
|
contact varchar(255) DEFAULT '' NOT NULL,
|
|
|
|
UNIQUE link (link),
|
|
|
|
PRIMARY KEY (id)
|
|
|
|
);
|
|
|
|
|
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-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)
|
|
|
|
);
|
|
|
|
|
2000-10-24 11:53:41 +00:00
|
|
|
CREATE TABLE bans (
|
|
|
|
id tinyint(4) DEFAULT '0' NOT NULL auto_increment,
|
|
|
|
mask varchar(255) DEFAULT '' NOT NULL,
|
|
|
|
type tinyint(2) DEFAULT '0' NOT NULL,
|
|
|
|
reason text NOT NULL,
|
|
|
|
timestamp int(11),
|
|
|
|
UNIQUE mask (mask),
|
|
|
|
PRIMARY KEY (id)
|
|
|
|
);
|
|
|
|
|
2000-12-30 11:55:52 +00:00
|
|
|
|
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)
|
|
|
|
);
|
|
|
|
|
|
|
|
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,
|
2001-01-23 12:03:15 +00:00
|
|
|
link varchar(16) DEFAULT '' 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-02-27 07:45:03 +00:00
|
|
|
INDEX lid_link (lid, link),
|
2000-10-24 11:53:41 +00:00
|
|
|
PRIMARY KEY (cid)
|
|
|
|
);
|
|
|
|
|
2000-12-30 11:55:52 +00:00
|
|
|
CREATE TABLE crons (
|
|
|
|
module varchar(64) DEFAULT '' NOT NULL,
|
2000-12-16 14:32:21 +00:00
|
|
|
scheduled int(11),
|
|
|
|
timestamp int(11),
|
|
|
|
PRIMARY KEY (module)
|
|
|
|
);
|
|
|
|
|
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-01-03 21:23:58 +00:00
|
|
|
CREATE TABLE drupals (
|
|
|
|
id int(11) DEFAULT '0' NOT NULL auto_increment,
|
|
|
|
link varchar(255) DEFAULT '' NOT NULL,
|
|
|
|
name varchar(255) DEFAULT '' NOT NULL,
|
|
|
|
contact varchar(255) DEFAULT '' NOT NULL,
|
|
|
|
UNIQUE link (link),
|
|
|
|
PRIMARY KEY (id)
|
|
|
|
);
|
|
|
|
|
2001-03-03 15:31:51 +00:00
|
|
|
CREATE TABLE faqs (
|
|
|
|
id int(11) DEFAULT '0' NOT NULL auto_increment,
|
|
|
|
question varchar(255) DEFAULT '' NOT NULL,
|
|
|
|
answer text NOT NULL,
|
|
|
|
weight tinyint(3) DEFAULT '0' NOT NULL,
|
|
|
|
UNIQUE question (question),
|
|
|
|
PRIMARY KEY (id)
|
|
|
|
);
|
|
|
|
|
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)
|
|
|
|
);
|
|
|
|
|
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-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-02-17 12:59:24 +00:00
|
|
|
string TEXT DEFAULT '' NOT NULL,
|
|
|
|
da TEXT DEFAULT '' NOT NULL,
|
|
|
|
fi TEXT DEFAULT '' NOT NULL,
|
|
|
|
fr TEXT DEFAULT '' NOT NULL,
|
|
|
|
en TEXT DEFAULT '' NOT NULL,
|
|
|
|
es TEXT DEFAULT '' NOT NULL,
|
|
|
|
nl TEXT DEFAULT '' NOT NULL,
|
|
|
|
no TEXT DEFAULT '' NOT NULL,
|
|
|
|
sw TEXT DEFAULT '' NOT NULL,
|
2001-02-12 20:40:43 +00:00
|
|
|
PRIMARY KEY (id)
|
|
|
|
);
|
|
|
|
|
2000-12-30 11:55:52 +00:00
|
|
|
CREATE TABLE modules (
|
|
|
|
name varchar(64) DEFAULT '' NOT NULL,
|
|
|
|
PRIMARY KEY (name)
|
|
|
|
);
|
|
|
|
|
2001-01-23 22:14:29 +00:00
|
|
|
CREATE TABLE sections (
|
|
|
|
name varchar(64) DEFAULT '' NOT NULL,
|
|
|
|
post tinyint(3) DEFAULT '0' NOT NULL,
|
|
|
|
dump tinyint(3) DEFAULT '0' NOT NULL,
|
|
|
|
timout tinyint(3) DEFAULT '0' NOT NULL,
|
|
|
|
status tinyint(2) DEFAULT '0' NOT NULL,
|
|
|
|
PRIMARY KEY (name)
|
|
|
|
);
|
|
|
|
|
2000-10-24 11:53:41 +00:00
|
|
|
CREATE TABLE stories (
|
|
|
|
id int(11) DEFAULT '0' NOT NULL auto_increment,
|
|
|
|
author int(6) DEFAULT '0' NOT NULL,
|
|
|
|
subject varchar(255) DEFAULT '' NOT NULL,
|
|
|
|
abstract text NOT NULL,
|
|
|
|
updates text NOT NULL,
|
|
|
|
article text NOT NULL,
|
2001-01-21 19:41:11 +00:00
|
|
|
section varchar(64) DEFAULT '' NOT NULL,
|
2000-10-24 11:53:41 +00:00
|
|
|
timestamp int(11) DEFAULT '0' NOT NULL,
|
|
|
|
score int(11) DEFAULT '0' NOT NULL,
|
|
|
|
votes int(11) DEFAULT '0' NOT NULL,
|
|
|
|
status int(4) DEFAULT '1',
|
2001-01-07 19:21:28 +00:00
|
|
|
UNIQUE subject (subject),
|
2000-10-24 11:53:41 +00:00
|
|
|
PRIMARY KEY (id)
|
|
|
|
);
|
|
|
|
|
|
|
|
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,
|
|
|
|
stories tinyint(2) DEFAULT '10',
|
2001-01-20 12:20:31 +00:00
|
|
|
mode tinyint(1) DEFAULT '0',
|
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),
|
2001-02-18 15:14:56 +00:00
|
|
|
access varchar(255) DEFAULT '' NOT NULL,
|
2000-10-24 11:53:41 +00:00
|
|
|
status tinyint(4) DEFAULT '0' NOT NULL,
|
|
|
|
history text NOT NULL,
|
|
|
|
hash varchar(12) DEFAULT '' NOT NULL,
|
2001-02-07 22:01:57 +00:00
|
|
|
rating decimal(8,4) DEFAULT '0' NOT NULL,
|
|
|
|
timezone varchar(8) DEFAULT '0' NOT NULL,
|
2001-02-17 12:59:24 +00:00
|
|
|
language varchar(2) DEFAULT '0' NOT NULL,
|
2000-10-24 11:53:41 +00:00
|
|
|
PRIMARY KEY (id)
|
|
|
|
);
|
|
|
|
|
|
|
|
CREATE TABLE watchdog (
|
|
|
|
id int(5) DEFAULT '0' NOT NULL auto_increment,
|
|
|
|
level int(2) DEFAULT '0' NOT NULL,
|
|
|
|
timestamp int(11) DEFAULT '0' NOT NULL,
|
|
|
|
user int(6) DEFAULT '0' NOT NULL,
|
|
|
|
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,
|
|
|
|
PRIMARY KEY (id)
|
|
|
|
);
|
2000-12-16 14:32:21 +00:00
|
|
|
|