@dynamatix/gb-schemas 2.0.3 → 2.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/entities/shared/apprivo-sync-journey.entity.ts +9 -5
- package/entities/shared/apprivo-sync-journey.model.ts +13 -0
- package/entities/shared/job-setting.entity.ts +1 -1
- package/package.json +1 -1
- package/prisma/migrations/20250501102630_job_setting_name_change/migration.sql +10 -0
- package/prisma/migrations/20250501104920_milstone_update/migration.sql +30 -0
- package/prisma/schema.prisma +1150 -1144
- package/prisma/shared/apprivo-sync-journey.prisma +15 -8
- package/prisma/shared/job-run.prisma +3 -0
- package/prisma/shared/job-setting.prisma +1 -1
- package/prisma/shared/lookup.prisma +1 -0
|
@@ -1,12 +1,19 @@
|
|
|
1
1
|
model ApprivoSyncJourney {
|
|
2
|
-
id
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
id String @id @default(uuid())
|
|
3
|
+
applicationId String @map("application_id")
|
|
4
|
+
milestoneLid String? @map("milestone_lid")
|
|
5
|
+
mileStoneStatus String @map("milestone_status")
|
|
6
|
+
error String?
|
|
7
|
+
isFirstPull String @map("is_first_pull")
|
|
8
|
+
jobRunId String? @map("job_run_id")
|
|
9
|
+
startTime DateTime? @map("start_time")
|
|
10
|
+
endTime DateTime? @map("end_time")
|
|
11
|
+
createdAt DateTime @default(now()) @map("created_at")
|
|
12
|
+
updatedAt DateTime @updatedAt @map("updated_at")
|
|
13
|
+
|
|
14
|
+
// Relations
|
|
15
|
+
milestone Lookup? @relation("ApprivoSyncJourney", fields: [milestoneLid], references: [id])
|
|
16
|
+
jobRun JobRun? @relation("Milestones", fields: [jobRunId], references: [id])
|
|
10
17
|
|
|
11
18
|
@@map("apprivo_sync_journeys")
|
|
12
19
|
}
|
|
@@ -6,6 +6,9 @@ model JobRun {
|
|
|
6
6
|
completedAt DateTime? @map("completed_at")
|
|
7
7
|
createdAt DateTime @default(now()) @map("created_at")
|
|
8
8
|
updatedAt DateTime @updatedAt @map("updated_at")
|
|
9
|
+
|
|
10
|
+
// Relations
|
|
11
|
+
apprivoSyncJourneys ApprivoSyncJourney[] @relation("Milestones")
|
|
9
12
|
|
|
10
13
|
@@map("job_runs")
|
|
11
14
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
model JobSetting {
|
|
2
2
|
id String @id @default(uuid())
|
|
3
|
-
|
|
3
|
+
name String @map("name")
|
|
4
4
|
isActive Boolean @default(true) @map("is_active")
|
|
5
5
|
frequency String @default("2 hours") @map("frequency")
|
|
6
6
|
jobParams Json @default("{}") @map("job_params")
|
|
@@ -133,6 +133,7 @@ model Lookup {
|
|
|
133
133
|
applicantEmploymentIncome ApplicantEmploymentIncome[] @relation("ApplicantEmploymentIncomeType")
|
|
134
134
|
applicantExpenditure ApplicantExpenditure[] @relation("ExpenditureType")
|
|
135
135
|
|
|
136
|
+
apprivoSyncJourneys ApprivoSyncJourney[] @relation("ApprivoSyncJourney")
|
|
136
137
|
|
|
137
138
|
@@map("lookups")
|
|
138
139
|
@@unique([groupId, value])
|