Skip to content

Commit

Permalink
Fix | #4 | @lcomment | device token 관련 컬럼 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
lcomment committed May 9, 2024
1 parent 840501c commit 0bde105
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions cakk-domain/src/main/java/com/cakk/domain/entity/user/User.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,12 @@ public class User extends AuditEntity {
@Column(name = "birthday")
private LocalDate birthday;

@Column(name = "device_os", length = 8)
private String deviceOs;

@Column(name = "device_token", length = 170)
private String deviceToken;

@Enumerated(value = EnumType.STRING)
@Column(name = "role", length = 15, nullable = false)
private Role role;
Expand All @@ -75,6 +81,8 @@ public User(
String email,
Gender gender,
LocalDate birthday,
String deviceOs,
String deviceToken,
Role role
) {
this.provider = provider;
Expand All @@ -84,6 +92,8 @@ public User(
this.email = email;
this.gender = gender;
this.birthday = birthday;
this.deviceOs = deviceOs;
this.deviceToken = deviceToken;
this.role = role;
}
}

0 comments on commit 0bde105

Please sign in to comment.