This repository has been archived on 2022-08-13. You can view files and clone it, but cannot push or open issues or pull requests.
|
defmodule DediboxPrices.Schema do
|
|
@moduledoc """
|
|
Base Schema use ulid as is for primary and foreign key
|
|
"""
|
|
use Ecto.Schema
|
|
|
|
defmacro __using__(_) do
|
|
quote do
|
|
use Ecto.Schema
|
|
@primary_key {:id, :binary_id, autogenerate: true}
|
|
@foreign_key_type :binary_id
|
|
end
|
|
end
|
|
end
|