add photo marhun

This commit is contained in:
Amir
2022-09-05 09:09:21 +08:00
parent 996665a3ee
commit 71842138bf
6 changed files with 124 additions and 47 deletions
@@ -3,6 +3,7 @@
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
use Illuminate\Support\Facades\DB;
class CreateFileTable extends Migration
{
@@ -3,6 +3,7 @@
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
use Illuminate\Support\Facades\DB;
class CreateFilemarhunTable extends Migration
{
@@ -15,8 +16,9 @@ class CreateFilemarhunTable extends Migration
{
Schema::create('filemarhun', function (Blueprint $table) {
$table->bigIncrements('id');
$table->unsignedBigInteger('lelongbid_id')->unsigned()->nullable();
$table->unsignedBigInteger('lelongbid_id')->unsigned();
$table->unsignedBigInteger('lelongbidmarhun_id')->unsigned()->nullable();
$table->unsignedBigInteger('photo_type')->unsigned();
$table->string('file_type');
$table->timestamps();
});