BlogMatch/database/migrations/2018_07_26_113627_create_Commissioned_table.php
2018-07-26 19:38:40 +08:00

55 lines
2.2 KiB
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateCommissionedTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('Commissioned', function(Blueprint $table)
{
$table->string('ID', 50)->primary()->comment('委託編號');
$table->string('TCID', 50)->index('TCID')->comment('案件編號');
$table->string('RID', 50)->index('RID')->comment('達人編號');
$table->date('commissionedDate')->comment('委託日期');
$table->text('pointOfArtical', 65535)->comment('撰文要點');
$table->string('amountOfwords', 50)->comment('字數要求');
$table->string('numOfImgesRequired', 50)->comment('圖片數要求');
$table->integer('FlightNegotiationStatus')->nullable()->default(0)->comment('檔期協商狀態');
$table->integer('PriceNegotiationStatus')->nullable()->default(0)->comment('價格協商狀態');
$table->integer('caseExecutionStatus')->nullable()->default(0)->comment('案件執行狀態');
$table->text('commentOfReceiver', 65535)->nullable()->comment('對達人之評價');
$table->text('commentOfCaseBuilder', 65535)->nullable()->comment('對品牌/代理商之評價');
$table->string('reasonOfTerminate', 50)->nullable()->comment('終止原因');
$table->date('terminationDate')->nullable()->comment('終止時間');
$table->date('PaymentTime')->nullable()->comment('付款時間');
$table->string('paymentMethod', 10)->nullable()->comment('付款方式');
$table->string('bankName', 50)->nullable()->comment('付款銀行');
$table->integer('amountOfPay')->nullable()->default(0)->comment('付款金額');
$table->string('AccuountNumber', 30)->nullable()->comment('付款人帳號');
$table->string('MailID', 20)->nullable()->comment('郵件編號');
$table->integer('caseDifficulty')->nullable()->default(0)->comment('案件難易度');
$table->integer('receiverRating')->nullable()->default(0)->comment('達人評等');
$table->integer('casebuilderRating')->nullable()->default(0)->comment('品牌/代理商評等');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('Commissioned');
}
}