id(); $table->uuid('uuid')->unique(); $table->unsignedBigInteger('tenant_id'); $table->enum('type', ['per_student', 'school_flat'])->default('per_student'); $table->unsignedInteger('seats')->nullable(); $table->date('expires_at')->nullable(); $table->boolean('active')->default(true); $table->timestamps(); $table->softDeletes(); $table->foreign('tenant_id')->references('id')->on('tenants'); $table->index('tenant_id'); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('licenses'); } };