Commit bfa0058a by lujunyi

删除无用和userid索引

parent 0f144f3d
......@@ -17,7 +17,7 @@ public function up(): void
$table->bigIncrements('id');
$table->string('name', 64)->index('idx_name')->comment('药品名称');
$table->string('code', 64)->index('idx_code')->comment('简码');
$table->string('standard_code', 64)->unique('uk_standardcode')->comment('本位码');
$table->string('standard_code', 64)->index('idx_standardcode')->comment('本位码');
$table->string('unit', 20)->nullable()->comment('单位');
$table->string('spec', 128)->comment('包装规格');
$table->string('dosage_form', 128)->comment('剂型');
......@@ -27,6 +27,12 @@ public function up(): void
$table->boolean('is_rx')->default(false)->comment('是否处方药');
$table->boolean('is_si')->default(false)->comment('是否医保药品');
$table->integer('product_id')->default(0)->comment('君元ID');
$table->string('preparation_pec')->default('')->comment('制剂规格');
$table->string('product_name', 64)->default('')->comment('商品名');
$table->string('mnemonic', 64)->default('')->comment('助记码');
$table->string('category_code', 32)->default('')->comment('分类码');
$table->string('category_name', 32)->default('')->comment('分类名称');
$table->boolean('is_foreign')->default(false)->comment('是否进口药');
$table->timestamps();
$table->softDeletes();
......
......@@ -31,7 +31,7 @@ public function up(): void
$table->text('introduction')->nullable()->comment('简介');
$table->boolean('status')->default(0)->comment('是否启用[0=未启用,1=启用]');
$table->longText('signed_pic')->nullable()->comment('签名照');
$table->bigInteger('user_id')->nullable()->unique('uk_userid')->comment('用户表ID');
$table->bigInteger('user_id')->nullable()->comment('用户表ID');
$table->boolean('is_auto')->default(1)->comment('是否自动开方[0=否,1=是]');
$table->timestamps();
......
<?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('pharmacy', function (Blueprint $table) {});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('pharmacy', function (Blueprint $table) {
//
});
}
};
<?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('pharmacy', function (Blueprint $table) {});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('pharmacy', function (Blueprint $table) {
//
});
}
};
<?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) {});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('pharmacist', function (Blueprint $table) {
//
});
}
};
<?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('prescription', function (Blueprint $table) {});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('prescription', function (Blueprint $table) {
//
});
}
};
<?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('prescription', function (Blueprint $table) {});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('prescription', function (Blueprint $table) {
//
});
}
};
<?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('prescription', function (Blueprint $table) {});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('prescription', function (Blueprint $table) {
//
});
}
};
<?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('doctor', function (Blueprint $table) {});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('doctor', function (Blueprint $table) {
//
});
}
};
<?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('pharmacy', function (Blueprint $table) {});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('pharmacy', function (Blueprint $table) {
//
});
}
};
<?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('prescription', function (Blueprint $table) {});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('prescription', function (Blueprint $table) {
//
});
}
};
<?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('prescription', function (Blueprint $table) {});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('prescription', function (Blueprint $table) {
//
});
}
};
<?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('diagnosis', function (Blueprint $table) {});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('diagnosis', function (Blueprint $table) {
//
});
}
};
<?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('drug', function (Blueprint $table) {
$table->string('preparation_pec')->default('')->comment('制剂规格');
$table->string('product_name', 64)->default('')->comment('商品名');
$table->string('mnemonic', 64)->default('')->comment('助记码');
$table->string('category_code', 32)->default('')->comment('分类码');
$table->string('category_name', 32)->default('')->comment('分类名称');
$table->boolean('is_foreign')->default(false)->comment('是否进口药');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('drug', 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