Subiendo proyecto completo sin restricciones de git ignore

This commit is contained in:
Jose Sanchez
2023-08-17 11:44:02 -04:00
parent a0d4f5ba3b
commit 20f1c60600
19921 changed files with 2509159 additions and 45 deletions

View File

@@ -0,0 +1,39 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreatePaykuTransactionsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('payku_transactions', function (Blueprint $table) {
$table->string('id')->index()->unique(); // transaction_id: 1, 2, 3
$table->string('status')->nullable(); // ['success', '...']
$table->string('order')->nullable()->unique(); // before: order: trx8956fbcc9e5f4ba62
$table->string('email')->nullable();
$table->string('subject')->nullable();
$table->text('url')->nullable();
$table->unsignedInteger('amount')->nullable();
$table->datetime('notified_at')->nullable();
$table->timestamp('created_at')->nullable();
$table->timestamp('updated_at')->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('payku_transactions');
}
}

View File

@@ -0,0 +1,44 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreatePaykuPaymentsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('payku_payments', function (Blueprint $table) {
$table->string('transaction_id')->unique();
$table->date('start');
$table->date('end');
$table->string('media');
$table->string('verification_key');
$table->string('authorization_code');
$table->unsignedInteger('last_4_digits')->nullable();
$table->string('installments')->nullable();
$table->string('card_type')->nullable();
$table->string('additional_parameters')->nullable();
$table->string('currency');
$table->timestamp('created_at')->nullable();
$table->timestamp('updated_at')->nullable();
$table->foreign('transaction_id')->references('id')->on('payku_transactions');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('payku_payments');
}
}

View File

@@ -0,0 +1,36 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddNewColumnsToTables extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('payku_transactions', function (Blueprint $table) {
$table->string('full_name')->nullable();
});
Schema::table('payku_payments', function (Blueprint $table) {
$table->string('payment_key')->nullable();
$table->string('transaction_key')->nullable();
$table->datetime('deposit_date')->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('payku_payments');
}
}