id(); $table->string('name'); // Unique name for the DataTable $table->string('description')->nullable(); // Optional description $table->string('base_table'); // Base table name (e.g., 'employees') $table->json('columns'); // JSON structure for column configuration $table->json('joins')->nullable(); // JSON structure for joins $table->json('conditions')->nullable(); // JSON for WHERE conditions $table->json('default_sorting')->nullable(); // Default sorting rules $table->timestamps(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('datatables'); } };