id(); $table->string('name')->nullable(); $table->morphs('priceable'); $table->enum('type', ['free', 'one-time', 'recurring']); $table->integer('billing_period')->nullable(); $table->enum('billing_unit', ['hour', 'day', 'week', 'month', 'year'])->nullable(); $table->unsignedTinyInteger('sort')->nullable(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('plans'); } };