mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-19 13:36:48 +00:00
18 lines
464 B
TypeScript
18 lines
464 B
TypeScript
import { PrimaryKeyProp, defineEntity, p } from '@mikro-orm/core';
|
|
import { AppSettingsRepository } from '../repositories/AppSettings.repository';
|
|
|
|
export class AppSettings {
|
|
[PrimaryKeyProp]?: 'key';
|
|
key?: string | null;
|
|
value?: string | null;
|
|
}
|
|
|
|
export const AppSettingsSchema = defineEntity({
|
|
class: AppSettings,
|
|
repository: () => AppSettingsRepository,
|
|
properties: {
|
|
key: p.text().primary().nullable(),
|
|
value: p.text().nullable(),
|
|
},
|
|
});
|