bigInteger('id')->primary(); $table->string('uid',36)->uniqid()->index(); $table->enum('type',['original','translation','nissaya','commentary'])->default('translation'); $table->string('owner_uid',36); $table->bigInteger('editor_id'); $table->string('name',128)->index(); $table->string('summary',1024)->nullable(); $table->string('lang',16); $table->integer('status')->default(10); $table->text('setting')->nullable(); $table->bigInteger('create_time')->index(); $table->bigInteger('modify_time')->index(); $table->timestamp('created_at')->useCurrent(); $table->timestamp('updated_at')->useCurrent()->useCurrentOnUpdate(); $table->timestamp('deleted_at')->nullable(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('channels'); } }