delay statuses module updated
This commit is contained in:
parent
d8fea048d1
commit
b400487e0c
@ -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";
|
||||
}
|
||||
|
||||
|
||||
@ -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');
|
||||
}
|
||||
};
|
||||
}
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user