feat(db): generated entities declare their repository type; test casts dropped

This commit is contained in:
jubnl
2026-09-22 18:01:45 +02:00
parent 46bb11f508
commit 66703efeb7
161 changed files with 610 additions and 224 deletions
@@ -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;