Files
dmenu-api/src/modules/icons/entities/group.entity.ts
T
2025-12-15 16:46:36 +03:30

13 lines
383 B
TypeScript

import { Entity, Index, Property, Collection, OneToMany } from '@mikro-orm/core';
import { BaseEntity } from '../../../common/entities/base.entity';
import { Icon } from './icon.entity';
@Entity({ tableName: 'icon_groups' })
export class Group extends BaseEntity {
@Property()
name!: string;
@OneToMany(() => Icon, icon => icon.group)
icons = new Collection<Icon>(this);
}