id(); $table->unsignedInteger('user_id'); $table->unsignedInteger('program_id'); $table->timestamp('expiration_time')->nullable(); $table->unsignedInteger('max_session_count')->default(1); $table->unique(['user_id', 'program_id'], 'user_id'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('permissions'); } }