mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-28 23:50:08 +00:00
feat(db): generated entities declare their repository type; test casts dropped
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { Collection, type Opt, type Ref, defineEntity, p } from '@mikro-orm/core';
|
||||
import { Collection, EntityRepositoryType, type Opt, type Ref, defineEntity, p } from '@mikro-orm/core';
|
||||
import { PackingItemsRepository } from '../repositories/PackingItems.repository';
|
||||
import { DbTimestampType } from '../types';
|
||||
import { PackingBags } from './PackingBags.entity';
|
||||
@@ -7,6 +7,7 @@ import { Trips } from './Trips.entity';
|
||||
import { Users } from './Users.entity';
|
||||
|
||||
export class PackingItems {
|
||||
[EntityRepositoryType]?: PackingItemsRepository;
|
||||
id!: number & Opt;
|
||||
trip!: Ref<Trips>;
|
||||
trip_id!: number;
|
||||
|
||||
Reference in New Issue
Block a user