import { Column, Entity, PrimaryColumn } from 'typeorm';
import { ApiProperty } from '@nestjs/swagger';
import { EntityHelper } from 'src/utils/entity-helper';

@Entity()
export class Translation extends EntityHelper {
  @ApiProperty({ example: 1 })
  @PrimaryColumn()
  key: string;

  @PrimaryColumn()
  language: 'de' | 'en';

  @ApiProperty({ example: 'Admin' })
  @Column()
  value: string;
}
