2003-08-31 00:40:42 +00:00
|
|
|
#
|
|
|
|
# Table structure for table `chat`
|
|
|
|
#
|
|
|
|
|
|
|
|
CREATE TABLE prefix_chat (
|
|
|
|
id SERIAL,
|
|
|
|
course INTEGER NOT NULL default '0',
|
|
|
|
name varchar(255) NOT NULL default '',
|
2004-03-27 13:08:21 +00:00
|
|
|
intro text NOT NULL default '',
|
2003-08-31 00:40:42 +00:00
|
|
|
keepdays INTEGER NOT NULL default '0',
|
|
|
|
studentlogs INTEGER NOT NULL default '0',
|
|
|
|
chattime INTEGER NOT NULL default '0',
|
|
|
|
schedule INTEGER NOT NULL default '0',
|
|
|
|
timemodified INTEGER NOT NULL default '0',
|
|
|
|
PRIMARY KEY (id)
|
|
|
|
);
|
|
|
|
# --------------------------------------------------------
|
|
|
|
|
|
|
|
#
|
|
|
|
# Table structure for table `chat_messages`
|
|
|
|
#
|
|
|
|
|
|
|
|
CREATE TABLE prefix_chat_messages (
|
|
|
|
id SERIAL,
|
|
|
|
chatid integer NOT NULL default '0',
|
|
|
|
userid integer NOT NULL default '0',
|
2004-02-24 06:35:57 +00:00
|
|
|
groupid integer NOT NULL default '0',
|
2003-08-31 00:40:42 +00:00
|
|
|
system integer NOT NULL default '0',
|
2004-03-27 13:08:21 +00:00
|
|
|
message text NOT NULL default '',
|
2003-08-31 00:40:42 +00:00
|
|
|
timestamp integer NOT NULL default '0',
|
|
|
|
PRIMARY KEY (id)
|
|
|
|
);
|
|
|
|
# --------------------------------------------------------
|
|
|
|
|
|
|
|
#
|
|
|
|
# Table structure for table `chat_users`
|
|
|
|
#
|
|
|
|
|
|
|
|
CREATE TABLE prefix_chat_users (
|
|
|
|
id SERIAL,
|
|
|
|
chatid integer NOT NULL default '0',
|
|
|
|
userid integer NOT NULL default '0',
|
2004-02-24 06:35:57 +00:00
|
|
|
groupid integer NOT NULL default '0',
|
2003-08-31 00:40:42 +00:00
|
|
|
version varchar(16) NOT NULL default '',
|
|
|
|
ip varchar(15) NOT NULL default '',
|
|
|
|
firstping integer NOT NULL default '0',
|
|
|
|
lastping integer NOT NULL default '0',
|
|
|
|
lastmessageping integer NOT NULL default '0',
|
|
|
|
sid varchar(32) NOT NULL default '',
|
|
|
|
PRIMARY KEY (id)
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
INSERT INTO prefix_log_display VALUES ('chat', 'view', 'chat', 'name');
|
|
|
|
INSERT INTO prefix_log_display VALUES ('chat', 'add', 'chat', 'name');
|
|
|
|
INSERT INTO prefix_log_display VALUES ('chat', 'update', 'chat', 'name');
|
|
|
|
INSERT INTO prefix_log_display VALUES ('chat', 'report', 'chat', 'name');
|