Skip to content

Commit 02de0ce

Browse files
committed
feat: User 엔티티추가
1 parent 372a6de commit 02de0ce

File tree

1 file changed

+34
-0
lines changed
  • src/main/java/com/back/domain/user/entity

1 file changed

+34
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
package com.back.domain.user.entity;
2+
3+
import jakarta.persistence.*;
4+
import lombok.*;
5+
6+
import java.time.LocalDateTime;
7+
8+
@Entity
9+
@Table(name = "users") // DB 테이블 이름: User 대신 users 권장 (예약어 충돌 방지)
10+
@Getter
11+
@Setter
12+
@NoArgsConstructor
13+
@AllArgsConstructor
14+
@Builder
15+
public class User {
16+
17+
@Id
18+
@GeneratedValue(strategy = GenerationType.IDENTITY)
19+
private Long id;
20+
21+
private String email; // 유저 소셜 이메일 (OAuth2 로그인 시 저장)
22+
23+
private String nickname; // 유저 닉네임
24+
25+
private String profileImgUrl; // 프로필 이미지 URL
26+
27+
private String apiKey; // 리프레시 토큰 (쿠키 인증과 연동)
28+
29+
private Double abvDegree; // 온도(회원 등급)
30+
31+
private LocalDateTime createdAt; // 생성 날짜
32+
33+
private LocalDateTime updatedAt; // 수정 날짜
34+
}

0 commit comments

Comments
 (0)