master
parent
54c5987e01
commit
2632f94aaf
@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateVisitLogsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('visit_logs', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->integer('admin_id')->nullable();
|
||||
$table->integer('department_id')->nullable();
|
||||
$table->integer('user_id')->nullable();
|
||||
$table->integer('visit_id')->nullable();
|
||||
$table->string('remark')->nullable();
|
||||
$table->dateTime('created_at')->nullable();
|
||||
$table->dateTime('updated_at')->nullable();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('visit_logs');
|
||||
}
|
||||
}
|
||||
Loading…
Reference in new issue