-
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.
- Loading branch information
Showing
2 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
src/main/java/com/example/signalbackend/domain/report/domain/Report.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,25 @@ | ||
package com.example.signalbackend.domain.report.domain; | ||
|
||
import com.example.signalbackend.global.entity.BaseIdEntity; | ||
import lombok.AccessLevel; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
import lombok.experimental.SuperBuilder; | ||
|
||
import javax.persistence.Column; | ||
import javax.persistence.Entity; | ||
import javax.persistence.Table; | ||
|
||
@SuperBuilder | ||
@Getter | ||
@NoArgsConstructor(access = AccessLevel.PROTECTED) | ||
@Table(name = "tbl_report") | ||
@Entity | ||
public class Report extends BaseIdEntity { | ||
|
||
@Column(columnDefinition = "CHAR(200)") | ||
private String image; | ||
|
||
@Column(columnDefinition = "VARCHAR(1000)", nullable = false) | ||
private String content; | ||
} |
9 changes: 9 additions & 0 deletions
9
...main/java/com/example/signalbackend/domain/report/domain/repository/ReportRepository.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,9 @@ | ||
package com.example.signalbackend.domain.report.domain.repository; | ||
|
||
import com.example.signalbackend.domain.report.domain.Report; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
|
||
import java.util.UUID; | ||
|
||
public interface ReportRepository extends JpaRepository<Report, UUID> { | ||
} |