This commit is contained in:
2018-07-26 19:38:40 +08:00
parent 4122cd1fdd
commit d7f4fc67db
33 changed files with 111 additions and 106 deletions

View File

@@ -0,0 +1,44 @@
<?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');
}
}