Ken 1 неделя назад
Родитель
Сommit
f78df253b0
1 измененных файлов с 38 добавлено и 0 удалено
  1. 38 0
      database/migrations/2026_01_22_165023_create_activity_user.php

+ 38 - 0
database/migrations/2026_01_22_165023_create_activity_user.php

@@ -0,0 +1,38 @@
+<?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::create('activity_user', function (Blueprint $table) {
+            $table->engine = 'InnoDB';
+            $table->id();
+            $table->integer('activity_id')->comment('活动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->tinyInteger('part_in_time')->comment('参与时间');
+            $table->timestamps();
+        });
+    }
+
+    /**
+     * Reverse the migrations.
+     *
+     * @return void
+     */
+    public function down()
+    {
+        Schema::dropIfExists('activity_user');
+    }
+};