content: package org.goormthon.seasonthon.nocheongmaru.domain.mission.entity;
  
  import jakarta.persistence.*;
  import lombok.AccessLevel;
  import lombok.Builder;
  import lombok.Getter;
  import lombok.NoArgsConstructor;
  import org.goormthon.seasonthon.nocheongmaru.domain.member.entity.Member;
  import org.goormthon.seasonthon.nocheongmaru.global.common.BaseTimeEntity;
  
  @NoArgsConstructor(access = AccessLevel.PROTECTED)
  @Getter
  @Table(name = "missions")
  @Entity
  public class Mission extends BaseTimeEntity {
      
      @Id
      @GeneratedValue(strategy = GenerationType.IDENTITY)
      @Column(name = "mission_id")
      private Long id;
      
      @Column(nullable = false)
      private String description;
      
      @ManyToOne(fetch = FetchType.LAZY)
      @JoinColumn(name = "member_id")
      private Member member;
      
      @Builder
      private Mission(String description, Member member) {
          this.description = description;
          this.member = member;
      }
      
      public void modifyTitle(String missionDescription) {
          this.description = missionDescription;
      }
  }
  