2019_01_21_095919_create_examargs_table.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. use Illuminate\Support\Facades\Schema;
  3. use Illuminate\Database\Schema\Blueprint;
  4. use Illuminate\Database\Migrations\Migration;
  5. class CreateExamargsTable extends Migration
  6. {
  7. /**
  8. * Run the migrations.
  9. *
  10. * @return void
  11. */
  12. public function up()
  13. {
  14. Schema::create('examargs', function (Blueprint $table) {
  15. $table->increments('id');
  16. $table->integer('exam_id')->comment("考试id");
  17. $table->integer('exam_name')->comment("试卷名称");
  18. $table->time("exam_time")->comment('考试用时');
  19. $table->dateTime("exam_start")->comment('考试开始时间');
  20. $table->dateTime("exam_end")->comment('考试开始时间');
  21. $table->text("sclass_id")->comment("班级id");
  22. $table->int("grade_id")->comment("班级id");
  23. $table->text("school_id")->comment("班级id");
  24. $table->timestamps();
  25. });
  26. }
  27. /**
  28. * Reverse the migrations.
  29. *
  30. * @return void
  31. */
  32. public function down()
  33. {
  34. Schema::dropIfExists('examargs');
  35. }
  36. }