@@ -21,6 +21,7 @@ defmodule Algora.Jobs.JobPosting do
21
21
# e.g. ["LATAM", "NA"]
22
22
field :regions , { :array , :string } , default: [ ]
23
23
field :compensation , :string
24
+ field :max_compensation , Money.Ecto.Composite.Type
24
25
field :seniority , :string
25
26
field :system_tags , { :array , :string } , default: [ ]
26
27
field :primary_tech , :string
@@ -29,6 +30,8 @@ defmodule Algora.Jobs.JobPosting do
29
30
30
31
field :location_meta , :map
31
32
field :location_iso_lvl4 , :string
33
+ field :location_types , { :array , Ecto.Enum } , values: [ :remote , :hybrid , :onsite ]
34
+ field :locations , { :array , :string }
32
35
33
36
belongs_to :user , User , null: false
34
37
has_many :interviews , Algora.Interviews.JobInterview , foreign_key: :job_posting_id
@@ -60,7 +63,10 @@ defmodule Algora.Jobs.JobPosting do
60
63
:location_iso_lvl4 ,
61
64
:primary_tech ,
62
65
:primary_tag ,
63
- :full_description
66
+ :full_description ,
67
+ :location_types ,
68
+ :locations ,
69
+ :max_compensation
64
70
] )
65
71
|> generate_id ( )
66
72
|> validate_required ( [ :url , :company_name , :company_url , :email ] )
0 commit comments