package com.example.bricklog.model;

import jakarta.persistence.Entity;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;

@Entity
public class LegoBuild {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    private String name;
    private String builder;
    private boolean isKitset; // true for Kitset, false for MoC
    private String description;
    private String imagePath;

    public LegoBuild() {}

    public LegoBuild(String name, String builder, boolean isKitset, String description) {
        this.name = name;
        this.builder = builder;
        this.isKitset = isKitset;
        this.description = description;
    }

    // Getters and setters...

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getBuilder() {
        return builder;
    }

    public void setBuilder(String builder) {
        this.builder = builder;
    }

    public boolean isKitset() {
        return isKitset;
    }

    public void setKitset(boolean isKitset) {
        this.isKitset = isKitset;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

        public String getImagePath() {
        return imagePath;
    }

    public void setImagePath(String imagePath) {
        this.imagePath = imagePath;
    }
}
