@@ -3,6 +3,7 @@ defmodule Algora.Jobs.JobPosting do
3
3
use Algora.Schema
4
4
5
5
alias Algora.Accounts.User
6
+ alias Money.Ecto.Composite.Type
6
7
7
8
typed_schema "job_postings" do
8
9
field :title , :string
@@ -21,8 +22,8 @@ defmodule Algora.Jobs.JobPosting do
21
22
# e.g. ["LATAM", "NA"]
22
23
field :regions , { :array , :string } , default: [ ]
23
24
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
26
27
field :seniority , :string
27
28
field :system_tags , { :array , :string } , default: [ ]
28
29
field :primary_tech , :string
@@ -32,7 +33,7 @@ defmodule Algora.Jobs.JobPosting do
32
33
field :location_meta , :map
33
34
field :location_iso_lvl4 , :string
34
35
field :location_types , { :array , Ecto.Enum } , values: [ :remote , :hybrid , :onsite ]
35
- field :locations , { :array , :string }
36
+ field :locations , { :array , :string } , default: [ ]
36
37
37
38
belongs_to :user , User , null: false
38
39
has_many :interviews , Algora.Interviews.JobInterview , foreign_key: :job_posting_id
0 commit comments