You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
virt/web/tests/Support/PaymentCheckoutFixture.php

34 lines
1.5 KiB
PHP

<?php
use Illuminate\Database\Schema\Blueprint;
function createPaymentCheckoutFixture($schema): void
{
$schema->create('payment_checkout_quotes', function (Blueprint $table): void {
$table->string('order_no')->primary();
$table->string('provider');
$table->unsignedBigInteger('user_id');
$table->integer('quote_version');
$table->unsignedBigInteger('usd_cents');
$table->string('asset');
$table->unsignedBigInteger('expected_units');
$table->string('rate')->nullable();
$table->string('source')->nullable();
$table->unsignedBigInteger('source_at')->nullable();
$table->unsignedBigInteger('fetched_at')->nullable();
$table->unsignedBigInteger('rate_actor_id')->nullable();
$table->string('rate_reason')->nullable();
$table->unsignedBigInteger('quoted_at')->nullable();
$table->unsignedBigInteger('provider_expires_at')->nullable();
$table->unsignedBigInteger('accept_until')->nullable();
$table->string('status')->default('quoted');
$table->string('review_reason')->nullable();
$table->string('receipt_ref')->nullable();
$table->unsignedBigInteger('received_at')->nullable();
$table->unsignedBigInteger('paid_at')->nullable();
$table->unsignedBigInteger('received_units')->nullable();
$table->unsignedBigInteger('credit_cents')->nullable();
$table->unsignedBigInteger('referral_id')->nullable();
});
}