editar tarifas promociones
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user