Skip to content

Commit

Permalink
Merge pull request #24 from siwonKH/main
Browse files Browse the repository at this point in the history
Update entities
  • Loading branch information
siwonKH committed Jun 28, 2023
2 parents d8aa0d2 + 0f94f22 commit f5e062b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 2 additions & 0 deletions src/main/java/com/khpt/projectkim/entity/Result.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ public class Result {
// 회사 정보들 모두 적어 (회사명, 지역, 등등)
private String company; // 회사이름

private String title; // 제목

private String region; // 지역

private String salary; // 급여
Expand Down
8 changes: 5 additions & 3 deletions src/main/java/com/khpt/projectkim/entity/User.java
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
package com.khpt.projectkim.entity;

import lombok.*;
import org.hibernate.annotations.CreationTimestamp;

import javax.persistence.*;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Getter
Expand All @@ -20,10 +22,10 @@ public class User implements Serializable {
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;

@Column(unique = true)
private String email;
@CreationTimestamp
private Date createdAt;

@Column(nullable = false)
@Column(unique = true, nullable = false)
private String login;

private String picture;
Expand Down

0 comments on commit f5e062b

Please sign in to comment.