Skip to content

Commit

Permalink
BE: [fix] entity 파일 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
HOJEONGKIMM committed Nov 1, 2024
1 parent b6ce83b commit 7caaae6
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@ public class DetectedCheating {
private Integer userId; // 사용자 ID
private Integer sessionId; // 세션 ID
private Integer cheatingTypeId; // 부정행위 종류 ID
private String videoId;
private LocalTime detectedTime; // 탐지된 시간
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,16 @@ public class User {
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer userId;

@Column(name = "sessionID", nullable = false)
private int sessionID; // 세션 ID (int 타입)

@Column(nullable = false)
private String studentNumber;
private String userNum;

private String department;
private String userName;
private Integer seatNum; // 좌석 번호



}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import jakarta.persistence.*;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;

@Entity
Expand All @@ -15,9 +16,15 @@ public class VideoRecording {
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer videoId;

private Integer sessionId; // 세션 ID
private Integer userId; // 사용자 ID
private LocalDate examDate; // 시험 날짜
private LocalTime examStartTime; // 시험 시작 시간
private String filePath; // 파일 경로
@Column(nullable = false)
private Integer userId;

@Column(nullable = false)
private LocalDateTime startTime;

@Column(nullable = false)
private LocalDateTime endTime;

@Column(length = 255)
private String filePath;
}

0 comments on commit 7caaae6

Please sign in to comment.