forked from CSID-DGU/2024-2-OSSProj-Running-Machines-04
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BE: [feat] 크루 프로필 엔티티 추가 CSID-DGU#83
- Loading branch information
1 parent
ff5f9d1
commit b582057
Showing
2 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
...backend/src/main/java/RunningMachines/R2R/domain/crew/common/entity/CrewProfileImage.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package RunningMachines.R2R.domain.crew.common.entity; | ||
|
||
import jakarta.persistence.*; | ||
import lombok.*; | ||
|
||
@Entity | ||
@Getter | ||
@Builder | ||
@NoArgsConstructor(access = AccessLevel.PROTECTED) | ||
@AllArgsConstructor | ||
public class CrewProfileImage { | ||
@Id | ||
@GeneratedValue(strategy = GenerationType.IDENTITY) | ||
@Column(nullable = false) | ||
private Long id; | ||
|
||
@OneToOne | ||
@JoinColumn(name = "crew_id", nullable = false) | ||
private Crew crew; | ||
|
||
private String imageUrl; | ||
|
||
public void setCrew(Crew crew) { | ||
this.crew = crew; | ||
} | ||
} |