feat: delete

This commit is contained in:
hashbro
2026-09-01 06:56:53 +08:00
parent bc6ed0f5c7
commit fc21193151
16 changed files with 204 additions and 236 deletions
@@ -0,0 +1,29 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
public function up(): void
{
Schema::dropIfExists('sms_reports');
}
public function down(): void
{
Schema::create('sms_reports', function (Blueprint $table) {
$table->id();
$table->foreignId('device_id')->constrained('devices')->cascadeOnDelete();
$table->string('device_key', 64)->index();
$table->string('task_id', 128)->nullable()->index();
$table->string('dest_phone', 64)->nullable();
$table->string('local_phone', 64)->nullable();
$table->text('msg')->nullable();
$table->string('status', 64)->nullable();
$table->json('payload')->nullable();
$table->timestamps();
});
}
};