BlogMatch/database/migrations/2018_07_28_175045_create_CaseBuilder_table.php

47 lines
1.4 KiB
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateCaseBuilderTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('CaseBuilder', function(Blueprint $table)
{
$table->string('CBID', 50)->primary()->comment('帳號');
$table->string('password', 50)->comment('密碼');
$table->string('companyName', 50)->comment('公司行號');
$table->string('companyPhone', 20)->comment('公司電話');
$table->string('companyAddress', 50)->comment('公司地址');
$table->string('uniformNumber', 10)->comment('統一編號');
$table->string('contact', 50)->comment('聯絡人');
$table->string('contactNumber', 20)->comment('聯絡人電話');
$table->string('contactEmail', 50)->comment('聯絡人E-mail');
$table->string('isProxy', 30)->comment('代理/自營');
$table->string('frequency', 30)->comment('發案頻率');
$table->string('payment', 30)->comment('付款方式');
$table->date('startServiceDate')->nullable()->comment('服務起始日期');
$table->date('endServiceDate')->nullable()->comment('服務終止日期');
$table->integer('verifyStatus')->nullable()->default(0)->comment('審核狀態');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('CaseBuilder');
}
}