init commit
All checks were successful
Build and Publish / build-release (push) Successful in 4m46s

This commit is contained in:
2026-04-15 15:31:56 -05:00
commit f566d04a04
41 changed files with 2430 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
defmodule ProviderService.Repo.Migrations.CreateProviders do
use Ecto.Migration
def change do
create table(:providers, primary_key: false) do
add(:provider_id, :string, primary_key: true)
add(:name, :string, null: false)
add(:email, :string)
add(:phone, :string)
add(:contact_name, :string)
add(:ruc, :string)
add(:address, :string)
add(:active, :boolean, default: true, null: false)
add(:templates, :map, default: %{})
add(:default_templates, :map, default: %{})
timestamps(type: :utc_datetime_usec)
end
create(index(:providers, [:active]))
create(index(:providers, [:name]))
end
end

View File

@@ -0,0 +1,12 @@
defmodule PolicyService.Repo.Migrations.CreateProjectionVersions do
use Ecto.Migration
def change do
create table(:projection_versions, primary_key: false) do
add(:projection_name, :text, primary_key: true)
add(:last_seen_event_number, :bigint)
timestamps(type: :naive_datetime_usec)
end
end
end