package cn.lihongjie.coal.employeeRecord.entity;

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

import jakarta.persistence.Entity;
import jakarta.persistence.ManyToOne;

import lombok.Data;

import org.hibernate.annotations.ColumnDefault;
import org.hibernate.annotations.Comment;

@Data
@Entity

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

public class EmployeeRecordEntity extends OrgCommonEntity {
    
    
    @ManyToOne
    private EmployeeEntity employee;


    @Comment("记录时间")
    private java.time.LocalDateTime recordTime;

    @Comment("记录类型")
    private String recordType;





    @Comment("记录内容")
    private String recordContent;


    @Comment("奖惩分数")
    private Double score;


    @Comment("奖惩金额")
    private Double money;


    @Comment("归档状态")
    @ColumnDefault("'0'")
    private String archiveStatus = "0";









}