| 12345678910111213141516171819202122232425262728293031323334353637383940 | 
							- <?php
 
- use Illuminate\Support\Facades\Schema;
 
- use Illuminate\Database\Schema\Blueprint;
 
- use Illuminate\Database\Migrations\Migration;
 
- class CreateTasksTable extends Migration
 
- {
 
-     /**
 
-      * Run the migrations.
 
-      *
 
-      * @return void
 
-      */
 
-     public function up()
 
-     {
 
-         Schema::create('tasks', function (Blueprint $table) {
 
-             $table->increments('id');
 
-             $table->string('title')->comment('任务标题');
 
-             $table->string('t_alias')->comment('任务别名');
 
-             $table->integer('points')->comment('积分');
 
-             $table->tinyInteger('once')->comment('是否单次任务(0:否 1:是)');
 
-             $table->tinyInteger('becount')->comment('是否统计次数(0:否 1:是)');
 
-             $table->tinyInteger('times')->comment('赠送积分次数');
 
-             $table->tinyInteger('utype')->comment('会员类型');
 
-             $table->tinyInteger('dayly')->comment('日常任务');
 
-             $table->tinyInteger('status')->comment('状态(0:禁止 1:可用)');
 
-             $table->timestamps();
 
-         });
 
-     }
 
-     /**
 
-      * Reverse the migrations.
 
-      *
 
-      * @return void
 
-      */
 
-     public function down()
 
-     {
 
-         Schema::dropIfExists('tasks');
 
-     }
 
- }
 
 
  |