id(); $table->string('name')->comment('名称'); $table->tinyInteger('type')->comment('类型: 1 饲料, 2 肥料'); $table->integer('year')->comment('年'); $table->tinyInteger('quarter')->comment('季度'); $table->unsignedDecimal('lowest_price', 18, 2)->comment('最低价格'); $table->unsignedDecimal('highest_price', 18, 2)->comment('最低价格'); $table->string('unit')->comment('单位'); $table->unsignedBigInteger('created_by')->comment('创建人ID'); $table->unsignedBigInteger('updated_by')->comment('修改人ID'); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('materiels'); } };