id(); $table->date('purchase_date'); $table->unsignedInteger('total'); $table->string('note', 100)->nullable(); $table->timestamp('created_at')->useCurrent(); $table->timestamp('updated_at')->nullable()->useCurrentOnUpdate(); $table->softDeletes(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('purchases'); } };