This commit is contained in:
2025-12-15 13:01:49 +03:30
parent 6bcfda19c9
commit a09fa468f2
14 changed files with 392 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
import { Entity, Index, Property, ManyToOne } from '@mikro-orm/core';
import { BaseEntity } from '../../../common/entities/base.entity';
import { Group } from './group.entity';
@Entity({ tableName: 'icons' })
@Index({ properties: ['isActive'] })
@Index({ properties: ['group', 'isActive'] })
export class Icon extends BaseEntity {
@Property()
name!: string;
@Property()
url!: string;
@Property({ default: true })
isActive: boolean = true;
@ManyToOne(() => Group)
group!: Group;
}