tambah table log update np sjp

This commit is contained in:
Fadila
2025-09-22 09:19:52 +07:00
parent a29c39086a
commit 42ea2e108d
4 changed files with 88 additions and 2 deletions

View File

@@ -0,0 +1,35 @@
<?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('livechat_update_logs', function (Blueprint $table) {
$table->id();
$table->unsignedBigInteger('nIDLivechat');
$table->unsignedBigInteger('nIDSummary')->nullable();
$table->string('status');
$table->text('response')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('livechat_update_logs');
}
};

View File

@@ -0,0 +1,19 @@
<?php
namespace Database\Seeders;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
class LivechatUpdateLogSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
//
}
}