edms/database/migrations/2021_03_08_062758_create_co...

39 lines
1018 B
PHP

<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateContactsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('contacts', function (Blueprint $table) {
$table->increments('id');
$table->string('organization_name', 255)->nullable();
$table->string('alternative_name', 255)->nullable();
$table->text('address')->nullable();
$table->string('telephone_number', 255)->nullable();
$table->text('notes')->nullable();
$table->unsignedTinyInteger('status')->default(1);
$table->unsignedTinyInteger('is_approved')->default(1);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('contacts');
}
}