package com.devjob.domain;

import lombok.AccessLevel;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * 채용 공고.
 *
 * Part2(EP09~)에서 JPA Entity로 전환되기 전까지는
 * 메모리에 보관되는 단순 도메인 객체로 사용한다.
 */
@Getter
@Setter
@NoArgsConstructor(access = AccessLevel.PUBLIC)
public class Job {

    private Long id;
    private Long companyId;
    private String title;
    private String description;
    private Integer salary;
    private JobStatus status = JobStatus.OPEN;

    public Job(Long id, Long companyId, String title, String description, Integer salary, JobStatus status) {
        this.id = id;
        this.companyId = companyId;
        this.title = title;
        this.description = description;
        this.salary = salary;
        this.status = status;
    }
}
