chatbot name,email,phone stored in Database

This commit is contained in:
UronShrestha
2024-07-10 17:25:14 +05:45
parent c566bf9c27
commit 2510de390a
3 changed files with 83 additions and 39 deletions

View File

@ -11,11 +11,11 @@ return new class extends Migration
*/
public function up(): void
{
Schema::create('userChat', function (Blueprint $table) {
Schema::create('user_chats', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->string('email')->unique();
$table->string('phone');
$table->string('phone_number');
$table->string('email');
$table->timestamps();
});
}
@ -25,6 +25,6 @@ return new class extends Migration
*/
public function down(): void
{
Schema::dropIfExists('userChat');
Schema::dropIfExists('user_chats');
}
};