forked from oyd/bagis
parent
4653cf74a2
commit
03d41d55a3
@ -0,0 +1,10 @@ |
||||
<?php |
||||
|
||||
namespace App; |
||||
|
||||
use Illuminate\Database\Eloquent\Model; |
||||
|
||||
class Donation extends Model |
||||
{ |
||||
// |
||||
} |
@ -0,0 +1,48 @@ |
||||
<?php |
||||
|
||||
use Illuminate\Database\Migrations\Migration; |
||||
use Illuminate\Database\Schema\Blueprint; |
||||
use Illuminate\Support\Facades\Schema; |
||||
|
||||
class CreateDonationsTable extends Migration |
||||
{ |
||||
/** |
||||
* Run the migrations. |
||||
* |
||||
* @return void |
||||
*/ |
||||
public function up() |
||||
{ |
||||
Schema::create('donations', function (Blueprint $table) { |
||||
$table->id(); |
||||
$table->foreignId('user_id')->nullable()->default(null); |
||||
$table->string('conversation_id'); |
||||
$table->string('first_name'); |
||||
$table->string('last_name'); |
||||
$table->boolean('show_name_on_list')->default(false); |
||||
$table->string('email'); |
||||
$table->float("amount")->unsigned(); |
||||
$table->enum("currency", ["USD", "EUR", "TL"]); |
||||
$table->enum("frequency", ["once", "monthly", "annually"]); |
||||
$table->json("billing_info"); |
||||
$table->json("payment_result"); |
||||
$table->string('card_token')->nullable()->default(null); |
||||
$table->string('card_user_key')->nullable()->default(null); |
||||
$table->string('card_cvc')->nullable()->default(null); |
||||
$table->date('next_payment_at')->nullable()->default(null); |
||||
$table->integer('next_payment_tried')->default(0); |
||||
$table->foreignId('next_payment_id')->nullable()->default(null); |
||||
$table->timestamps(); |
||||
}); |
||||
} |
||||
|
||||
/** |
||||
* Reverse the migrations. |
||||
* |
||||
* @return void |
||||
*/ |
||||
public function down() |
||||
{ |
||||
Schema::dropIfExists('donations'); |
||||
} |
||||
} |
File diff suppressed because one or more lines are too long
@ -1,4 +1,4 @@ |
||||
{ |
||||
"/js/app.js": "/js/app.js?id=d309ac63e39e34e21835", |
||||
"/js/app.js": "/js/app.js?id=8c7cd7cf79e301166cc3", |
||||
"/css/app.css": "/css/app.css?id=36412c9f34a08f26af3c" |
||||
} |
||||
|
Loading…
Reference in new issue