2004-10-14 22:20:03 +00:00
|
|
|
|
|
|
|
CREATE TABLE kwote (
|
|
|
|
id INTEGER AUTO_INCREMENT,
|
|
|
|
submit_dt DATETIME,
|
|
|
|
content TEXT,
|
|
|
|
rating INT,
|
|
|
|
ip_address VARCHAR(15),
|
|
|
|
PRIMARY KEY(id)
|
|
|
|
);
|
|
|
|
|
|
|
|
CREATE TABLE kwote_backup (
|
|
|
|
id INTEGER AUTO_INCREMENT,
|
|
|
|
submit_dt DATETIME,
|
|
|
|
content TEXT,
|
|
|
|
rating INT,
|
|
|
|
ip_address VARCHAR(15),
|
|
|
|
PRIMARY KEY(id)
|
|
|
|
);
|
|
|
|
|
|
|
|
CREATE TABLE vote (
|
|
|
|
id INT AUTO_INCREMENT,
|
|
|
|
kwote_id INT,
|
2006-10-23 22:14:15 +00:00
|
|
|
vote INT,
|
|
|
|
ip_address VARCHAR(15),
|
2004-10-14 22:20:03 +00:00
|
|
|
vote_dt DATETIME,
|
2006-10-23 22:14:15 +00:00
|
|
|
PRIMARY KEY(id)
|
|
|
|
);
|
|
|
|
|
|
|
|
CREATE TABLE captchas (
|
|
|
|
id INT AUTO_INCREMENT,
|
|
|
|
phrase VARCHAR(255),
|
|
|
|
PRIMARY KEY(id)
|
2004-10-14 22:20:03 +00:00
|
|
|
);
|
|
|
|
|