@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.
@@ -1,12 +1,19 @@
1
1
  model ApprivoSyncJourney {
2
- id String @id @default(uuid())
3
- journeyId String @map("journey_id")
4
- status String
5
- error String?
6
- startedAt DateTime @map("started_at")
7
- completedAt DateTime? @map("completed_at")
8
- createdAt DateTime @default(now()) @map("created_at")
9
- updatedAt DateTime @updatedAt @map("updated_at")
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
- jobName String @map("job_name")
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])