38 lines
857 B
PHP
38 lines
857 B
PHP
<?php
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
return new class extends Migration
|
|
{
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up()
|
|
{
|
|
Schema::create('_contactuses', function (Blueprint $table) {
|
|
$table->bigIncrements('id');
|
|
$table->string('c_name');
|
|
$table->string('c_phone');
|
|
$table->string('c_title');
|
|
$table->string('c_describe');
|
|
$table->timestamps();
|
|
$table->bigInteger('user_id');
|
|
$table->string('admin_response')->nullable();
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
Schema::dropIfExists('_contactuses');
|
|
}
|
|
};
|