Commit 723e7713 by lujunyi

格式化

parent 91a46573
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema; use Illuminate\Support\Facades\Schema;
class CreateTagTable extends Migration return new class extends Migration
{ {
/** /**
* Run the migrations. * Run the migrations.
...@@ -31,4 +31,4 @@ public function down() ...@@ -31,4 +31,4 @@ public function down()
{ {
Schema::dropIfExists('drug_tag'); Schema::dropIfExists('drug_tag');
} }
} };
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema; use Illuminate\Support\Facades\Schema;
class CreateDoctorCorrectionTable extends Migration return new class extends Migration
{ {
/** /**
* Run the migrations. * Run the migrations.
...@@ -34,4 +34,4 @@ public function down() ...@@ -34,4 +34,4 @@ public function down()
{ {
Schema::dropIfExists('doctor_correction'); Schema::dropIfExists('doctor_correction');
} }
} };
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema; use Illuminate\Support\Facades\Schema;
class CreatePharmacyCorrectionTable extends Migration return new class extends Migration
{ {
/** /**
* Run the migrations. * Run the migrations.
...@@ -34,4 +34,4 @@ public function down() ...@@ -34,4 +34,4 @@ public function down()
{ {
Schema::dropIfExists('pharmacy_correction'); Schema::dropIfExists('pharmacy_correction');
} }
} };
...@@ -14,6 +14,7 @@ public function up(): void ...@@ -14,6 +14,7 @@ public function up(): void
Schema::create('dosage', function (Blueprint $table) { Schema::create('dosage', function (Blueprint $table) {
$table->comment('用法用量'); $table->comment('用法用量');
$table->bigIncrements('id'); $table->bigIncrements('id');
$table->bigInteger('pharmacy_id')->comment('药店表ID');
$table->string('dosage_desc', 128)->comment('用法用量'); $table->string('dosage_desc', 128)->comment('用法用量');
$table->string('dosage_show')->comment('显示内容'); $table->string('dosage_show')->comment('显示内容');
$table->timestamps(); $table->timestamps();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment