mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-29 08:00:06 +00:00
refactor(db): every entity in the snake_case shape; document-sync entities added; one repository per entity
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { PrimaryKeyProp, defineEntity, p, EntityRepository } from '@mikro-orm/core';
|
||||
import { PrimaryKeyProp, defineEntity, p } from '@mikro-orm/core';
|
||||
import { AppSettingsRepository } from '../repositories/AppSettings.repository';
|
||||
|
||||
export class AppSettings {
|
||||
[PrimaryKeyProp]?: 'key';
|
||||
@@ -6,8 +7,6 @@ export class AppSettings {
|
||||
value?: string | null;
|
||||
}
|
||||
|
||||
export class AppSettingsRepository extends EntityRepository<AppSettings> {}
|
||||
|
||||
export const AppSettingsSchema = defineEntity({
|
||||
class: AppSettings,
|
||||
repository: () => AppSettingsRepository,
|
||||
|
||||
Reference in New Issue
Block a user