mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-06 18:54:17 +00:00
Align trip tags and desktop UI with CI contracts
This commit is contained in:
@@ -54,7 +54,6 @@ export class Trips {
|
||||
user_id!: number;
|
||||
title!: string;
|
||||
description?: string | null;
|
||||
tags_json?: string | null;
|
||||
start_date?: string | null;
|
||||
end_date?: string | null;
|
||||
currency?: string | null = 'EUR';
|
||||
@@ -66,6 +65,7 @@ export class Trips {
|
||||
updated_at?: string | null;
|
||||
reminder_sent_for?: string | null;
|
||||
costs_mode: TTripsCostsMode & Opt = TripsCostsMode.SPLIT;
|
||||
tags_json?: string | null;
|
||||
assistant_attachments_collection = new Collection<AssistantAttachments>(this);
|
||||
assistant_threads_collection = new Collection<AssistantThreads>(this);
|
||||
budget_category_order_collection = new Collection<BudgetCategoryOrder>(this);
|
||||
@@ -136,7 +136,6 @@ export const TripsSchema = defineEntity({
|
||||
user_id: p.integer().persist(false).index('idx_trips_user_id'),
|
||||
title: p.text(),
|
||||
description: p.text().nullable(),
|
||||
tags_json: p.text().nullable(),
|
||||
start_date: p.text().nullable(),
|
||||
end_date: p.text().nullable(),
|
||||
currency: p.text().nullable(),
|
||||
@@ -148,6 +147,7 @@ export const TripsSchema = defineEntity({
|
||||
updated_at: p.type(DbTimestampType).nullable().defaultRaw(`CURRENT_TIMESTAMP`),
|
||||
reminder_sent_for: p.text().nullable(),
|
||||
costs_mode: p.enum(() => TripsCostsMode).default('split'),
|
||||
tags_json: p.text().nullable(),
|
||||
assistant_attachments_collection: () => p.oneToMany(AssistantAttachments).mappedBy('trip').hidden(),
|
||||
assistant_threads_collection: () => p.oneToMany(AssistantThreads).mappedBy('trip').hidden(),
|
||||
budget_category_order_collection: () => p.oneToMany(BudgetCategoryOrder).mappedBy('trip').hidden(),
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Migration } from '@mikro-orm/migrations';
|
||||
import { engineDdl } from '../migration-utils';
|
||||
import { Migration } from '@mikro-orm/migrations';
|
||||
|
||||
export class Migration20200101046650_trips_can_carry_custom_tags extends Migration {
|
||||
override name = 'Migration20200101046650_trips_can_carry_custom_tags';
|
||||
|
||||
Reference in New Issue
Block a user