2023_09_27_035029_create_surveys_table.php 782B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. use Illuminate\Database\Migrations\Migration;
  3. use Illuminate\Database\Schema\Blueprint;
  4. use Illuminate\Support\Facades\Schema;
  5. return new class extends Migration
  6. {
  7. /**
  8. * Run the migrations.
  9. */
  10. public function up(): void
  11. {
  12. Schema::create('surveys', function (Blueprint $table) {
  13. $table->increments('id')->comment('PKey');
  14. $table->string("line_user_id")->comment("填寫人Line UID");
  15. $table->string("head_sticker")->comment("填寫人頭貼");
  16. $table->json("fillter_content")->comment("問卷填寫內容");
  17. $table->timestamps();
  18. });
  19. }
  20. /**
  21. * Reverse the migrations.
  22. */
  23. public function down(): void
  24. {
  25. Schema::dropIfExists('surveys');
  26. }
  27. };