package com.micer.easyball.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 5. 场次球员 game_player
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "game_player")
public class GamePlayer implements Serializable {
    private static final long serialVersionUID = -40356785423868312L;

    /**
     * UUID
     */
    @TableId("id")
    private String id;

    /**
     * 场次ID
     */
    @TableField("game_id")
    private String gameId;

    /**
     * 球队ID
     */
    @TableField("club_id")
    private String clubId;

    /**
     * 球员ID
     */
    @TableField("player_id")
    private String playerId;

    /**
     * 比赛日期
     */
    @TableField("game_date")
    private Date gameDate;

    /**
     * 是否为MVP
     */
    @TableField("is_mvp")
    private Boolean isMVP;

    /**
     * 进球数
     */
    @TableField("goal")
    private Long goal;

    /**
     * 助攻数
     */
    @TableField("assist")
    private Long assist;
}

