forked from kol/BlogMatch
45 lines
1.2 KiB
PHP
45 lines
1.2 KiB
PHP
<?php
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
|
|
class CreateReceiverTable extends Migration {
|
|
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up()
|
|
{
|
|
Schema::create('Receiver', function(Blueprint $table)
|
|
{
|
|
$table->string('RID', 50)->primary()->comment('帳號');
|
|
$table->string('password', 50)->comment('密碼');
|
|
$table->string('name', 100)->comment('姓名');
|
|
$table->string('nickName', 100)->comment('暱稱');
|
|
$table->string('phone', 15)->comment('電話');
|
|
$table->string('email', 300)->comment('E-mail');
|
|
$table->string('address', 100)->comment('地址');
|
|
$table->text('indroduction', 65535)->comment('簡介');
|
|
$table->string('photoPath', 30)->nullable()->comment('頭像路徑');
|
|
$table->string('bankName', 50)->comment('匯款銀行(含銀行代碼)');
|
|
$table->string('bankID', 30)->comment('銀行帳號');
|
|
$table->boolean('verifyStatus')->nullable()->default(0)->comment('審核狀態');
|
|
$table->string('bankLocation', 30)->comment('銀行分行名稱');
|
|
});
|
|
}
|
|
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
Schema::drop('Receiver');
|
|
}
|
|
|
|
}
|