39 lines
898 B
PHP
39 lines
898 B
PHP
<?php
|
|
|
|
use Illuminate\Support\Facades\Schema;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Database\Migrations\Migration;
|
|
|
|
class CreateActivitiesTable extends Migration
|
|
{
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up()
|
|
{
|
|
Schema::create('activities', function (Blueprint $table) {
|
|
$table->increments('id');
|
|
$table->integer('account_id');
|
|
$table->integer('people_id');
|
|
$table->integer('activity_type_id');
|
|
$table->longText('description')->nullable();
|
|
$table->dateTime('date_it_happened');
|
|
$table->integer('user_id_of_the_writer');
|
|
$table->softDeletes();
|
|
$table->timestamps();
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
//
|
|
}
|
|
}
|