content: package io.aharoj.barbershop_backend.modules.shop.model.entity;
  
  import jakarta.persistence.*;
  
  @Entity
  @Table(name = "seats")
  public class Seat {
  
      @Id
      @GeneratedValue(strategy = GenerationType.IDENTITY)
      private Long id;
  
      private String seatName;
  
      @ManyToOne(fetch = FetchType.LAZY, optional = false)
      @JoinColumn(name = "shop_id")
      private Shop shop;
  
      @ManyToOne(fetch = FetchType.LAZY)
      @JoinColumn(name = "association_id")
      private BarberShopAssociation association;
  
      public Seat() {
      }
  
      public Seat(String seatName, Shop shop) {
          this.seatName = seatName;
          this.shop = shop;
      }
  
      public Long getId() {
          return id;
      }
  
      public void setId(Long id) {
          this.id = id;
      }
  
      public String getSeatName() {
          return seatName;
      }
  
      public void setSeatName(String seatName) {
          this.seatName = seatName;
      }
  
      public Shop getShop() {
          return shop;
      }
  
      public void setShop(Shop shop) {
          this.shop = shop;
      }
  
      public BarberShopAssociation getAssociation() {
          return association;
      }
  
      public void setAssociation(BarberShopAssociation association) {
          this.association = association;
      }
  
  
  }
  