Role

Role

Documentation generated from role.entity.ts on Feb 19 2019 at 16:20

A Role represents a collection of permissions which determine the authorization level of a User.

Signature

class Role {
  constructor(input: DeepPartial<Role>)
  @Column() code: string;
  @Column() description: string;
  @Column('simple-array') permissions: Permission[];
  @ManyToMany(type => Channel)
    @JoinTable()
    channels: Channel[];
}

Members

constructor

method
type:
(input: DeepPartial<Role>) => Role

code

property
type:
string

description

property
type:
string

permissions

property
type:
Permission[]

channels

property
type:
Channel[]
alpha