Permission fixes and washing reservation fixes
This commit is contained in:
@@ -19,8 +19,11 @@ class CreateWashingReservations extends Migration
|
||||
$table->id();
|
||||
$table->timestamp("time");
|
||||
$table->timestamps();
|
||||
$table->unsignedBigInteger('machine');
|
||||
$table->foreign("machine")->references('id')->on('washing_machines');
|
||||
$table->unsignedBigInteger('machine_id');
|
||||
$table->foreign("machine_id")->references('id')->on('washing_machines');
|
||||
$table->unsignedBigInteger('user_id');
|
||||
$table->foreign("user_id")->references('id')->on('users');
|
||||
$table->unique(['time', 'machine_id']);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user