Modification BDD stockage défi actif
This commit is contained in:
@ -1,21 +1,37 @@
|
||||
import { ApiProperty } from "@nestjs/swagger"
|
||||
import { Player } from "@prisma/client"
|
||||
import { Exclude } from 'class-transformer'
|
||||
import { IsOptional } from "class-validator"
|
||||
|
||||
export class PlayerEntity implements Player {
|
||||
constructor(partial: Partial<PlayerEntity>) {
|
||||
Object.assign(this, partial)
|
||||
}
|
||||
|
||||
@ApiProperty({description: "Identifiant unique"})
|
||||
/**
|
||||
* Identifiant unique
|
||||
*/
|
||||
id: number
|
||||
|
||||
@ApiProperty({description: "Nom de læ joueur⋅se"})
|
||||
/**
|
||||
* Nom de læ joueur⋅se
|
||||
*/
|
||||
name: string
|
||||
|
||||
/**
|
||||
* Mot de passe hashé
|
||||
*/
|
||||
@Exclude()
|
||||
password: string
|
||||
|
||||
@ApiProperty({description: "Nombre de jetons dont dispose actuellement læ joueur⋅se"})
|
||||
/**
|
||||
* Nombre de jetons dont dispose actuellement læ joueur⋅se
|
||||
*/
|
||||
money: number
|
||||
|
||||
/**
|
||||
* Identifiant du défi en cours d'accomplissement
|
||||
*/
|
||||
@IsOptional()
|
||||
activeChallengeId: number | null
|
||||
}
|
||||
|
Reference in New Issue
Block a user