Skip to content

Commit

Permalink
πŸ“‘ :: Report Entity, Repository
Browse files Browse the repository at this point in the history
  • Loading branch information
alsco39 committed Dec 13, 2023
1 parent e518758 commit 25cb3ef
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
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;
}
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> {
}

0 comments on commit 25cb3ef

Please sign in to comment.