2024-04-05 19:04:38 +00:00
|
|
|
defmodule TuskerPush.Repo.Migrations.CreateRegistrations do
|
|
|
|
use Ecto.Migration
|
|
|
|
|
|
|
|
def change do
|
|
|
|
create table(:registrations, primary_key: false) do
|
|
|
|
add :id, :uuid, primary_key: true, null: false
|
|
|
|
|
|
|
|
add :storekit_original_transaction_id, :string, null: false
|
|
|
|
|
|
|
|
add :apns_environment, :string, null: false
|
|
|
|
add :apns_device_token, :string, null: false
|
|
|
|
|
2024-04-06 19:26:44 +00:00
|
|
|
add :push_version, :integer, null: false
|
|
|
|
|
2024-04-05 19:04:38 +00:00
|
|
|
timestamps()
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|