Skip to content

Commit

Permalink
[refactor] User에서 NotNull 제약조건 추가 (#401)
Browse files Browse the repository at this point in the history
  • Loading branch information
kseysh committed Oct 8, 2024
1 parent 4d7830c commit d7b76e3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/org/sopt/app/domain/entity/User.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package org.sopt.app.domain.entity;

import jakarta.validation.constraints.NotNull;
import lombok.*;
import java.util.Collection;
import java.util.Collections;
Expand All @@ -21,11 +22,14 @@ public class User extends BaseEntity implements UserDetails {
@Column(name = "user_id")
private Long id;

@NotNull
private String username;

@NotNull
@Column(unique = true)
private Long playgroundId;

@NotNull
private String playgroundToken;

@Builder
Expand Down

0 comments on commit d7b76e3

Please sign in to comment.