editar tarifas promociones

This commit is contained in:
Felipe
2024-03-01 17:35:41 -05:00
parent b3f03331f3
commit eb2e3ce76c
7 changed files with 252 additions and 148 deletions
@@ -6,43 +6,33 @@ use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('usuario_tarifas', function (Blueprint $table) {
$table->id();
$table -> string('precio')->nullable();
$table -> string('visible')->nullable();
$table->string('precio')->nullable();
$table->string('visible')->nullable();
$table->unsignedBigInteger('tarifa_id')->nullable();
$table->foreign('tarifa_id')
->references('id')
->on('tarifas')
->onDelete('cascade')
->onUpdate('cascade');
->references('id')
->on('tarifas')
->onDelete('cascade')
->onUpdate('cascade');
$table->unsignedBigInteger('usuario_id')->nullable();
$table->foreign('usuario_id')
->references('id')
->on('users')
->onDelete('cascade')
->onUpdate('cascade');
->references('id')
->on('users')
->onDelete('cascade')
->onUpdate('cascade');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('usuario_tarifas');