id(); $table->foreignId('source_database_id')->constrained('source_databases')->cascadeOnDelete(); $table->string('schema_name')->default('public'); $table->string('table_name'); $table->text('comment')->nullable(); $table->json('options')->nullable(); $table->timestamp('last_checked_at')->nullable(); $table->timestamps(); $table->unique(['source_database_id', 'schema_name', 'table_name'], 'unique_table'); }); } public function down(): void { Schema::dropIfExists('tables'); } };