feat: add updatedAt field to tour from DL Api

This commit is contained in:
Marcel Arndt
2025-06-30 07:53:53 +02:00
parent 5f37743019
commit b9fd09a79f
10 changed files with 38 additions and 0 deletions
@@ -0,0 +1,8 @@
-- AlterTable
ALTER TABLE "Tour" ADD COLUMN "updatedAt" TIMESTAMP(3);
-- AlterTable
ALTER TABLE "TourSource" ADD COLUMN "lastUpdate" TEXT;
-- AlterTable
ALTER TABLE "TourStaging" ADD COLUMN "updatedAt" TIMESTAMP(3);
@@ -31,6 +31,7 @@ model TourSource {
id String?
check String?
createTime String? // yyyy-MM-dd HH:mm:ss 'Europe/Berlin'
lastUpdate String? // yyyy-MM-dd HH:mm:ss 'Europe/Berlin'
empfangenVonId String?
endgen String? // yyyy-MM-dd
serienId String?
@@ -256,6 +257,7 @@ model TourStaging {
consumptionCosts Float @default(0)
createdAt DateTime?
updatedAt DateTime?
}
model PatientStaging {
@@ -394,6 +396,7 @@ model Tour {
revenueDeviation Float @default(0)
createdAt DateTime?
updatedAt DateTime?
deletedAt DateTime?
Ticket Ticket? @relation(fields: [ticketId], references: [id])
ticketId String? @db.Uuid