package com.casic.missiles.modular.system.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author lwh123
 * @since 2020-03-20
 */
@TableName("bus_group_user")
@Data
public class GroupUser extends Model<GroupUser> {

    private static final long serialVersionUID = 1L;

    @TableId("GROUP_ID")
    private Long groupId;
    @TableField("USER_ID")
    private Long userId;

    @Override
    protected Serializable pkVal() {
        return this.groupId;
    }

    @Override
    public String toString() {
        return "GroupUser{" +
        "groupId=" + groupId +
        ", userId=" + userId +
        "}";
    }
}
