1
0
mirror of https://github.com/robonen/metr.git synced 2026-03-20 02:44:42 +00:00

Offer and order controllers

This commit is contained in:
2022-05-27 12:01:28 +07:00
parent c4f98fdb58
commit dc539ed911
21 changed files with 493 additions and 29 deletions

View File

@@ -1,5 +1,6 @@
<?php
use App\Enums\OrderTypesEnum;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
@@ -17,11 +18,12 @@ return new class extends Migration
$table->id();
$table->foreignId('owner_id');
$table->string('name');
$table->enum('type', ['studio']);
$table->enum('type', OrderTypesEnum::values());
$table->decimal('price');
$table->unsignedSmallInteger('rooms');
$table->string('yandex_mark')->nullable();
$table->text('text');
$table->string('location');
$table->text('description');
$table->boolean('is_group');
$table->timestamps();
});