1 Star 0 Fork 127

lixu / 学生报备系统

forked from DCloud / 学生报备系统 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
db.md 4.40 KB
一键复制 编辑 原始数据 按行查看 历史
崔红保 提交于 2020-02-02 12:03 . daily_report_log增加class_id

学校班级信息表

一期仅支持单个学校,班级管理分年级、班级两个维度,涉及两张表:

年级表:

grade_list
{
    _id: "", // string,自生成
    name:'', //一年级、二年级等
    order:1'' //年级排序
}

班级表:

class_list
{
    _id: "", // string,自生成
    grade_id:"",//所属年级ID
    name:"",//班级名称,如"994班"、"信计02"等
    student_sum:0,//当前班级总人数
    order:1,//int,同年级下的排序
}

用户表

用户分为几个角色:

  • 管理员(后台手动配置)
  • 老师
  • 学生
  • 学生家长(小学、幼儿园代替孩子报备)

老师表:

teachers
{
    _id: "", // string,自生成
    username: "", // string 用户
    password: "", // string 密码(禁止明文)
    wx_open_id: "", // string 关联微信openid  用户code 换取
    class_info: "", // string 管理班级ID  一期仅支持一个老师管理一个班级
}

学生表:

students
{
    _id: "", // string,自生成
    username: "", // string 用户
    password: "", // string 密码(禁止明文)
    wx_open_id: "", // string 关联微信openid  用户code 换取
    stu_num: "", // string 学号 student number
    stu_name: "", // string 学生姓名
    class_id: "", // string 学生所属班级ID
}

学生家长表:

parents
{
    _id: "", // string,自生成
    username: "", // string 用户
    password: "", // string 密码(禁止明文)
    wx_open_id: "", // string 关联微信openid  用户code 换取
    class_id: "", // string 学生所属班级ID
    stu_id:"",//学校若提前录入学生信息,则可绑定;若没有学生信息表,本项可空
    stu_num: "", // string 学号 student number
    stu_name: "", // string 学生姓名
}

Tips:支持一个学生关联多个家长,可能每次报备的家长不同。

每日健康报备

daily_report_log
{
    _id: "", // string,自生成
    create_time: 0, // int 时间戳 GMT
    class_id:"",//string 班级标志
	stu_id: "", // string 学生唯一标识,可选
    stu_num:"",//学号
    stu_name: "", // string 学生姓名
	contact_virus:0, // 有无接触湖北/武汉人员 int 0无,1有
	have_symptom:0, // 有无疑似症状 int 0无,1有
	current_pos:"", //当前位置,0:本地,1:外地(除湖北),2:外地(湖北)
    health:""//当前健康状况,多选,可选项:good/kesou/fali/fare,多选时逗号分隔,良好不能好其他多选
	temperature: 0, // 体温,可选
}
JavaScript
1
https://gitee.com/lixu/xinguan2020-xuesheng.git
git@gitee.com:lixu/xinguan2020-xuesheng.git
lixu
xinguan2020-xuesheng
学生报备系统
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891