mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-03 09:38:54 +00:00
feat(db): generated entities declare their repository type; test casts dropped
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
import { type Opt, type Ref, defineEntity, p } from '@mikro-orm/core';
|
||||
import { EntityRepositoryType, type Opt, type Ref, defineEntity, p } from '@mikro-orm/core';
|
||||
import { NotificationsRepository } from '../repositories/Notifications.repository';
|
||||
import { DbTimestampType } from '../types';
|
||||
import { Users } from './Users.entity';
|
||||
|
||||
export class Notifications {
|
||||
[EntityRepositoryType]?: NotificationsRepository;
|
||||
id!: number & Opt;
|
||||
type!: string;
|
||||
scope!: string;
|
||||
|
||||
Reference in New Issue
Block a user