package com.honey.honey.model;

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

import java.math.BigDecimal;
import java.time.Instant;

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

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

    @Column(name = "pid", nullable = false, unique = true)
    private Integer pid;

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

    @Column(name = "network", nullable = false, length = 50)
    private String network;

    @Column(name = "example", length = 255)
    private String example;

    @Column(name = "min_deposit_sum", nullable = false, precision = 10, scale = 2)
    private BigDecimal minDepositSum;

    @Column(name = "updated_at", nullable = false)
    private Instant updatedAt;
}
