partition by org_id and add auth
All checks were successful
Build and Publish / build-release (push) Successful in 3m7s
All checks were successful
Build and Publish / build-release (push) Successful in 3m7s
This commit is contained in:
@@ -3,7 +3,9 @@ defmodule CustomerService.Repo.Migrations.AddCustomerTable do
|
||||
|
||||
def change do
|
||||
create table(:customers, primary_key: false) do
|
||||
add :id, :uuid, primary_key: true
|
||||
add :id, :string, primary_key: true
|
||||
add :org_id, :string, null: false
|
||||
add :customer_id, :string, null: false
|
||||
add :first_name, :string
|
||||
add :last_name, :string
|
||||
add :birth_date, :date
|
||||
@@ -21,6 +23,7 @@ defmodule CustomerService.Repo.Migrations.AddCustomerTable do
|
||||
timestamps()
|
||||
end
|
||||
|
||||
create index(:customers, [:org_id])
|
||||
create index(:customers, [:email])
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user