You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
educoder/app/models/course_member_attendance.rb

12 lines
478 B

5 years ago
class CourseMemberAttendance < ApplicationRecord
5 years ago
# attendance_mode 0 初始数据1 二维码签到2 数字签到3 老师签到
5 years ago
enum attendance_mode: { DEFAULT: 0, QRCODE: 1, NUMBER: 2, QUICK: 3, TEACHER: 4}
5 years ago
# attendance_status 1 正常签到2 请假0 旷课
5 years ago
enum attendance_status: { NORMAL: 1, LEAVE: 2, ABSENCE: 0 }
5 years ago
belongs_to :course_member
belongs_to :user
belongs_to :course
belongs_to :course_attendance
belongs_to :course_group
end