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.

499 B
Raw Blame
import { EntityRepositoryType, defineEntity, p } from '@mikro-orm/core';
import { MigrationsRepository } from '../repositories/Migrations.repository';

export class Migrations {
  [EntityRepositoryType]?: MigrationsRepository;
  id!: number;
  timestamp!: bigint;
  name!: string;
}

export const MigrationsSchema = defineEntity({
  class: Migrations,
  repository: () => MigrationsRepository,
  properties: {
    id: p.integer().primary(),
    timestamp: p.bigint(),
    name: p.string(),
  },
});