| 123456789101112131415161718192021222324252627282930313233343536373839 | 
							- <?php
 
- use Illuminate\Support\Facades\Schema;
 
- use Illuminate\Database\Schema\Blueprint;
 
- use Illuminate\Database\Migrations\Migration;
 
- class CreateTplsTable extends Migration
 
- {
 
-     /**
 
-      * Run the migrations.
 
-      *
 
-      * @return void
 
-      */
 
-     public function up()
 
-     {
 
-         Schema::create('tpls', function (Blueprint $table) {
 
-             $table->increments('id');
 
-             $table->tinyInteger('tpl_type')->index()->default('1')->comment('模板类型(1:企业 2:个人)');
 
-             $table->string('name')->comment('模板名称');
 
-             $table->tinyInteger('display')->comment('是否显示(1:显示 0:不显示)');
 
-             $table->tinyInteger('default')->comment('是否默认模板(1:是 0:不是)');
 
-             $table->integer('price')->comment('价格(积分)');
 
-             $table->string('dir')->comment('路径')->nullable();
 
-             $table->string('images')->comment('图片')->nullable();
 
-             $table->timestamps();
 
-             $table->softDeletes();
 
-         });
 
-     }
 
-     /**
 
-      * Reverse the migrations.
 
-      *
 
-      * @return void
 
-      */
 
-     public function down()
 
-     {
 
-         Schema::dropIfExists('tpls');
 
-     }
 
- }
 
 
  |