id(); $table->integer('user_id')->unsigned()->comment("用户id"); $table->integer('band_id')->unsigned()->comment("手环id"); $table->timestamp('date')->nullable()->comment("时间"); $table->integer('step')->unsigned()->comment("步数"); $table->string('distance',10)->comment("距离"); $table->string('calories', 10)->comment("卡路里"); $table->string('steps')->comment("步频"); $table->timestamps(); $table->unique(['user_id', 'band_id', 'date']); }); } return Command::SUCCESS; } }