package com.dsh.competition.entity; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.extension.activerecord.Model; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.experimental.Accessors; import java.io.Serializable; import java.util.Date; /** *

* 赛事报名记录 *

* * @author jqs * @since 2023-06-26 */ @Data @EqualsAndHashCode(callSuper = false) @Accessors(chain = true) @TableName("t_user_competition") public class UserCompetition extends Model { private static final long serialVersionUID = 1L; /** * 主键 */ @TableId(value = "id", type = IdType.NONE) private Long id; /** * 赛事id */ @TableField("competitionId") private Integer competitionId; /** * 用户id */ @TableField("appUserId") private Integer appUserId; /** * 参与者id */ @TableField("participantId") private Integer participantId; /** * 参与人员类型(1=学员,2=参赛者) */ @TableField("participantType") private Integer participantType; /** * 支付记录id */ @TableField("paymentCompetitionId") private Long paymentCompetitionId; /** * 参加时间 */ @TableField("insertTime") private Date insertTime; @Override protected Serializable pkVal() { return this.id; } }