добавлен новый статус сделок - В работе

This commit is contained in:
developer 2026-04-23 13:51:19 +08:00
parent 5bb9443c2a
commit 5a7437141d
4 changed files with 30 additions and 2 deletions

View File

@ -0,0 +1,27 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::table('client_contract', function (Blueprint $table)
{
$table->enum('status', ['NEW', 'IN_WORK', 'DECLINE', 'TREATY', 'SUCCESS', 'RESERVATION'])->default('NEW')->change();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
}
};

View File

@ -3,6 +3,7 @@
class ContractStatus
{
const NEW = 'NEW';
const IN_WORK = "IN_WORK";
const TREATY = 'TREATY'; //Выплачено
const RESERVATION = 'RESERVATION'; //бронь
const SUCCESS = "SUCCESS";

View File

@ -4,6 +4,6 @@
'status_TREATY' => 'Выплачено',
'status_RESERVATION' => 'Бронь',
'status_SUCCESS' => 'Успех',
'status_DECLINE' => 'Отклонен'
'status_DECLINE' => 'Отклонен',
'status_IN_WORK' => 'В работе'
];