delay statuses module updated

This commit is contained in:
Thekindbull 2025-07-29 10:42:53 +08:00
parent d8fea048d1
commit b400487e0c
2 changed files with 11 additions and 11 deletions

View File

@ -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";
}

View File

@ -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');
}
};
}
};