import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';

@Entity('permissions')
export class PermissionEntity {
    @PrimaryGeneratedColumn() id: number;
    @Column({ type: 'varchar', length: 64 }) name: string;
    @Column({ type: 'varchar', length: 32 }) entity: string;
    @Column({ type: 'varchar', length: 32 }) category: string;
    @Column({ type: 'varchar', length: 255 }) description: string;
}
