defmodule DaProductApp.PosTransaction do use Ecto.Schema @primary_key {:id, :id, autogenerate: true} schema "pos_transaction" do field :s_txn_type, :string field :s_tid, :string field :s_mid, :string field :s_tid_stan, :string field :s_tid_invoiceno, :string field :s_tid_batchno, :string field :b_tid, :string field :b_mid, :string field :total_amount, :decimal field :auth_amount, :decimal field :cash_amount, :decimal field :tip_amount, :decimal field :approval_code, :string field :reference_no, :string field :response_code, :string field :response_message, :string field :mcc_code, :string field :encrypted_track2, :string field :encrypted_pan, :string field :masked_card_no, :string field :metadata, :string timestamps(inserted_at: :created_dateTime, updated_at: :updated_dateTime, type: :naive_datetime) end end