update module icon

This commit is contained in:
2025-12-15 16:46:36 +03:30
parent 048adb5997
commit 83f868ff3d
8 changed files with 128 additions and 39 deletions
@@ -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);
}