first commit
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import { Column, Entity, PrimaryColumn } from 'typeorm';
|
||||
import { ApiProperty } from '@nestjs/swagger';
|
||||
import { Allow } from 'class-validator';
|
||||
import { EntityHelper } from 'src/utils/entity-helper';
|
||||
|
||||
@Entity()
|
||||
export class TeamRole extends EntityHelper {
|
||||
@ApiProperty({ example: 1 })
|
||||
@PrimaryColumn()
|
||||
id: number;
|
||||
|
||||
@Allow()
|
||||
@ApiProperty({ example: 'player' })
|
||||
@Column()
|
||||
name?: string;
|
||||
}
|
||||
Reference in New Issue
Block a user