VisitorApplication

数据库:FangKeYuYue_XueSheng

数据表ShenQingHeShenPi:

申请和审批结果表,表名ShenQingHeShenPi

字段如下:(字段的命名方式为无首字母大写的拼音(字段id除外))

类型 长度 不是null 注释
id int 32 自增id
xm varchar 30   申请人姓名
xh varchar 14   申请人学号
xq enum(‘昌平校区’, ‘东校区’, ‘西校区’) 0   申请出入的校区(昌平校区/东校区或西校区)
xy varchar 50   申请人学院
jtfs enum(‘步行’, ‘开车’) 0   交通方式(步行或开车)
cp varchar 20     车牌(若jtfs为开车,则此项请勿为空
jsrdh varchar 25     驾驶人电话(若jtfs 为开车,则此项请勿为空
jsrss enum(‘1’, ‘2’, ‘3’, ‘4’, ‘5’)       驾驶人是1~5位访客中的谁(驾驶人可以是申请学生自己,但是这样的话驾驶人将会同样被视为“访客”,占据一位访客名额)(若jiaotongfangshi为开车,则此项请勿为空
fk1xm varchar 30   访客1姓名
fk1sfz varchar 20   访客1身份证
fk2xm varchar 30     访客2姓名(若jsrss是2,则此项请勿为空
fk2sfz varchar 20     访客2身份证(若jsrss是2,则此项请勿为空
fk3xm varchar 30     访客3姓名(若jsrss是3,则此项请勿为空
fk3sfz varchar 20     访客3身份证(若jsrss是3,则此项请勿为空
fk4xm varchar 30     访客4姓名(若jsrss是4,则此项请勿为空
fk4sfz varchar 20     访客4身份证(若jsrss是4,则此项请勿为空
fk5xm varchar 30     访客5姓名(若jsrss是5,则此项请勿为空
fk5sfz varchar 20     访客5身份证(若jsrss是5,则此项请勿为空
jxrq date 0   进校日期(精确到天)
jxsy varchar 255   进校事由
shr varchar 50     空代表暂无审核人,否则为审核人信息,如:2019040474,李腾飞
spyj varchar 255     审批意见
sfty enum(‘是’, ‘否’)       审批人是否同意该申请(是或否)
spsj datetime 0     审批通过或审批拒绝的时间

SQL语句:

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

CREATE TABLE `ShenQingHeShenPi`  (
  `id` int(32) NOT NULL AUTO_INCREMENT,
  `xm` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '申请人姓名',
  `xh` varchar(14) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '申请人学号',
  `xq` enum('昌平校区','东校区','西校区') CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '申请出入的校区(昌平校区/东校区或西校区)',
  `xy` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '申请人学院',
  `jtfs` enum('步行','开车') CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '交通方式(步行或开车)',
  `cp` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '车牌(若jtfs为开车,则此项请勿为空)',
  `jsrdh` varchar(25) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '驾驶人电话(若jtfs为开车,则此项请勿为空)',
  `jsrss` enum('1','2','3','4','5') CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '驾驶人是1~5位访客中的谁(驾驶人可以是申请学生自己,但是这样的话驾驶人将会同样被视为“访客”,占据一位访客名额)(若jiaotongfangshi为开车,则此项请勿为空)',
  `fk1xm` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '访客1姓名',
  `fk1sfz` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '访客1身份证',
  `fk2xm` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '访客2姓名(若jsrss是2,则此项请勿为空)',
  `fk2sfz` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '访客2身份证(若jsrss是2,则此项请勿为空)',
  `fk3xm` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '访客3姓名(若jsrss是3,则此项请勿为空)',
  `fk3sfz` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '访客3身份证(若jsrss是3,则此项请勿为空)',
  `fk4xm` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '访客4姓名(若jsrss是4,则此项请勿为空)',
  `fk4sfz` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '访客4身份证(若jsrss是4,则此项请勿为空)',
  `fk5xm` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '访客5姓名(jsrss是5,则此项请勿为空)',
  `fk5sfz` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '访客5身份证(jsrss是5,则此项请勿为空)',
  `jxrq` date NOT NULL COMMENT '进校日期(精确到天)',
  `jxsy` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '进校事由',
  `shr` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '空代表暂无审核人,否则为审核人信息,如:2019040474,李腾飞',
  `spyj` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '审批意见',
  `sfty` enum('是','否') CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '审批人是否同意该申请(是或否)',
  `spsj` datetime(0) NULL DEFAULT NULL COMMENT '审批通过或审批拒绝的时间',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;

SET FOREIGN_KEY_CHECKS = 1;