Kundesone/database/migrations/2024_06_15_090243_create_ti...

36 lines
866 B
PHP
Raw Normal View History

2024-06-26 12:28:46 +00:00
<?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');
}
};