-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from Kusitms-28th-Meetup-D/feature/15-user
Feature/15 user
- Loading branch information
Showing
8 changed files
with
132 additions
and
1 deletion.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
src/main/java/com/kusithm/meetupd/domain/grade/entity/Grade.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package com.kusithm.meetupd.domain.grade.entity; | ||
|
||
import com.kusithm.meetupd.common.entity.BaseEntity; | ||
import jakarta.persistence.*; | ||
import lombok.*; | ||
|
||
import java.sql.Timestamp; | ||
|
||
@Getter | ||
@NoArgsConstructor(access = AccessLevel.PROTECTED) | ||
@AllArgsConstructor | ||
@Builder | ||
@Entity(name = "GRADE") | ||
public class Grade extends BaseEntity { | ||
|
||
@Id | ||
@GeneratedValue(strategy = GenerationType.IDENTITY) | ||
@Column(name = "grade_id") | ||
private Long id; | ||
|
||
@Column(name = "type", nullable = false) | ||
private TYPE userType; | ||
|
||
@Column(name = "buy_time", nullable = false) | ||
private Timestamp buyTime; | ||
|
||
@Column(name = "end_time", nullable = false) | ||
private Timestamp endTime; | ||
|
||
} |
6 changes: 6 additions & 0 deletions
6
src/main/java/com/kusithm/meetupd/domain/grade/entity/TYPE.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package com.kusithm.meetupd.domain.grade.entity; | ||
|
||
public enum TYPE { | ||
|
||
FREE, PAID | ||
} |
21 changes: 21 additions & 0 deletions
21
src/main/java/com/kusithm/meetupd/domain/user/entity/Carrer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package com.kusithm.meetupd.domain.user.entity; | ||
|
||
import com.kusithm.meetupd.common.entity.BaseEntity; | ||
import jakarta.persistence.*; | ||
import lombok.*; | ||
|
||
@Getter | ||
@NoArgsConstructor(access = AccessLevel.PROTECTED) | ||
@AllArgsConstructor | ||
@Builder | ||
@Entity(name = "USER_CARRER") | ||
public class Carrer extends BaseEntity { | ||
|
||
@Id | ||
@GeneratedValue(strategy = GenerationType.IDENTITY) | ||
@Column(name = "carrer_id") | ||
private Long id; | ||
|
||
@Column(name = "carrer", nullable = false) | ||
private String carrer; | ||
} |
5 changes: 5 additions & 0 deletions
5
src/main/java/com/kusithm/meetupd/domain/user/entity/GENDER.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package com.kusithm.meetupd.domain.user.entity; | ||
|
||
public enum GENDER { | ||
M,F,ETC | ||
} |
20 changes: 20 additions & 0 deletions
20
src/main/java/com/kusithm/meetupd/domain/user/entity/Major.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package com.kusithm.meetupd.domain.user.entity; | ||
|
||
import com.kusithm.meetupd.common.entity.BaseEntity; | ||
import jakarta.persistence.*; | ||
import lombok.*; | ||
|
||
@Getter | ||
@NoArgsConstructor(access = AccessLevel.PROTECTED) | ||
@AllArgsConstructor | ||
@Builder | ||
@Entity(name = "USER_MAJOR") | ||
public class Major extends BaseEntity { | ||
@Id | ||
@GeneratedValue(strategy = GenerationType.IDENTITY) | ||
@Column(name = "major_id") | ||
private Long id; | ||
|
||
@Column(name = "major", nullable = false) | ||
private String major; | ||
} |
20 changes: 20 additions & 0 deletions
20
src/main/java/com/kusithm/meetupd/domain/user/entity/Skill.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package com.kusithm.meetupd.domain.user.entity; | ||
|
||
import com.kusithm.meetupd.common.entity.BaseEntity; | ||
import jakarta.persistence.*; | ||
import lombok.*; | ||
|
||
@Getter | ||
@NoArgsConstructor(access = AccessLevel.PROTECTED) | ||
@AllArgsConstructor | ||
@Builder | ||
@Entity(name = "USER_SKILL") | ||
public class Skill extends BaseEntity { | ||
@Id | ||
@GeneratedValue(strategy = GenerationType.IDENTITY) | ||
@Column(name = "skill_id") | ||
private Long id; | ||
|
||
@Column(name = "skill", nullable = false) | ||
private String skill; | ||
} |
20 changes: 20 additions & 0 deletions
20
src/main/java/com/kusithm/meetupd/domain/user/entity/Task.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package com.kusithm.meetupd.domain.user.entity; | ||
|
||
import com.kusithm.meetupd.common.entity.BaseEntity; | ||
import jakarta.persistence.*; | ||
import lombok.*; | ||
|
||
@Getter | ||
@NoArgsConstructor(access = AccessLevel.PROTECTED) | ||
@AllArgsConstructor | ||
@Builder | ||
@Entity(name = "USER_TASK") | ||
public class Task extends BaseEntity { | ||
@Id | ||
@GeneratedValue(strategy = GenerationType.IDENTITY) | ||
@Column(name = "task_id") | ||
private Long id; | ||
|
||
@Column(name = "task", nullable = false) | ||
private String task; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters