diff --git a/app/Modules/Contracts/Models/ContractStatus.php b/app/Modules/Contracts/Models/ContractStatus.php index e205c94..672428c 100644 --- a/app/Modules/Contracts/Models/ContractStatus.php +++ b/app/Modules/Contracts/Models/ContractStatus.php @@ -3,9 +3,9 @@ class ContractStatus { const NEW = 'NEW'; - const TREATY = 'TREATY'; - const RESERVATION = 'RESERVATION'; - const SUCCESS = "SUSSCESS"; + const TREATY = 'TREATY'; //переговоры + const RESERVATION = 'RESERVATION'; //бронь + const SUCCESS = "SUCCESS"; const DECLINE = "DECLINE"; } diff --git a/database/migrations/2025_03_12_145038_create_client_contract_table.php b/database/migrations/2025_03_12_145038_create_client_contract_table.php index 6cf7afa..c68d98c 100644 --- a/database/migrations/2025_03_12_145038_create_client_contract_table.php +++ b/database/migrations/2025_03_12_145038_create_client_contract_table.php @@ -5,14 +5,14 @@ use Illuminate\Support\Facades\Schema; return new class extends Migration - { +{ /** * Run the migrations. */ public function up(): void - { + { Schema::create('client_contract', function (Blueprint $table) - { + { $table->id(); $table->foreignId('deal_id')->references('id')->on('deals')->onDelete('cascade'); $table->enum('status', ['NEW', 'DECLINE', 'TREATY', 'SUCCESS', 'RESERVATION'])->default('NEW'); @@ -22,14 +22,14 @@ public function up(): void $table->float('square')->nullable(); $table->integer('floor')->nullable(); $table->timestamps(); - }); - } + }); + } /** * Reverse the migrations. */ public function down(): void - { + { Schema::dropIfExists('client_contract'); - } - }; + } +};