defmodule DaProductApp.Repo.Migrations.CreatePosLogTerminal do use Ecto.Migration def change do create table(:pos_log_terminal, primary_key: false) do add :id, :bigint, primary_key: true, auto_increment: true add :pos_terminal_id, :integer, null: false add :old_serial_number, :string add :new_serial_number, :string add :date_added, :naive_datetime, null: false timestamps() end end end