36 lines
866 B
PHP
36 lines
866 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.
|
||
|
|
*/
|
||
|
|
public function up(): void
|
||
|
|
{
|
||
|
|
Schema::create('tickets', function (Blueprint $table) {
|
||
|
|
$table->id();
|
||
|
|
$table->string('from_email');
|
||
|
|
$table->string('to_email');
|
||
|
|
$table->string('subject');
|
||
|
|
$table->text('content');
|
||
|
|
$table->string('parent_id');
|
||
|
|
$table->integer('user_assigned')->default(0);
|
||
|
|
$table->string('status');
|
||
|
|
$table->string('priority');
|
||
|
|
$table->timestamps();
|
||
|
|
});
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Reverse the migrations.
|
||
|
|
*/
|
||
|
|
public function down(): void
|
||
|
|
{
|
||
|
|
Schema::dropIfExists('tickets');
|
||
|
|
}
|
||
|
|
};
|