Asset action log table
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateAssetLogsTable extends Migration {
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('asset_logs', function($table)
|
||||
{
|
||||
$table->increments('id');
|
||||
$table->integer('user_id');
|
||||
$table->string('action_type');
|
||||
$table->integer('asset_id');
|
||||
$table->integer('checkedout_to')->nullable;
|
||||
$table->integer('location_id')->nullable;
|
||||
$table->timestamp('added_on');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::drop('asset_logs');
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user