package com.adityachandel.booklore.model.entity;


import jakarta.persistence.*;
import lombok.*;

@Entity
@Table(name = "kobo_library_snapshot_book")
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class KoboSnapshotBookEntity {

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

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "snapshot_id", nullable = false)
    private KoboLibrarySnapshotEntity snapshot;

    @Column(name = "book_id", nullable = false)
    private Long bookId;

    @Column(nullable = false)
    private boolean synced = false;
}
