<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; class CreateTrackingCodeProcess extends Migration { public function up() { Schema::create('tracking_code_process', function (Blueprint $TNrxH) { $TNrxH->increments('id'); $TNrxH->timestamps(); $TNrxH->integer('pid')->nullable()->comment(''); $TNrxH->integer('sort')->nullable()->comment(''); $TNrxH->string('title', 50)->nullable()->comment(''); }); Schema::create('tracking_code_process_item', function (Blueprint $TNrxH) { $TNrxH->increments('id'); $TNrxH->timestamps(); $TNrxH->integer('codeId')->nullable()->comment(''); $TNrxH->integer('processId')->nullable()->comment(''); $TNrxH->string('operator', 20)->nullable()->comment(''); $TNrxH->dateTime('operateTime')->nullable()->comment(''); $TNrxH->string('remark', 400)->nullable()->comment(''); $TNrxH->index(array('codeId')); }); } public function down() { } }