package com.izouma.nineth.domain;

import com.izouma.nineth.converter.LongArrayConverter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Convert;
import javax.persistence.Entity;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Entity
@ApiModel("元宇宙玩家离线信息")
public class MetaPlayerOfflineInfo extends BaseEntity {

    private Long userId;

    @Column(columnDefinition = "TEXT")
    @Convert(converter = LongArrayConverter.class)
    @ApiModelProperty("离线时服饰id集合")
    private List<Long> clothesId;

    @ApiModelProperty("离线时皮肤编号")
    private int skinId;

    @ApiModelProperty("离线时的空间id")
    private Long spaceId;

    @ApiModelProperty("离线时的角色id")
    private Long roleId;
}
