init
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user