Files
dpage-api/src/modules/icons/entities/icon.entity.ts
T
2026-03-09 11:38:43 +03:30

14 lines
359 B
TypeScript

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: ['group'] })
export class Icon extends BaseEntity {
@Property()
url!: string;
@ManyToOne(() => Group)
group!: Group;
}