-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
68 additions
and
0 deletions.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
src/main/java/ewha/lux/once/domain/card/entity/BenefitSummary.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 ewha.lux.once.domain.card.entity; | ||
|
||
import ewha.lux.once.global.common.BaseEntity; | ||
import jakarta.persistence.*; | ||
import lombok.*; | ||
|
||
@Entity | ||
@Table(name="benefit_summary") | ||
@AllArgsConstructor | ||
@NoArgsConstructor(access= AccessLevel.PROTECTED) | ||
@Getter | ||
@Builder | ||
public class BenefitSummary extends BaseEntity { | ||
|
||
@Id | ||
@GeneratedValue(strategy = GenerationType.IDENTITY) | ||
@Column(name = "benefit_summary_id") | ||
private Long id; | ||
|
||
@Column(name = "benefit_field", nullable = false) | ||
private String benefitField; | ||
|
||
@Lob | ||
@Column(name = "benefit_contents", nullable = false) | ||
private String benefitContents; | ||
|
||
@ManyToOne | ||
@JoinColumn(name = "cardId") | ||
private Card card; | ||
} |
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
37 changes: 37 additions & 0 deletions
37
src/main/java/ewha/lux/once/domain/card/entity/EventSummary.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,37 @@ | ||
package ewha.lux.once.domain.card.entity; | ||
|
||
import jakarta.persistence.*; | ||
import lombok.*; | ||
|
||
import java.sql.Date; | ||
|
||
@Entity | ||
@Table(name="event_summary") | ||
@AllArgsConstructor | ||
@NoArgsConstructor(access= AccessLevel.PROTECTED) | ||
@Getter | ||
@Builder | ||
public class EventSummary { | ||
|
||
@Id | ||
@GeneratedValue(strategy = GenerationType.IDENTITY) | ||
@Column(name = "event_summary_id") | ||
private Long id; | ||
|
||
@Column(name = "event_field") | ||
private String eventField; | ||
|
||
@Lob | ||
@Column(name = "event_contents") | ||
private String eventContents; | ||
|
||
@Column(name = "start_date") | ||
private Date startDate; | ||
|
||
@Column(name = "expire_date") | ||
private Date expireDate; | ||
|
||
@ManyToOne | ||
@JoinColumn(name = "cardCompanyId") | ||
private CardCompany cardCompany; | ||
} |