id(); $table->string('name', 30); $table->unsignedInteger('points'); $table->unsignedInteger('stock')->nullable(); $table->enum('category', RewardCategory::values())->default(RewardCategory::REGULAR)->comment(RewardCategory::comment()); $table->enum('is_show', IsShow::values())->default(IsShow::SHOW)->comment(IsShow::comment()); $table->date('start_date'); $table->date('end_date')->nullable(); $table->timestamp('created_at')->useCurrent(); $table->timestamp('updated_at')->nullable()->useCurrentOnUpdate(); $table->softDeletes(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('rewards'); } };