Skip to content

Commit

Permalink
feat: attendanceEntity sessionType 필드 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
ddingmin committed May 16, 2024
1 parent 91fb5f6 commit f66b1a8
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ class AttendanceEntity private constructor(
@JoinColumn(name = "member_id", nullable = false)
val member: MemberEntity,

@Column(name = "session_type", nullable = false)
val sessionType: SessionType,

@Enumerated(EnumType.STRING)
@Column(name = "attendance_status", nullable = false)
val attendanceStatus: AttendanceStatus,
Expand All @@ -42,7 +45,7 @@ class AttendanceEntity private constructor(
week = week,
member = member.toDomain(),
attendanceStatus = attendanceStatus,
sessionType = SessionType.ONLINE,
sessionType = sessionType,
attendanceTime = attendanceTime,
)

Expand All @@ -53,6 +56,7 @@ class AttendanceEntity private constructor(
generation = generation,
week = week,
member = MemberEntity.fromDomain(member),
sessionType = sessionType,
attendanceStatus = attendanceStatus,
attendanceTime = attendanceTime
)
Expand Down

0 comments on commit f66b1a8

Please sign in to comment.