package com.sikey.wa04.business.infrastructure.dto.model;

import jakarta.persistence.*;
import jakarta.validation.constraints.Size;
import lombok.Getter;
import lombok.Setter;

import java.time.Instant;

@Getter
@Setter
@Entity
@Table(name = "tb_child_ref")
public class ChildRefModel extends BaseModel {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id", nullable = false)
    private Long id;

    @Size(max = 36)
    @Column(name = "user_id", length = 36)
    private String userId;

    @Size(max = 36)
    @Column(name = "child_id", length = 36)
    private String childId;

    @Column(name = "identity")
    private Integer identity;

    @Column(name = "deleted_at")
    private Instant deletedAt;

}