diff --git a/app/Modules/Main/Database/Migrations/2024_10_23_170000_create_deals_table.php b/app/Modules/Main/Database/Migrations/2024_10_23_170000_create_deals_table.php index 81d9f0e..0103ea9 100644 --- a/app/Modules/Main/Database/Migrations/2024_10_23_170000_create_deals_table.php +++ b/app/Modules/Main/Database/Migrations/2024_10_23_170000_create_deals_table.php @@ -13,14 +13,14 @@ public function up(): void { Schema::create('deals', function (Blueprint $table) { - $table->id(); - $table->foreignId('client_id')->references('id')->on('users'); - $table->foreignId('complex_id')->references('id')->on('complexes')->onDelete('cascade'); - $table->foreignId('agent_id')->references('id')->on('agents')->onDelete('cascade'); - $table->string('bitrix_id')->nullable(); - $table->string('confirm_token')->nullable(); - $table->enum('status', ['NEW', 'MODERATION', 'UNIQUE', 'NOT UNIQUE'])->default('NEW'); - $table->timestamps(); + $table->id(); + $table->foreignId('client_id')->references('id')->on('users'); + $table->foreignId('complex_id')->references('id')->on('complexes')->onDelete('cascade'); + $table->foreignId('agent_id')->references('id')->on('agents')->onDelete('cascade'); + $table->string('bitrix_id')->nullable(); + $table->string('confirm_token')->nullable(); + $table->enum('status', ['NEW', 'MODERATION', 'UNIQUE', 'NOT UNIQUE'])->default('NEW'); + $table->timestamps(); }); } diff --git a/app/Modules/Main/Database/Migrations/2026_04_21_000001_add_unique_untill_field_to_deals_table.php b/app/Modules/Main/Database/Migrations/2026_04_21_000001_add_unique_untill_field_to_deals_table.php new file mode 100644 index 0000000..dbfcde9 --- /dev/null +++ b/app/Modules/Main/Database/Migrations/2026_04_21_000001_add_unique_untill_field_to_deals_table.php @@ -0,0 +1,27 @@ +date('unique_untill')->nullable(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('docs'); + } +}; diff --git a/lang/ru/auth.php b/lang/ru/auth.php index 6598e2c..6f76adc 100644 --- a/lang/ru/auth.php +++ b/lang/ru/auth.php @@ -13,8 +13,8 @@ | */ - 'failed' => 'These credentials do not match our records.', + 'failed' => 'Электронная почта или пароль указаны неверно.', 'password' => 'The provided password is incorrect.', - 'throttle' => 'Too many login attempts. Please try again in :seconds seconds.', + 'throttle' => 'Слишком много попыток входа. Попробуйте войти повторно немного позже.', ]; diff --git a/lang/ru/passwords.php b/lang/ru/passwords.php index f1223bd..27c258c 100644 --- a/lang/ru/passwords.php +++ b/lang/ru/passwords.php @@ -13,10 +13,10 @@ | */ - 'reset' => 'Your password has been reset.', - 'sent' => 'We have emailed your password reset link.', - 'throttled' => 'Please wait before retrying.', - 'token' => 'This password reset token is invalid.', - 'user' => "We can't find a user with that email address.", + 'reset' => 'Ваш пароль был изменен.', + 'sent' => 'Мы отправили ссылку для сброса пароля на указанную электронную почту', + 'throttled' => 'Пожалуйста, попробуйте сделать это немного позже.', + 'token' => 'Ссылка для восстановления пароля устарела.', + 'user' => "Мы не нашли пользователя с такой электронной почтой.", ];