File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed
src/main/java/com/back/domain/user/entity Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments