Skip to content

Commit

Permalink
#3 [feat] : MatchProcess 도메인엔티티 작성
Browse files Browse the repository at this point in the history
  • Loading branch information
SeorinY committed Jun 4, 2023
1 parent 05ab0c4 commit 14fd497
Showing 1 changed file with 32 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
package qdang.group.was.matchProcess.domain;

import jakarta.persistence.*;
import lombok.Getter;
import qdang.group.was.match.domain.Match;
import qdang.group.was.user.domain.User;

@Getter
@Entity(name = "q_match_process")
public class MatchProcess {

@Id
@Column(name = "q_match_process_id")
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;

@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "q_match_id")
private Match match;

@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "q_user_id")
private User user;

private int processCount;

private int turnCount;

private int phaseCount;

private boolean validTf;
}

0 comments on commit 14fd497

Please sign in to comment.