@@ -3,6 +3,7 @@ defmodule Algora.Jobs.JobPosting do
33 use Algora.Schema
44
55 alias Algora.Accounts.User
6+ alias Money.Ecto.Composite.Type
67
78 typed_schema "job_postings" do
89 field :title , :string
@@ -21,8 +22,8 @@ defmodule Algora.Jobs.JobPosting do
2122 # e.g. ["LATAM", "NA"]
2223 field :regions , { :array , :string } , default: [ ]
2324 field :compensation , :string
24- field :min_compensation , Money.Ecto.Composite. Type
25- field :max_compensation , Money.Ecto.Composite. Type
25+ field :min_compensation , Type
26+ field :max_compensation , Type
2627 field :seniority , :string
2728 field :system_tags , { :array , :string } , default: [ ]
2829 field :primary_tech , :string
@@ -32,7 +33,7 @@ defmodule Algora.Jobs.JobPosting do
3233 field :location_meta , :map
3334 field :location_iso_lvl4 , :string
3435 field :location_types , { :array , Ecto.Enum } , values: [ :remote , :hybrid , :onsite ]
35- field :locations , { :array , :string }
36+ field :locations , { :array , :string } , default: [ ]
3637
3738 belongs_to :user , User , null: false
3839 has_many :interviews , Algora.Interviews.JobInterview , foreign_key: :job_posting_id
0 commit comments