package com.hzs.common.domain.system.config;

import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.hzs.common.core.annotation.Transaction;
import com.hzs.common.core.constant.EnumsPrefixConstants;
import com.hzs.common.core.web.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 奖衔配置明细表
 * </p>
 *
 * @author zhangjing
 * @since 2022-09-13
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("BD_AWARDS_DETAIL")
@KeySequence("BD_AWARDS_DETAIL_SEQ")
public class BdAwardsDetail extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId("PK_ID")
    private Integer pkId;

    /**
     * 奖衔主表主键
     */
    @TableField("PK_AWARDS")
    private Integer pkAwards;

    /**
     * 关系类型
     */
    @TableField("RELATION_TYPE")
    @Transaction(transactionKey = EnumsPrefixConstants.KEY_AWARD)
    private Integer relationType;

    /**
     * 考核奖衔
     */
    @TableField("PK_CHECK_AWARDS")
    private Integer pkCheckAwards;

    /**
     * 数量
     */
    @TableField("AWARDS_VALUE")
    private Integer awardsValue;


}
