Skip to content

armgit / TREK

Public Imported from GitHub
0

The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.

536 B
Raw Blame
import { EntityRepositoryType, PrimaryKeyProp, defineEntity, p } from '@mikro-orm/core';
import { AppSettingsRepository } from '../repositories/AppSettings.repository';

export class AppSettings {
  [EntityRepositoryType]?: AppSettingsRepository;
  [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(),
  },
});