Current section
Files
Jump to
Current section
Files
lib/arke_postgres/tables/arke_schema_field.ex
defmodule ArkePostgres.Tables.ArkeSchemaField do
use Ecto.Schema
import Ecto.Changeset
@arke_schema_field_fields ~w[arke_schema_id arke_parameter_id configuration]a
@foreign_key_type :string
schema "arke_schema_field" do
belongs_to(:arke_schema, ArkePostgres.ArkeSchema, primary_key: true)
belongs_to(:arke_field, ArkePostgres.ArkeField, primary_key: true)
field(:configuration, :map, default: %{})
end
end