package com.crunii.micro.domain.entity.main;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.GenericGenerator;
import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * 活动自定义报名表数据;
 * @author : zjw
 * @date : 2023-11-27
 */
@Entity
@DynamicInsert
@DynamicUpdate
@Getter
@Setter
@ToString
@EqualsAndHashCode(of = {"id"})
@GenericGenerator(name = "idGenerator", strategy = "com.crunii.micro.core.distributed.DistributedSnowFlakeId")
@ApiModel(description = "活动自定义报名表数据")
@Table(name="YCQ_ACTIVITY_APPLY_RECORD")
public class YcqActivityApplyRecord implements Serializable{
    /** 主键 */

    @ApiModelProperty(value = "主键")
    @GeneratedValue(generator = "idGenerator")
    @Id
    private Long id ;
    /** 提交的数据json */
    @ApiModelProperty(value = "提交的数据json")
    @Column(name = "RECORD_JSON")
    private String recordJson ;
    /** 活动id */
    @ApiModelProperty(value = "活动id")
    @Column(name = "ACTIVITY_ID")
    private Long activityId ;
    /** 创建人 */
    @ApiModelProperty(value = "创建人")
    @Column(name = "CREATE_ID")
    private Integer createId ;
    /** 创建时间 */
    @ApiModelProperty(value = "创建时间")
    @Column(name = "CREATE_TIME")
    private Date createTime ;
    /** 更新人 */
    @ApiModelProperty(value = "更新人")
    @Column(name = "UPDATE_ID")
    private Integer updateId ;
    /** 更新时间 */
    @ApiModelProperty(value = "更新时间")
    @Column(name = "UPDATE_TIME")
    private Date updateTime ;
    /** 是否被删除 */
    @ApiModelProperty(value = "是否被删除")
    @Column(name = "IS_DELETE")
    private Integer isDelete ;
    /** 乐观锁 */
    @ApiModelProperty(value = "乐观锁")
    @Column(name = "REVISION")
    private Long revision ;

    /** 主键 */
    public Long getId(){
        return this.id;
    }
    /** 主键 */
    public void setId(Long id){
        this.id=id;
    }
    /** 提交的数据json */
    public String getRecordJson(){
        return this.recordJson;
    }
    /** 提交的数据json */
    public void setRecordJson(String recordJson){
        this.recordJson=recordJson;
    }
    /** 活动id */
    public long getActivityId(){
        return this.activityId;
    }
    /** 活动id */
    public void setActivityId(long activityId){
        this.activityId=activityId;
    }
    /** 创建人 */
    public Integer getCreateId(){
        return this.createId;
    }
    /** 创建人 */
    public void setCreateId(Integer createId){
        this.createId=createId;
    }
    /** 创建时间 */
    public Date getCreateTime(){
        return this.createTime;
    }
    /** 创建时间 */
    public void setCreateTime(Date createTime){
        this.createTime=createTime;
    }
    /** 更新人 */
    public Integer getUpdateId(){
        return this.updateId;
    }
    /** 更新人 */
    public void setUpdateId(Integer updateId){
        this.updateId=updateId;
    }
    /** 更新时间 */
    public Date getUpdateTime(){
        return this.updateTime;
    }
    /** 更新时间 */
    public void setUpdateTime(Date updateTime){
        this.updateTime=updateTime;
    }
    /** 是否被删除 */
    public Integer getIsDelete(){
        return this.isDelete;
    }
    /** 是否被删除 */
    public void setIsDelete(Integer isDelete){
        this.isDelete=isDelete;
    }
    /** 乐观锁 */
    public Long getRevision(){
        return this.revision;
    }
    /** 乐观锁 */
    public void setRevision(Long revision){
        this.revision=revision;
    }
}