package com.loan.system.domain.entity;

import lombok.*;

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

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

    @Column(name = "code", length = 50)
    private String 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;

}