id(); $table->string('code', 36)->unique(); $table->string('memo')->nullable(); $table->unsignedFloat('credits', 10); $table->unsignedInteger('uses')->default(1); $table->timestamp('expires_at')->nullable(); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('vouchers'); } };