bigIncrements('id'); $table->string('belongs_type')->nullable(); $table->integer('belongs_id')->nullable(); $table->string('original_name')->nullable()->comment('原始文件名'); $table->string('folder')->nullable()->comment('存储目录'); $table->string('name')->nullable()->comment('存储文件名字'); $table->string('extension')->nullable()->comment('后缀名字'); $table->integer('size')->nullable()->comment('文件大小'); $table->string('creator_type')->nullable()->comment('创建用户组'); $table->integer('creator_id')->nullable()->comment('创建用户id'); $table->timestamps(); $table->softDeletes(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('uploads'); } }