创建知识表
create table sp_knowledge(
id int(11) not null auto_increment,
title varchar(50) not null comment '标题',
thumb varchar(255) default null comment '缩略图',
picture varchar(255) default null comment '图片',
description varchar(255) default null comment '描述',
content text comment '内容',
author varchar(40) not null comment '作者',
addtime int(11) default null comment '添加时间',
primary key (id)
) engine=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
创建邮件表
create table sp_email(
id int(11) not null auto_increment,
from_id int(11) not null comment '发送者id',
to_id int(11) not null comment '接收者id',
title varchar(50) not null comment '标题',
file varchar(255) default null comment '文件',
hasfile smallint(1) default null comment '是否有附件',
filename varchar(255) default null comment '文件原始名',
content text comment '内容',
addtime int(11) default null comment '添加时间',
isread smallint(1) default '0' comment '是否已读',
primary key (id)
) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;