package com.toyshop.entity;

import jakarta.persistence.*;

@Entity
@Table(name = "carousels")
public class Carousel {
  @Id
  @GeneratedValue(strategy = GenerationType.IDENTITY)
  private Long id;

  @Column(nullable = false, length = 255)
  private String imageUrl;

  @Column(length = 255)
  private String linkUrl;

  @Column(nullable = false)
  private Integer sortOrder = 0;

  public Long getId() { return id; }
  public void setId(Long id) { this.id = id; }
  public String getImageUrl() { return imageUrl; }
  public void setImageUrl(String imageUrl) { this.imageUrl = imageUrl; }
  public String getLinkUrl() { return linkUrl; }
  public void setLinkUrl(String linkUrl) { this.linkUrl = linkUrl; }
  public Integer getSortOrder() { return sortOrder; }
  public void setSortOrder(Integer sortOrder) { this.sortOrder = sortOrder; }
}
