package com.loan.system.domain.entity;

import lombok.*;

import javax.persistence.*;
import java.time.Instant;

@Entity
@Table(name = "dict_type", indexes = {
        @Index(name = "idx_enabled", columnList = "enabled")
}, uniqueConstraints = {
        @UniqueConstraint(name = "code", columnNames = {"code"})
})
@Data
@AllArgsConstructor
@NoArgsConstructor
public class DictType extends BaseEntity{
    private static final long serialVersionUID = 13L;

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

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

    @Column(name = "enabled")
    private Boolean enabled;

    @Column(name = "sort_order")
    private Integer sortOrder;

    @Column(name = "created_at")
    private String createdAt;

    @Column(name = "is_delete")
    private Boolean isDelete;

}