increments('id'); $table->integer('student_id')->nullable(); $table->string('user_type', 100)->nullable(); $table->date('exam_date')->nullable(); $table->string('subject', 255)->nullable(); $table->integer('semester')->nullable(); $table->enum('type', ['internal','external'])->nullable(); $table->integer('max_mark')->nullable(); $table->integer('min_for_pass')->nullable(); $table->integer('awarded')->nullable(); $table->enum('result', ['P','F'])->nullable(); $table->text('details')->nullable(); $table->string('slug', 200)->nullable(); $table->enum('status', ['draft', 'complete', 'verify', 'approve', 'publish', 'unpublish', 'archive'])->default('draft')->nullable(); $table->integer('user_id')->nullable(); $table->string('user_type',50)->nullable(); $table->string('upload_folder', 100)->nullable(); $table->softDeletes(); $table->nullableTimestamps(); }); } /* * Reverse the migrations. * * @return void */ public function down() { Schema::drop('marks'); } }