delay statuses module updated
This commit is contained in:
parent
d8fea048d1
commit
b400487e0c
@ -3,9 +3,9 @@
|
|||||||
class ContractStatus
|
class ContractStatus
|
||||||
{
|
{
|
||||||
const NEW = 'NEW';
|
const NEW = 'NEW';
|
||||||
const TREATY = 'TREATY';
|
const TREATY = 'TREATY'; //переговоры
|
||||||
const RESERVATION = 'RESERVATION';
|
const RESERVATION = 'RESERVATION'; //бронь
|
||||||
const SUCCESS = "SUSSCESS";
|
const SUCCESS = "SUCCESS";
|
||||||
const DECLINE = "DECLINE";
|
const DECLINE = "DECLINE";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -5,14 +5,14 @@
|
|||||||
use Illuminate\Support\Facades\Schema;
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
return new class extends Migration
|
return new class extends Migration
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Run the migrations.
|
* Run the migrations.
|
||||||
*/
|
*/
|
||||||
public function up(): void
|
public function up(): void
|
||||||
{
|
{
|
||||||
Schema::create('client_contract', function (Blueprint $table)
|
Schema::create('client_contract', function (Blueprint $table)
|
||||||
{
|
{
|
||||||
$table->id();
|
$table->id();
|
||||||
$table->foreignId('deal_id')->references('id')->on('deals')->onDelete('cascade');
|
$table->foreignId('deal_id')->references('id')->on('deals')->onDelete('cascade');
|
||||||
$table->enum('status', ['NEW', 'DECLINE', 'TREATY', 'SUCCESS', 'RESERVATION'])->default('NEW');
|
$table->enum('status', ['NEW', 'DECLINE', 'TREATY', 'SUCCESS', 'RESERVATION'])->default('NEW');
|
||||||
@ -22,14 +22,14 @@ public function up(): void
|
|||||||
$table->float('square')->nullable();
|
$table->float('square')->nullable();
|
||||||
$table->integer('floor')->nullable();
|
$table->integer('floor')->nullable();
|
||||||
$table->timestamps();
|
$table->timestamps();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Reverse the migrations.
|
* Reverse the migrations.
|
||||||
*/
|
*/
|
||||||
public function down(): void
|
public function down(): void
|
||||||
{
|
{
|
||||||
Schema::dropIfExists('client_contract');
|
Schema::dropIfExists('client_contract');
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user