import { Exclude } from 'class-transformer'
import { Column, CreateDateColumn, Entity, PrimaryGeneratedColumn } from 'typeorm'
import { ChatRoleDto } from '../dto/chat-role.dto'
import { Label } from '../../label/entities/label.entity'

@Entity()
export class ChatRole {
    @PrimaryGeneratedColumn()
    id: number

    @Column()
    name: string

    @Column()
    playerName: string

    @Column()
    describe: string

    @Column()
    condition: string

    @Column()
    pic: String

    @Column()
    chatted: number

    @Column()
    likeNumber: number

    @Column()
    dynamicNumber: number

    @CreateDateColumn()
    createdAt: Date

    @Exclude()
    labelList: Label[]

    @Exclude()
    labels: string[]

}