Skip to content

Commit c770076

Browse files
committed
add new user fields
1 parent c45e151 commit c770076

File tree

3 files changed

+27
-0
lines changed

3 files changed

+27
-0
lines changed

lib/algora/accounts/schemas/user.ex

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,12 @@ defmodule Algora.Accounts.User do
116116

117117
field :billing_name, :string
118118
field :billing_address, :string
119+
field :jurisdiction, :string
120+
field :entity_type, :string
119121
field :executive_name, :string
120122
field :executive_role, :string
123+
field :executive_email, :string
124+
field :recruiting_contract_id, :string
121125

122126
field :system_bio, :string
123127
field :system_bio_meta, :map, default: %{}
@@ -553,8 +557,11 @@ defmodule Algora.Accounts.User do
553557
:preferences,
554558
:executive_name,
555559
:executive_role,
560+
:executive_email,
556561
:billing_name,
557562
:billing_address,
563+
:jurisdiction,
564+
:entity_type,
558565
:hiring_keywords,
559566
:poaching_targets
560567
])
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
defmodule Algora.Repo.Migrations.AddLegalFieldsToUsers do
2+
use Ecto.Migration
3+
4+
def change do
5+
alter table(:users) do
6+
add :jurisdiction, :string
7+
add :entity_type, :string
8+
add :executive_email, :string
9+
end
10+
end
11+
end
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
defmodule Algora.Repo.Migrations.AddRecruitingContractIdToUsers do
2+
use Ecto.Migration
3+
4+
def change do
5+
alter table(:users) do
6+
add :recruiting_contract_id, :string
7+
end
8+
end
9+
end

0 commit comments

Comments
 (0)