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.AddQuickLeadsTable do
def change do
create table(:quick_leads, primary_key: false) do
add :id, :uuid, primary_key: true
add :id, :string, primary_key: true
add :org_id, :string, null: false
add :lead_id, :string, null: false
add :name, :string
add :email, :string
add :phone, :string
@@ -19,6 +21,7 @@ defmodule CustomerService.Repo.Migrations.AddQuickLeadsTable do
timestamps()
end
create index(:quick_leads, [:org_id])
create index(:quick_leads, [:status])
create index(:quick_leads, [:priority])
create index(:quick_leads, [:source])