package com.izouma.nineth.domain;

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

import javax.persistence.*;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Entity
@ApiModel("元宇宙玩家服饰")
public class MetaPlayerWear extends BaseEntity {

    @ApiModelProperty("用户id")
    private Long userId;

    @ApiModelProperty("模型")
    @Column(columnDefinition = "TEXT")
    @Convert(converter = FileObjectConverter.class)
    private FileObject model;

    @ApiModelProperty("类型")
    @Enumerated(EnumType.STRING)
    private MetaPlayerWearEnum type;

}
