Несколько отделений для врачей
Поправил подсчет операций Закончил функцию наполнения отчетов
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('user_departments', function (Blueprint $table) {
|
||||
$table->id('user_department_id');
|
||||
$table->foreignIdFor(\App\Models\User::class, 'rf_user_id');
|
||||
$table->foreignIdFor(\App\Models\Department::class, 'rf_department_id');
|
||||
$table->boolean('is_favorite')->default(false);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('user_departments');
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user