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

@@ -4,6 +4,8 @@ defmodule CustomerService.Projections.QuickLead do
@derive {Jason.Encoder,
only: [
:id,
:org_id,
:lead_id,
:name,
:email,
:phone,
@@ -22,7 +24,7 @@ defmodule CustomerService.Projections.QuickLead do
@derive {
Flop.Schema,
filterable: [:status, :priority, :source, :assigned_to, :search],
filterable: [:org_id, :status, :priority, :source, :assigned_to, :search],
sortable: [:name, :company_name, :status, :priority, :inserted_at],
default_limit: 20,
max_limit: 100,
@@ -35,10 +37,13 @@ defmodule CustomerService.Projections.QuickLead do
]
}
@primary_key {:id, :binary_id, autogenerate: false}
@primary_key {:id, :string, autogenerate: false}
@timestamps_opts [type: :utc_datetime_usec]
schema "quick_leads" do
field :org_id, :string
field :lead_id, :string
field :name, :string
field :email, :string
field :phone, :string