Files
portal-api/database/migrations/2024_02_02_143120_recent_mail.php
2025-07-24 16:18:27 +07:00

39 lines
978 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('mail',function (Blueprint $table) {
$table->id()->autoIncrement();
$table->bigInteger('template_id')->default(0)->index();
$table->string('subject',255)->nullable();
$table->string('to',255)->nullable();
$table->string('cc',255)->nullable();
$table->bigInteger('customer_id')->default(0)->index();
$table->text('message')->nullable();
$table->tinyInteger('status')->default(1);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('mail');
}
};