Add email tool tracking

This commit is contained in:
2023-12-07 12:49:45 +08:00
parent 46b07de8b8
commit 84a96833ff
48 changed files with 320 additions and 114 deletions

View File

@@ -0,0 +1,30 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::table('ai_tools', function (Blueprint $table) {
$table->boolean('has_emailed')->default(false);
$table->string('email')->nullable();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('ai_tools', function (Blueprint $table) {
$table->dropColumn('has_emailed');
$table->dropColumn(('email'));
});
}
};