| 123456789101112131415161718192021222324252627282930313233 | <?phpuse Illuminate\Support\Facades\Schema;use Illuminate\Database\Schema\Blueprint;use Illuminate\Database\Migrations\Migration;class CreateTeacherStudentsTable extends Migration{    /**     * Run the migrations.     *     * @return void     */    public function up()    {        Schema::create('teacher_students', function (Blueprint $table) {            $table->increments('id');            $table->unsignedInteger('teacher_id')->nullable()->comment('讲师ID');            $table->unsignedInteger('student_id')->nullable()->comment('学员ID');            $table->timestamps();        });    }    /**     * Reverse the migrations.     *     * @return void     */    public function down()    {        Schema::dropIfExists('teacher_students');    }}
 |