package ai.decompile.analysis.model.entity;

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

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

  @ManyToOne(fetch = FetchType.LAZY)
  @JoinColumn(name = "analysis_id", nullable = false)
  private StaticAnalysis analysis;

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

  @Column(nullable = false)
  @Builder.Default
  private int width = 0;

  @Column(nullable = false, columnDefinition = "TEXT DEFAULT ''")
  @Builder.Default
  private String constants = "";
}
