chore(db): regenerate entities after the dev merge

This commit is contained in:
Maurice
2026-10-07 15:44:54 +02:00
parent 7ca7dfd555
commit 1bfe57d75c
5 changed files with 7 additions and 9 deletions
+3 -5
View File
@@ -1,3 +1,4 @@
import { Collection, EntityRepositoryType, type Opt, type Ref, defineEntity, p } from '@mikro-orm/core';
import { PlacesRepository } from '../repositories/Places.repository';
import { DbTimestampType } from '../types';
import { BudgetItems } from './BudgetItems.entity';
@@ -16,7 +17,6 @@ import { Tags } from './Tags.entity';
import { Tours } from './Tours.entity';
import { TripFiles } from './TripFiles.entity';
import { Trips } from './Trips.entity';
import { Collection, EntityRepositoryType, type Opt, type Ref, defineEntity, p } from '@mikro-orm/core';
export class Places {
[EntityRepositoryType]?: PlacesRepository;
@@ -112,11 +112,9 @@ export const PlacesSchema = defineEntity({
source: p.text().nullable(),
email: p.text().nullable(),
opening_hours: p.text().nullable(),
place_tags: () =>
p.manyToMany(Tags).pivotTable('place_tags').joinColumn('place_id').inverseJoinColumn('tag_id').hidden(),
place_tags: () => p.manyToMany(Tags).pivotTable('place_tags').joinColumn('place_id').inverseJoinColumn('tag_id').hidden(),
budget_items_collection: () => p.oneToMany(BudgetItems).mappedBy('place').hidden(),
dawarich_visit_suggestions_collection: () =>
p.oneToMany(DawarichVisitSuggestions).mappedBy('acceptedPlace').hidden(),
dawarich_visit_suggestions_collection: () => p.oneToMany(DawarichVisitSuggestions).mappedBy('acceptedPlace').hidden(),
day_accommodations_collection: () => p.oneToMany(DayAccommodations).mappedBy('place').hidden(),
day_assignments_collection: () => p.oneToMany(DayAssignments).mappedBy('place').hidden(),
file_links_collection: () => p.oneToMany(FileLinks).mappedBy('place').hidden(),
+1 -1
View File
@@ -1,6 +1,6 @@
import { Collection, EntityRepositoryType, type Opt, PrimaryKeyProp, defineEntity, p } from '@mikro-orm/core';
import { TourTypesRepository } from '../repositories/TourTypes.repository';
import { Tours } from './Tours.entity';
import { Collection, EntityRepositoryType, type Opt, PrimaryKeyProp, defineEntity, p } from '@mikro-orm/core';
export class TourTypes {
[EntityRepositoryType]?: TourTypesRepository;
@@ -1,6 +1,6 @@
import { EntityRepositoryType, type Opt, type Ref, defineEntity, p } from '@mikro-orm/core';
import { TourWaypointsRepository } from '../repositories/TourWaypoints.repository';
import { Tours } from './Tours.entity';
import { EntityRepositoryType, type Opt, type Ref, defineEntity, p } from '@mikro-orm/core';
export class TourWaypoints {
[EntityRepositoryType]?: TourWaypointsRepository;
+1 -1
View File
@@ -1,8 +1,8 @@
import { Collection, EntityRepositoryType, type Opt, PrimaryKeyProp, type Ref, defineEntity, p } from '@mikro-orm/core';
import { ToursRepository } from '../repositories/Tours.repository';
import { Places } from './Places.entity';
import { TourTypes } from './TourTypes.entity';
import { TourWaypoints } from './TourWaypoints.entity';
import { Collection, EntityRepositoryType, type Opt, PrimaryKeyProp, type Ref, defineEntity, p } from '@mikro-orm/core';
export class Tours {
[EntityRepositoryType]?: ToursRepository;
+1 -1
View File
@@ -1,3 +1,4 @@
import type { EntitySchema } from '@mikro-orm/core';
import { AddonsSchema } from './Addons.entity';
import { AppSettingsSchema } from './AppSettings.entity';
import { AssignmentParticipantsSchema } from './AssignmentParticipants.entity';
@@ -128,7 +129,6 @@ import { VisitedCountriesSchema } from './VisitedCountries.entity';
import { VisitedRegionsSchema } from './VisitedRegions.entity';
import { WebauthnChallengesSchema } from './WebauthnChallenges.entity';
import { WebauthnCredentialsSchema } from './WebauthnCredentials.entity';
import type { EntitySchema } from '@mikro-orm/core';
export const ALL_ENTITIES: readonly EntitySchema[] = [
AddonsSchema,