update module icon
This commit is contained in:
@@ -3,14 +3,10 @@ import { BaseEntity } from '../../../common/entities/base.entity';
|
||||
import { Icon } from './icon.entity';
|
||||
|
||||
@Entity({ tableName: 'icon_groups' })
|
||||
@Index({ properties: ['isActive'] })
|
||||
export class Group extends BaseEntity {
|
||||
@Property()
|
||||
name!: string;
|
||||
|
||||
@Property({ default: true })
|
||||
isActive: boolean = true;
|
||||
|
||||
@OneToMany(() => Icon, icon => icon.group)
|
||||
icons = new Collection<Icon>(this);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user