package com.alterdekim.game.entity;

import jakarta.persistence.*;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

@NoArgsConstructor
@AllArgsConstructor
@Getter
@Entity
@Table(name = "house_locations")
public class HouseLocation {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    @Column(nullable = false)
    private Long goodId;

    @Column(nullable = false)
    private Integer mediaResourceId;

    @Column(nullable = false)
    private Boolean isDefault;

    public HouseLocation(Long goodId, Integer mediaResourceId, Boolean isDefault) {
        this.goodId = goodId;
        this.mediaResourceId = mediaResourceId;
        this.isDefault = isDefault;
    }
}
