Ken hai 1 semana
pai
achega
791d6f2d10

+ 1 - 3
app/Models/ActivityReward.php

@@ -8,10 +8,8 @@ class ActivityReward extends BaseModel
 {
     protected $table = 'activity_rewards';
     protected $fillable = [
-        'title', 'gift_amount', 'flow_amount', 'participant_count'
-        , 'activity_total', 'maximum_participation'
+        'title', 'sub_title', 'detail_image'
         , 'start_time', 'end_time'
-        ,
     ];
 
     protected function getStartTimeAttribute($value): string

+ 37 - 0
database/migrations/2026_01_22_150536_update_activity_rewards.php

@@ -0,0 +1,37 @@
+<?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::dropIfExists('activity_rewards');
+        Schema::create('activity_rewards', function (Blueprint $table) {
+            $table->engine = 'InnoDB';
+            $table->id();
+            $table->string('title', 150)->comment('活动名称');
+            $table->string('sub_title', 150)->comment('副标题');
+            $table->integer('start_time')->comment('开始时间');
+            $table->integer('end_time')->comment('结束时间');
+            $table->string('detail_image')->comment('活动详情图片');
+            $table->timestamps();
+        });
+    }
+
+    /**
+     * Reverse the migrations.
+     *
+     * @return void
+     */
+    public function down()
+    {
+        //
+    }
+};