1
0
mirror of https://github.com/robonen/metr.git synced 2026-06-20 10:05:22 +00:00

Image uploading

This commit is contained in:
2022-06-01 00:23:05 +07:00
parent fe2e5d316c
commit 675b692c81
27 changed files with 451 additions and 15 deletions
@@ -1,6 +1,7 @@
<?php
use App\Enums\OrderTypesEnum;
use App\Enums\RoomTypesEnum;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
@@ -18,8 +19,8 @@ return new class extends Migration
$table->id();
$table->string('name');
$table->enum('type', OrderTypesEnum::values());
$table->decimal('price');
$table->unsignedSmallInteger('rooms');
$table->decimal('price', 15);
$table->enum('rooms', RoomTypesEnum::values());
$table->decimal('space');
$table->string('yandex_mark')->nullable();
$table->string('location');
@@ -20,6 +20,7 @@ return new class extends Migration
$table
->foreignId('offer_id')
->nullable()
->constrained()
->onUpdate('cascade');
});