1.数据库脚本
用户表
CREATE TABLE `ybl`.`userinfo`( `id` INT NOT NULL AUTO_INCREMENT, `email` VARCHAR(64) NOT NULL, `identity` INT NOT NULL, `password` VARCHAR(64) NOT NULL, /* varchar数据类型的长度必须指定 */ PRIMARY KEY (`id`) );
注册表
CREATE TABLE `ybl`.`registinfo`( `email` VARCHAR(255) NOT NULL, `password` VARCHAR(255) NOT NULL, `code` VARCHAR(6) NOT NULL, PRIMARY KEY (`email`) );
求职者基本信息表
CREATE TABLE `ybl`.`employee`( `id` INT NOT NULL AUTO_INCREMENT, `name` VARCHAR(40) NOT NULL, `email` VARCHAR(40) NOT NULL, `image` VARCHAR(40), `sex` INT, `birthday` DATE, `tel` VARCHAR(40), `city` VARCHAR(40), `location` VARCHAR(40), `experience` INT, `degree` INT, `expSalary` INT, `expCity` VARCHAR(40), `expJob` VARCHAR(50), `type` INT, PRIMARY KEY (`id`) );
公司信息表
HR审核表
CREATE TABLE `ybl`.`hr`( `id` INT NOT NULL AUTO_INCREMENT, `name` VARCHAR(40) NOT NULL, `companyId` INT COMMENT '外键关联公司id', `tel` VARCHAR(40), `email` VARCHAR(40), `photo` VARCHAR(40), `isPass` INT, PRIMARY KEY (`id`) );
简历表
CREATE TABLE `ybl`.`resume`( `id` INT NOT NULL AUTO_INCREMENT, `epId` INT COMMENT '外键关联求职者', `eduId` INT, `isRegulate` INT, `certificate` INT, `rank` INT, `evaluation` VARCHAR(500), `paper` VARCHAR(500), `isPub` INT, `projectExperience` VARCHAR(500), PRIMARY KEY (`id`) );
教育经历表
CREATE TABLE `ybl`.`education`( `id` INT NOT NULL, `schoolId` INT COMMENT '外键', `degree` VARCHAR(40), `major` VARCHAR(40), `startTime` DATE, `endTime` DATE, PRIMARY KEY (`id`) );
学校表
CREATE TABLE `ybl`.`school`( `id` INT NOT NULL, `name` VARCHAR(50), `province` VARCHAR(50), `city` VARCHAR(50), `is985or211` INT, PRIMARY KEY (`id`) );
工作经历表
CREATE TABLE `ybl`.`experience`( `id` INT NOT NULL AUTO_INCREMENT, `reId` INT NOT NULL, `companyName` VARCHAR(40), `department` VARCHAR(40), `duty` VARCHAR(40), `startTime` DATE, `endTime` DATE, `description` VARCHAR(500), PRIMARY KEY (`id`) );
职位发布表
CREATE TABLE `ybl`.`reciritment`( `id` INT NOT NULL AUTO_INCREMENT, `caId` INT COMMENT '外键职位编号', `comId` INT COMMENT '外键公司编号', `num` INT, `jobType` INT, `minSalary` INT, `maxSalary` INT, `city` VARCHAR(100), `location` VARCHAR(100), `jobExperience` INT, `degree` INT, `description` VARCHAR(500), `tag` VARCHAR(200), `sendDate` DATE, `isOk` INT, PRIMARY KEY (`id`) );
职位分类信息表
CREATE TABLE `ybl`.`category`( `id` INT NOT NULL AUTO_INCREMENT, `name` VARCHAR(50), `first` VARCHAR(64), `second` VARCHAR(64), PRIMARY KEY (`id`) );
站内信表
CREATE TABLE `ybl`.`message`( `id` INT NOT NULL AUTO_INCREMENT, `sendId` INT, `getId` INT, `title` VARCHAR(40), `context` VARCHAR(40), `isRead` INT, `sendTime` DATE, PRIMARY KEY (`id`) );
收藏表
公司收到简历表
CREATE TABLE `ybl`.`company_get_resume`( `resId` INT NOT NULL AUTO_INCREMENT, `recId` INT, `status` INT, PRIMARY KEY (`resId`) );