increments('id'); $table->integer('company_id')->nullable(); $table->integer('department_id')->nullable(); $table->integer('employee_id')->nullable(); $table->integer('year')->nullable(); $table->integer('month')->nullable(); $table->integer('worked_days')->nullable(); $table->integer('sick_leave')->nullable(); $table->integer('anual_leave')->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('attendances'); } }