mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-13 03:41:06 +03:30
add pack and update items & packegs & cycles
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateTablePackes extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('packes', function (Blueprint $table) {
|
||||
$table->bigIncrements('id');
|
||||
$table->string('name');
|
||||
$table->string('unique_id');
|
||||
$table->date('sterile_date')->nullable();
|
||||
$table->date('expire_date')->nullable();
|
||||
$table->string('sterilizer_id');
|
||||
$table->string('cycle_number');
|
||||
$table->string('lot_number');
|
||||
$table->string('department');
|
||||
$table->text('note')->nullable();
|
||||
$table->unsignedBigInteger('user_id');
|
||||
$table->foreign('user_id')->references('id')->on('users');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('packes');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user