se terminaron los modelos, faltan controlarlos con la IA
This commit is contained in:
+4
@@ -15,6 +15,10 @@ return new class extends Migration
|
||||
$table->id();
|
||||
$table->timestamps();
|
||||
$table->string('descripcion');
|
||||
|
||||
$table->foreignId('formulario_id')->nullable()
|
||||
->constrained('formularios')
|
||||
->onDelete('cascade');
|
||||
});
|
||||
}
|
||||
|
||||
+4
@@ -15,6 +15,10 @@ return new class extends Migration
|
||||
$table->id();
|
||||
$table->timestamps();
|
||||
$table->string('descripcion');
|
||||
|
||||
$table->foreignId('formulario_id')->nullable()
|
||||
->constrained('formularios')
|
||||
->onDelete('cascade');
|
||||
});
|
||||
}
|
||||
|
||||
@@ -15,6 +15,10 @@ return new class extends Migration
|
||||
$table->id();
|
||||
$table->timestamps();
|
||||
$table->string('telefono');
|
||||
|
||||
$table->foreignId('persona_id')
|
||||
->constrained('personas')
|
||||
->onDelete('cascade');
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -27,6 +27,7 @@ return new class extends Migration
|
||||
$table->foreignId('foto_id')
|
||||
->constrained('fotos')
|
||||
->onDelete('cascade');
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -23,6 +23,10 @@ return new class extends Migration
|
||||
$table->foreignId('foto_id')
|
||||
->constrained('fotos')
|
||||
->onDelete('cascade');
|
||||
|
||||
$table->foreignId('telefono_id')
|
||||
->constrained('telefonos')
|
||||
->onDelete('cascade');
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -17,6 +17,11 @@ return new class extends Migration
|
||||
|
||||
$table->string('dni');
|
||||
$table->string('correo');
|
||||
|
||||
$table->foreignId('credencialcliente_id')
|
||||
->constrained('credencialesclientes')
|
||||
->onDelete('cascade');
|
||||
|
||||
$table->foreignId('persona_id')
|
||||
->constrained('personas')
|
||||
->onDelete('cascade');
|
||||
|
||||
@@ -23,7 +23,7 @@ return new class extends Migration
|
||||
$table->foreignId('profesion_id')
|
||||
->constrained('profesiones');
|
||||
|
||||
$table->foreignId('servicio_id')
|
||||
$table->foreignId('servicio_id')->nullable()
|
||||
->constrained('servicios');
|
||||
|
||||
$table->foreignId('modalidad_id')
|
||||
@@ -37,6 +37,16 @@ return new class extends Migration
|
||||
->constrained('clientes')
|
||||
->onDelete('set null');
|
||||
|
||||
$table->foreignId('diapreferido_id')
|
||||
->constrained('diaspreferencias')
|
||||
->onDelete('cascade');
|
||||
|
||||
$table->foreignId('horariopreferido_id')
|
||||
->constrained('horariospreferencias')
|
||||
->onDelete('cascade');
|
||||
|
||||
|
||||
|
||||
$table->date('fechaenvio');
|
||||
});
|
||||
}
|
||||
|
||||
@@ -18,6 +18,9 @@ return new class extends Migration
|
||||
$table->foreignId('agenda_id')
|
||||
->constrained('agendas')
|
||||
->onDelete('cascade');
|
||||
$table->foreignId('dia_id')->nullable()
|
||||
->constrained('dias')
|
||||
->onDelete('cascade');
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -15,9 +15,6 @@ return new class extends Migration
|
||||
$table->id();
|
||||
$table->timestamps();
|
||||
$table->string('descripcion');
|
||||
$table->foreignId('agenda_id')
|
||||
->constrained('agendas')
|
||||
->onDelete('cascade');
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -16,8 +16,8 @@ return new class extends Migration
|
||||
$table->timestamps();
|
||||
$table->time('comienzo');
|
||||
$table->time('fin');
|
||||
$table->foreignId('dia_id')
|
||||
->constrained('dias')
|
||||
$table->foreignId('diadeatencion_id')
|
||||
->constrained('diasdeatenciones')
|
||||
->onDelete('cascade');
|
||||
});
|
||||
}
|
||||
|
||||
@@ -30,6 +30,14 @@ return new class extends Migration
|
||||
$table->foreignId('agenda_id')
|
||||
->constrained('agendas')
|
||||
->onDelete('cascade');
|
||||
|
||||
$table->foreignId('profesional_id')
|
||||
->constrained('profesionales')
|
||||
->onDelete('cascade');
|
||||
|
||||
$table->foreignId('servicio_id')
|
||||
->constrained('servicios')
|
||||
->onDelete('cascade');
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user