bigIncrements('id'); $table->string('name')->nullable(); $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')->nullable(); $table->text('note')->nullable(); $table->unsignedBigInteger('user_id'); $table->foreign('user_id')->references('id')->on('users'); $table->unsignedBigInteger('package_id')->nullable(); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('labels'); } }