package com.magamochi.image.model.entity; import jakarta.persistence.*; import java.time.Instant; import java.util.UUID; import lombok.*; import org.hibernate.annotations.CreationTimestamp; import org.hibernate.annotations.UpdateTimestamp; @Entity @Table(name = "images") @Builder @NoArgsConstructor @AllArgsConstructor @Getter @Setter public class Image { @Id @GeneratedValue(strategy = GenerationType.UUID) private UUID id; private String objectKey; private String fileHash; @CreationTimestamp private Instant createdAt; @UpdateTimestamp private Instant updatedAt; }