id(); $table->string('name'); $table->string('slug')->unique(); $table->integer('wallet')->default(0); $table->unsignedInteger('files_volume')->default(0); $table->string('color')->nullable(); $table->string('description')->nullable(); $table->json('cache')->nullable(); $table->boolean('has_avatar')->default(false); $table->timestamp('calculated_at')->nullable(); $table->timestamp('created_at')->nullable(); $table->timestamp('updated_at')->nullable(); $table->timestamp('deleted_at')->nullable(); }); Schema::create('business_user', function (Blueprint $table) { $table->unsignedBigInteger('business_id'); $table->unsignedBigInteger('user_id'); $table->tinyInteger('level')->default(0); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('businesses'); Schema::dropIfExists('businesses_user'); } }