package ai.decompile.analysis.model.entity;

import jakarta.persistence.*;
import java.util.UUID;
import lombok.*;

@Entity
@Table(name = "static_label")
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class StaticLabel {
  @Id
  @GeneratedValue(strategy = GenerationType.UUID)
  private UUID id;

  @ManyToOne(fetch = FetchType.LAZY)
  @JoinColumn(name = "function_id", nullable = false)
  private StaticFunction function;

  @Column(nullable = false, length = 500)
  private String name;

  @Column(nullable = false, length = 20)
  private String address;

  @Column(nullable = false, length = 10)
  @Builder.Default
  private String type = "CALL";
}
