Se terminó de crear los controladores con los métodos CRUD básicos. Lo siguiente es empezar a programar los métodos especificos de cada controlador
This commit is contained in:
@@ -15,10 +15,6 @@ return new class extends Migration
|
||||
$table->id();
|
||||
$table->timestamps();
|
||||
$table->string('telefono');
|
||||
|
||||
$table->foreignId('persona_id')
|
||||
->constrained('personas')
|
||||
->onDelete('cascade');
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -23,10 +23,6 @@ return new class extends Migration
|
||||
$table->foreignId('foto_id')
|
||||
->constrained('fotos')
|
||||
->onDelete('cascade');
|
||||
|
||||
$table->foreignId('telefono_id')
|
||||
->constrained('telefonos')
|
||||
->onDelete('cascade');
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ return new class extends Migration
|
||||
$table->string('nombrecompleto');
|
||||
$table->string('correo');
|
||||
$table->string('celular');
|
||||
$table->string('estado')->defalut('Pendiente');
|
||||
$table->string('estado')->default('Pendiente');
|
||||
|
||||
$table->foreignId('profesion_id')
|
||||
->constrained('profesiones');
|
||||
@@ -37,16 +37,6 @@ 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');
|
||||
});
|
||||
}
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('errores', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->timestamps();
|
||||
$table->string('codigo');
|
||||
$table->text('mensaje');
|
||||
$table->text('track_trace');
|
||||
$table->string('url');
|
||||
$table->datetime('fecha_hora');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('errores');
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('fotosbugs', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->timestamps();
|
||||
$table->string('extension')->nullable();
|
||||
$table->bigInteger('tamanio_bytes')->nullable();
|
||||
$table->string('nombre')->nullable();
|
||||
$table->string('mime_type')->nullable();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('fotosbugs');
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('bugs', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->timestamps();
|
||||
$table->string('titulo');
|
||||
$table->text('descripcion');
|
||||
$table->string('prioridad');
|
||||
$table->string('estado');
|
||||
$table->string('version');
|
||||
|
||||
$table->foreignId('fotobug_id')->nullable()
|
||||
->constrained('fotosbugs')
|
||||
->onDelete('cascade');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('bugs');
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user