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

37 lines
845 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('template',function (Blueprint $table){
$table->id()->autoIncrement();
$table->integer('type_id');
$table->string('name',100)->nullable();
$table->string('subject',100)->nullable();
$table->longText('message')->nullable();
$table->tinyInteger('status')->default(1);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('template');
}
};