1
0
Files
lkafu/database/migrations/2019_11_05_111227_create_withdraws_table.php
2020-08-06 14:45:56 +08:00

45 lines
1.1 KiB
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateWithdrawsTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('withdraws', function(Blueprint $table)
{
$table->increments('id');
$table->string('discount_number', 200)->nullable();
$table->integer('user_id')->unsigned()->nullable()->index('user_id');
$table->string('type', 20)->default('Alipay');
$table->integer('price')->unsigned()->default(0);
$table->decimal('tax', 12)->unsigned()->default(0.00)->comment('税费');
$table->decimal('cash', 12)->unsigned()->default(0.00);
$table->string('partner_trade_no', 200)->nullable();
$table->text('remark', 65535)->nullable();
$table->boolean('status')->default(0);
$table->integer('label_status')->default(0);
$table->decimal('label_price', 10)->unsigned()->default(0.00);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('withdraws');
}
}