Add payment cdm function

This commit is contained in:
Amir
2022-12-27 09:36:25 +08:00
parent 443174b47c
commit 083eb14e04
5 changed files with 89 additions and 13 deletions
@@ -16,6 +16,7 @@ class CreateFileresitTable extends Migration
Schema::create('fileresit', function (Blueprint $table) {
$table->bigIncrements('id');
$table->unsignedBigInteger('user_id')->unsigned();
$table->unsignedBigInteger('lelong_id')->unsigned();
$table->unsignedBigInteger('payment_id')->unsigned();
$table->string('file_type');
$table->datetime('deleted_at')->nullable();
@@ -26,9 +27,9 @@ class CreateFileresitTable extends Migration
->references('id')->on('users')
->onDelete('cascade');
$table->foreign('payment_id')
->references('id')->on('payment')
->onDelete('cascade');
// $table->foreign('payment_id')
// ->references('id')->on('payment')
// ->onDelete('cascade');
});
// once the table is created use a raw query to ALTER it and add the MEDIUMBLOB