-
Notifications
You must be signed in to change notification settings - Fork 5
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
2 changed files
with
80 additions
and
5 deletions.
There are no files selected for viewing
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
57 changes: 57 additions & 0 deletions
57
src/main/java/com/readyvery/readyverydemo/domain/CeoMetaInfo.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,57 @@ | ||
package com.readyvery.readyverydemo.domain; | ||
|
||
import jakarta.persistence.Column; | ||
import jakarta.persistence.Entity; | ||
import jakarta.persistence.FetchType; | ||
import jakarta.persistence.GeneratedValue; | ||
import jakarta.persistence.GenerationType; | ||
import jakarta.persistence.Id; | ||
import jakarta.persistence.JoinColumn; | ||
import jakarta.persistence.ManyToOne; | ||
import jakarta.persistence.Table; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
import lombok.extern.slf4j.Slf4j; | ||
|
||
@Getter | ||
@NoArgsConstructor | ||
@Entity | ||
@Builder | ||
@Table(name = "INFOTAINMENT") | ||
@AllArgsConstructor | ||
@Slf4j | ||
public class CeoMetaInfo extends BaseTimeEntity { | ||
@Id | ||
@GeneratedValue(strategy = GenerationType.IDENTITY) | ||
@Column(name = "ceo_meta_idx") | ||
private Long id; | ||
|
||
@Column(nullable = false, length = 45) | ||
private String storeName; | ||
|
||
@Column(nullable = false, length = 100) | ||
private String storeAddress; | ||
|
||
@Column(nullable = false, length = 45) | ||
private String registrationNumber; | ||
|
||
@Column(nullable = false, columnDefinition = "TEXT") | ||
private String businessLicenseFileName; | ||
|
||
@Column(nullable = false, columnDefinition = "TEXT") | ||
private String businessReportFileName; | ||
|
||
@Column(nullable = false, columnDefinition = "TEXT") | ||
private String identityCardFileName; | ||
|
||
@Column(nullable = false, columnDefinition = "TEXT") | ||
private String bankAccountFileName; | ||
|
||
// 입점신청 사장님 연관관계 매핑 | ||
@ManyToOne(fetch = FetchType.LAZY) | ||
@JoinColumn(name = "ceo_idx") | ||
private CeoInfo ceoInfo; | ||
|
||
} |