Commit fec53ea7 by 赵增煜

新增默认药师字段

parent b13c569e
......@@ -25,7 +25,6 @@ public function up()
$table->string('physician_license')->comment('执业资格证书');
$table->longText('signed_pic')->nullable()->comment('签名照');
$table->boolean('status')->default(0)->comment('启用[0=未启用,1=启用]');
$table->boolean('is_default')->default(0)->comment('默认药师[0=否,1=是]');
$table->bigInteger('pharmacy_id')->index('idx_pharmacyid')->comment('药店ID');
$table->timestamps();
$table->softDeletes();
......
<?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::table('pharmacist', function (Blueprint $table) {
$table->boolean('is_default')->default(0)->comment('默认药师[0=否,1=是]');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('pharmacist', function (Blueprint $table) {
//
});
}
};
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