Gutschriften manuell hinzufügen, Yard 0& tax
This commit is contained in:
parent
e670b92f5d
commit
c02fffd883
24 changed files with 497 additions and 68 deletions
|
|
@ -24,7 +24,8 @@ class CreateUserCreditsTable extends Migration
|
|||
$table->date('date')->nullable();
|
||||
$table->text('credit')->nullable();
|
||||
$table->text('user_margins')->nullable();
|
||||
|
||||
$table->text('user_credits')->nullable();
|
||||
|
||||
$table->boolean('paid_out')->default(false);
|
||||
$table->boolean('cancellation')->default(false);
|
||||
$table->unsignedTinyInteger('status')->index()->default(0);
|
||||
|
|
|
|||
|
|
@ -0,0 +1,45 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateUserCreditMarginsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('user_credit_margins', function (Blueprint $table) {
|
||||
$table->id();
|
||||
|
||||
$table->unsignedInteger('user_id');
|
||||
|
||||
$table->decimal('credit', 13, 2)->nullable();
|
||||
$table->text('message')->nullable();
|
||||
$table->unsignedTinyInteger('status')->index()->default(0);
|
||||
$table->boolean('paid')->default(false);
|
||||
$table->unsignedBigInteger('user_credit_id')->nullable();
|
||||
|
||||
$table->timestamps();
|
||||
|
||||
$table->foreign('user_id')
|
||||
->references('id')
|
||||
->on('users');
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('user_credit_margins');
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue