partition by org_id and add auth
All checks were successful
Build and Publish / build-release (push) Successful in 3m7s

This commit is contained in:
2026-05-15 10:08:54 -05:00
parent a0b5e0c0b3
commit 4519f797fd
26 changed files with 687 additions and 112 deletions

View File

@@ -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