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,7 +1,8 @@
import { PrimaryKeyProp, defineEntity, p } from '@mikro-orm/core';
import { EntityRepositoryType, PrimaryKeyProp, defineEntity, p } from '@mikro-orm/core';
import { PluginOauthStateRepository } from '../repositories/PluginOauthState.repository';
export class PluginOauthState {
[EntityRepositoryType]?: PluginOauthStateRepository;
[PrimaryKeyProp]?: 'state';
state?: string | null;
plugin_id!: string;