16 lines
360 B
TypeScript
16 lines
360 B
TypeScript
import { UserMetaEntity } from '@freeblox/shared';
|
|
import { Exclude, Expose } from 'class-transformer';
|
|
import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';
|
|
|
|
@Entity('privileges')
|
|
@Exclude()
|
|
export class PrivilegeEntity extends UserMetaEntity {
|
|
@PrimaryGeneratedColumn()
|
|
@Expose()
|
|
id: number;
|
|
|
|
@Column()
|
|
@Expose()
|
|
privilege: string;
|
|
}
|