Skip to content

Commit 0ca8641

Browse files
committed
add new provider meta fields
1 parent 8f8ee9c commit 0ca8641

File tree

3 files changed

+23
-1
lines changed

3 files changed

+23
-1
lines changed

lib/algora/matches/schemas/job_match.ex

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ defmodule Algora.Matches.JobMatch do
2828
field :provider_application_id, :string
2929
field :provider_candidate_meta, :map, default: %{}
3030
field :provider_application_meta, :map, default: %{}
31+
field :provider_feedback_meta, :map, default: %{}
32+
field :provider_interviews_meta, :map, default: %{}
3133

3234
belongs_to :user, Algora.Accounts.User
3335
belongs_to :job_posting, Algora.Jobs.JobPosting
@@ -59,7 +61,9 @@ defmodule Algora.Matches.JobMatch do
5961
:provider_candidate_id,
6062
:provider_application_id,
6163
:provider_candidate_meta,
62-
:provider_application_meta
64+
:provider_application_meta,
65+
:provider_feedback_meta,
66+
:provider_interviews_meta
6367
])
6468
|> validate_required([:user_id, :job_posting_id])
6569
|> validate_inclusion(:status, [:pending, :discarded, :automatched, :dripped, :approved, :highlighted])
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
defmodule Algora.Repo.Migrations.AddProviderFeedbackMetaToJobMatches do
2+
use Ecto.Migration
3+
4+
def change do
5+
alter table(:job_matches) do
6+
add :provider_feedback_meta, :map, default: "{}"
7+
end
8+
end
9+
end
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
defmodule Algora.Repo.Migrations.AddProviderInterviewsMetaToJobMatches do
2+
use Ecto.Migration
3+
4+
def change do
5+
alter table(:job_matches) do
6+
add :provider_interviews_meta, :map, default: "{}"
7+
end
8+
end
9+
end

0 commit comments

Comments
 (0)