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.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])
|
||||
|
||||
Reference in New Issue
Block a user