bigIncrements('id')->comment('PK'); $table->unsignedBigInteger('tenant_id')->index('subscriptions_tenant_id_foreign'); $table->unsignedBigInteger('plan_id')->index('subscriptions_plan_id_foreign'); $table->date('started_at')->comment('구독 시작일'); $table->date('ended_at')->nullable()->comment('구독 종료일(해지시)'); $table->string('status', 20)->default('active')->comment('상태(active, canceled, expired 등)'); $table->timestamps(); $table->softDeletes(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('subscriptions'); } };