Ken пре 1 дан
родитељ
комит
9c91a4b25f

+ 1 - 1
app/Http/Controllers/admin/ActivityUser.php

@@ -78,7 +78,7 @@ class ActivityUser extends Controller
             $query = ActivityUserModel::where($where);
             $count = $query->count();
             $list = $query->orderByDesc('status')
-                ->orderByDesc('id')
+                ->orderByDesc('part_in_time')
                 ->forPage($page, $limit)->get()->toArray();
             $result = ['total' => $count, 'data' => $list];
         } catch (ValidationException $e) {

+ 39 - 0
database/migrations/2026_01_30_150325_create_inspection.php

@@ -0,0 +1,39 @@
+<?php
+
+use Illuminate\Database\Migrations\Migration;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Support\Facades\Schema;
+use Illuminate\Support\Facades\DB;
+return new class extends Migration
+{
+    /**
+     * Run the migrations.
+     *
+     * @return void
+     */
+    public function up()
+    {
+        Schema::create('inspection', function (Blueprint $table) {
+            $table->engine = 'InnoDB';
+            $table->collation = 'utf8mb4_general_ci';
+            $table->id();
+
+
+
+
+            $table->timestamps();
+        });
+        DB::statement("ALTER TABLE bot_inspection COMMENT = '人工稽查'");
+
+    }
+
+    /**
+     * Reverse the migrations.
+     *
+     * @return void
+     */
+    public function down()
+    {
+        Schema::dropIfExists('inspection');
+    }
+};