mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-02 09:22:15 +00:00
feat(db): generated entities declare their repository type; test casts dropped
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user