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:
@@ -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();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user