package cn.lihongjie.coal.warehouseReceiptReason.entity;

import cn.lihongjie.coal.base.entity.OrgCommonEntity;

import io.hypersistence.utils.hibernate.type.array.ListArrayType;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;

import lombok.Data;

import org.hibernate.annotations.Comment;
import org.hibernate.annotations.Type;

import java.util.List;

@Data
@Entity

@jakarta.persistence.Table(indexes = @jakarta.persistence.Index(name ="idx_warehouse_receipt_reason_org_id", columnList = "organization_id"))

public class WarehouseReceiptReasonEntity extends OrgCommonEntity {





    @Comment("用于存储多个事由说明, 用于下拉框展示和快速填写")
    @Column(columnDefinition = "text[]")
    @Type(ListArrayType.class)
    private List<String> reasonDesc;


}