From 586cff84703f64f52a9f6a67473165be935dc32a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BD=D0=B4=D1=80=D0=B5=D0=B9=20=20=D0=9B=D0=B0=D1=80?= =?UTF-8?q?=D0=B8=D0=BE=D0=BD=D0=BE=D0=B2?= Date: Mon, 4 Sep 2023 19:53:52 +0700 Subject: [PATCH] =?UTF-8?q?=D0=9C=D0=BE=D0=B4=D0=B5=D0=BB=D0=B8=20=D0=B8=20=D0?= =?UTF-8?q?=BC=D0=B8=D0=B3=D1=80=D0=B0=D1=86=D0=B8=D0=B8!=20=D0=90=D0=B4=D0=B4?= =?UTF-8?q?=D0=BE=D0=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Models/SEO.php | 11 +++++ app/Models/ad_response.php | 11 +++++ app/Models/employers_main.php | 11 +++++ app/Models/header_footer.php | 11 +++++ app/Models/infobloks.php | 11 +++++ app/Models/job_titles_main.php | 11 +++++ app/Models/pages.php | 11 +++++ app/Models/place_works.php | 11 +++++ app/Models/reclame.php | 11 +++++ app/Models/sertification.php | 11 +++++ ...23_05_16_081308_create_static_workers_table.php | 1 - .../2023_05_16_081330_create_static_ads_table.php | 1 - .../2023_09_01_115021_alter_users_table3.php | 34 ++++++++++++++++ .../2023_09_01_115802_alter_employers_table2.php | 42 ++++++++++++++++++++ .../2023_09_01_121152_alter_ad_employers_table.php | 34 ++++++++++++++++ .../2023_09_01_121950_alter_workers_table.php | 36 +++++++++++++++++ .../2023_09_01_122417_alter_categories_table.php | 32 +++++++++++++++ .../2023_09_01_123056_alter_job_titles_table.php | 32 +++++++++++++++ .../2023_09_01_123338_alter_group_works_table.php | 32 +++++++++++++++ ...23_09_01_123950_create_sertifications_table.php | 34 ++++++++++++++++ ...023_09_01_131509_alter_static_workers_table.php | 32 +++++++++++++++ .../2023_09_01_131903_alter_static_ads_table.php | 32 +++++++++++++++ .../2023_09_01_132059_alter_companies_table.php | 34 ++++++++++++++++ ...2023_09_01_132618_create_ad_responses_table.php | 35 ++++++++++++++++ .../2023_09_01_134821_create_reclames_table.php | 39 ++++++++++++++++++ ...23_09_01_135450_create_header_footers_table.php | 37 +++++++++++++++++ .../2023_09_01_135606_create_infobloks_table.php | 33 +++++++++++++++ .../2023_09_01_135734_create_dop_info_table.php | 34 ++++++++++++++++ ..._09_01_135910_create_job_titles_mains_table.php | 34 ++++++++++++++++ ...3_09_01_135944_create_employers_mains_table.php | 34 ++++++++++++++++ .../2023_09_01_140100_create_place_works_table.php | 40 +++++++++++++++++++ .../2023_09_01_140122_create_pages_table.php | 37 +++++++++++++++++ .../2023_09_04_123922_alter_job_titles2_table.php | 32 +++++++++++++++ .../2023_09_04_124712_create_s_e_o_s_table.php | 36 +++++++++++++++++ resources/views/admin/index.blade.php | 2 +- 35 files changed, 876 insertions(+), 3 deletions(-) create mode 100644 app/Models/SEO.php create mode 100644 app/Models/ad_response.php create mode 100644 app/Models/employers_main.php create mode 100644 app/Models/header_footer.php create mode 100644 app/Models/infobloks.php create mode 100644 app/Models/job_titles_main.php create mode 100644 app/Models/pages.php create mode 100644 app/Models/place_works.php create mode 100644 app/Models/reclame.php create mode 100644 app/Models/sertification.php create mode 100644 database/migrations/2023_09_01_115021_alter_users_table3.php create mode 100644 database/migrations/2023_09_01_115802_alter_employers_table2.php create mode 100644 database/migrations/2023_09_01_121152_alter_ad_employers_table.php create mode 100644 database/migrations/2023_09_01_121950_alter_workers_table.php create mode 100644 database/migrations/2023_09_01_122417_alter_categories_table.php create mode 100644 database/migrations/2023_09_01_123056_alter_job_titles_table.php create mode 100644 database/migrations/2023_09_01_123338_alter_group_works_table.php create mode 100644 database/migrations/2023_09_01_123950_create_sertifications_table.php create mode 100644 database/migrations/2023_09_01_131509_alter_static_workers_table.php create mode 100644 database/migrations/2023_09_01_131903_alter_static_ads_table.php create mode 100644 database/migrations/2023_09_01_132059_alter_companies_table.php create mode 100644 database/migrations/2023_09_01_132618_create_ad_responses_table.php create mode 100644 database/migrations/2023_09_01_134821_create_reclames_table.php create mode 100644 database/migrations/2023_09_01_135450_create_header_footers_table.php create mode 100644 database/migrations/2023_09_01_135606_create_infobloks_table.php create mode 100644 database/migrations/2023_09_01_135734_create_dop_info_table.php create mode 100644 database/migrations/2023_09_01_135910_create_job_titles_mains_table.php create mode 100644 database/migrations/2023_09_01_135944_create_employers_mains_table.php create mode 100644 database/migrations/2023_09_01_140100_create_place_works_table.php create mode 100644 database/migrations/2023_09_01_140122_create_pages_table.php create mode 100644 database/migrations/2023_09_04_123922_alter_job_titles2_table.php create mode 100644 database/migrations/2023_09_04_124712_create_s_e_o_s_table.php diff --git a/app/Models/SEO.php b/app/Models/SEO.php new file mode 100644 index 0000000..6c38696 --- /dev/null +++ b/app/Models/SEO.php @@ -0,0 +1,11 @@ +id(); $table->bigInteger('user_id')->nullable(false); $table->integer('lookin')->default(0); - $table->string('month_year', 255)->nullable(); $table->integer('message')->default(0); $table->timestamps(); }); diff --git a/database/migrations/2023_05_16_081330_create_static_ads_table.php b/database/migrations/2023_05_16_081330_create_static_ads_table.php index 567efa7..aed2843 100644 --- a/database/migrations/2023_05_16_081330_create_static_ads_table.php +++ b/database/migrations/2023_05_16_081330_create_static_ads_table.php @@ -17,7 +17,6 @@ return new class extends Migration $table->id(); $table->bigInteger('ad_employer_id')->nullable(false); $table->integer('lookin')->default(0); - $table->string('month_year', 255)->nullable(); $table->integer('message')->default(0); $table->timestamps(); }); diff --git a/database/migrations/2023_09_01_115021_alter_users_table3.php b/database/migrations/2023_09_01_115021_alter_users_table3.php new file mode 100644 index 0000000..db244dd --- /dev/null +++ b/database/migrations/2023_09_01_115021_alter_users_table3.php @@ -0,0 +1,34 @@ +timestamp('birthday')->nullable(); + $table->boolean('is_bd')->default(false); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('users', function (Blueprint $table) { + $table->dropColumn('birthday'); + $table->dropColumn('is_bd'); + }); + } +}; diff --git a/database/migrations/2023_09_01_115802_alter_employers_table2.php b/database/migrations/2023_09_01_115802_alter_employers_table2.php new file mode 100644 index 0000000..c343db5 --- /dev/null +++ b/database/migrations/2023_09_01_115802_alter_employers_table2.php @@ -0,0 +1,42 @@ +string('coord', 255)->nullable(); + $table->boolean('is_remove')->default(false); + $table->boolean('status_hidden')->default(false); + $table->boolean('oficial_status')->default(false); + $table->boolean('social_is')->default(false); + $table->boolean('sending_is')->default(false); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('employers', function (Blueprint $table) { + $table->dropColumn('coord'); + $table->dropColumn('is_remove'); + $table->dropColumn('status_hidden'); + $table->dropColumn('oficial_status'); + $table->dropColumn('social_is'); + $table->dropColumn('sending_is'); + }); + } +}; diff --git a/database/migrations/2023_09_01_121152_alter_ad_employers_table.php b/database/migrations/2023_09_01_121152_alter_ad_employers_table.php new file mode 100644 index 0000000..2a82ae7 --- /dev/null +++ b/database/migrations/2023_09_01_121152_alter_ad_employers_table.php @@ -0,0 +1,34 @@ +boolean('is_remove')->default(false); + $table->boolean('active_is')->default(true); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('ad_employers', function (Blueprint $table) { + $table->dropColumn('is_remove'); + $table->dropColumn('active_is'); + }); + } +}; diff --git a/database/migrations/2023_09_01_121950_alter_workers_table.php b/database/migrations/2023_09_01_121950_alter_workers_table.php new file mode 100644 index 0000000..238b8a6 --- /dev/null +++ b/database/migrations/2023_09_01_121950_alter_workers_table.php @@ -0,0 +1,36 @@ +string('coord', 255)->nullable(); + $table->string('file', 255)->nullable(); + $table->boolean('is_remove')->default(false); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('workers', function (Blueprint $table) { + $table->dropColumn('coord'); + $table->dropColumn('file'); + $table->dropColumn('is_remove'); + }); + } +}; diff --git a/database/migrations/2023_09_01_122417_alter_categories_table.php b/database/migrations/2023_09_01_122417_alter_categories_table.php new file mode 100644 index 0000000..7373183 --- /dev/null +++ b/database/migrations/2023_09_01_122417_alter_categories_table.php @@ -0,0 +1,32 @@ +boolean('is_remove')->default(false); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('categories', function (Blueprint $table) { + $table->dropColumn('is_remove'); + }); + } +}; diff --git a/database/migrations/2023_09_01_123056_alter_job_titles_table.php b/database/migrations/2023_09_01_123056_alter_job_titles_table.php new file mode 100644 index 0000000..835aefe --- /dev/null +++ b/database/migrations/2023_09_01_123056_alter_job_titles_table.php @@ -0,0 +1,32 @@ +boolean('is_remove')->default(false); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('job_titles', function (Blueprint $table) { + $table->dropColumn('is_remove'); + }); + } +}; diff --git a/database/migrations/2023_09_01_123338_alter_group_works_table.php b/database/migrations/2023_09_01_123338_alter_group_works_table.php new file mode 100644 index 0000000..b44878a --- /dev/null +++ b/database/migrations/2023_09_01_123338_alter_group_works_table.php @@ -0,0 +1,32 @@ +boolean('is_remove')->default(false); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('group_works', function (Blueprint $table) { + $table->dropColumn('is_remove'); + }); + } +}; diff --git a/database/migrations/2023_09_01_123950_create_sertifications_table.php b/database/migrations/2023_09_01_123950_create_sertifications_table.php new file mode 100644 index 0000000..b9d6122 --- /dev/null +++ b/database/migrations/2023_09_01_123950_create_sertifications_table.php @@ -0,0 +1,34 @@ +id(); + $table->timestamp('date_begin')->nullable(); + $table->timestamp('end_begin')->nullable(); + $table->bigInteger('worker_id')->nullable(false); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('sertifications'); + } +}; diff --git a/database/migrations/2023_09_01_131509_alter_static_workers_table.php b/database/migrations/2023_09_01_131509_alter_static_workers_table.php new file mode 100644 index 0000000..6cb531e --- /dev/null +++ b/database/migrations/2023_09_01_131509_alter_static_workers_table.php @@ -0,0 +1,32 @@ +string('year_month', 255)->nullable(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('static_workers', function (Blueprint $table) { + $table->dropColumn('year_month'); + }); + } +}; diff --git a/database/migrations/2023_09_01_131903_alter_static_ads_table.php b/database/migrations/2023_09_01_131903_alter_static_ads_table.php new file mode 100644 index 0000000..6e55fe3 --- /dev/null +++ b/database/migrations/2023_09_01_131903_alter_static_ads_table.php @@ -0,0 +1,32 @@ +string('year_month', 255)->nullable(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('static_ads', function (Blueprint $table) { + $table->dropColumn('year_month'); + }); + } +}; diff --git a/database/migrations/2023_09_01_132059_alter_companies_table.php b/database/migrations/2023_09_01_132059_alter_companies_table.php new file mode 100644 index 0000000..c361837 --- /dev/null +++ b/database/migrations/2023_09_01_132059_alter_companies_table.php @@ -0,0 +1,34 @@ +integer('time_mess')->default(5); + $table->integer('time_resume')->default(30); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('companies', function (Blueprint $table) { + $table->dropColumn('time_mess'); + $table->dropColumn('time_resume'); + }); + } +}; diff --git a/database/migrations/2023_09_01_132618_create_ad_responses_table.php b/database/migrations/2023_09_01_132618_create_ad_responses_table.php new file mode 100644 index 0000000..5e4b975 --- /dev/null +++ b/database/migrations/2023_09_01_132618_create_ad_responses_table.php @@ -0,0 +1,35 @@ +id(); + $table->bigInteger('message_id')->nullable(false); + $table->bigInteger('ad_employer_id')->nullable(false); + $table->bigInteger('job_title_id')->nullable(false); + $table->boolean('flag')->default(true); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('ad_responses'); + } +}; diff --git a/database/migrations/2023_09_01_134821_create_reclames_table.php b/database/migrations/2023_09_01_134821_create_reclames_table.php new file mode 100644 index 0000000..919e036 --- /dev/null +++ b/database/migrations/2023_09_01_134821_create_reclames_table.php @@ -0,0 +1,39 @@ +id(); + $table->string('title', 255)->nullable(); + $table->string('image', 255)->nullable(); + $table->string('link', 255)->nullable(); + $table->text('text')->nullable(); + $table->integer('position')->default(0); + $table->boolean('is_hidden')->default(false); + $table->integer('col_vo_click')->default(0); + $table->boolean('is_remove')->default(false); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('reclames'); + } +}; diff --git a/database/migrations/2023_09_01_135450_create_header_footers_table.php b/database/migrations/2023_09_01_135450_create_header_footers_table.php new file mode 100644 index 0000000..165f16e --- /dev/null +++ b/database/migrations/2023_09_01_135450_create_header_footers_table.php @@ -0,0 +1,37 @@ +id(); + $table->string('name', 255)->nullable(); + $table->string('link', 255)->nullable(); + $table->bigInteger('code_id')->nullable(false); + $table->string('category', 255)->nullable(); + $table->boolean('header')->default(true); + $table->integer('sort')->default(100); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('header_footers'); + } +}; diff --git a/database/migrations/2023_09_01_135606_create_infobloks_table.php b/database/migrations/2023_09_01_135606_create_infobloks_table.php new file mode 100644 index 0000000..f53be9a --- /dev/null +++ b/database/migrations/2023_09_01_135606_create_infobloks_table.php @@ -0,0 +1,33 @@ +id(); + $table->string('name', 255)->nullable(); + $table->boolean('is_remove')->default(false); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('infobloks'); + } +}; diff --git a/database/migrations/2023_09_01_135734_create_dop_info_table.php b/database/migrations/2023_09_01_135734_create_dop_info_table.php new file mode 100644 index 0000000..5e7ebf9 --- /dev/null +++ b/database/migrations/2023_09_01_135734_create_dop_info_table.php @@ -0,0 +1,34 @@ +id(); + $table->bigInteger('worker_id')->nullable(false); + $table->bigInteger('infoblok_id')->nullable(false); + $table->text('text')->nullable(); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('dop_info'); + } +}; diff --git a/database/migrations/2023_09_01_135910_create_job_titles_mains_table.php b/database/migrations/2023_09_01_135910_create_job_titles_mains_table.php new file mode 100644 index 0000000..74c0116 --- /dev/null +++ b/database/migrations/2023_09_01_135910_create_job_titles_mains_table.php @@ -0,0 +1,34 @@ +id(); + $table->string('name', 255)->nullable(); + $table->bigInteger('job_title_id')->nullable(false); + $table->integer('sort')->default(100); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('job_titles_mains'); + } +}; diff --git a/database/migrations/2023_09_01_135944_create_employers_mains_table.php b/database/migrations/2023_09_01_135944_create_employers_mains_table.php new file mode 100644 index 0000000..a91ec0d --- /dev/null +++ b/database/migrations/2023_09_01_135944_create_employers_mains_table.php @@ -0,0 +1,34 @@ +id(); + $table->string('name', 255)->nullable(); + $table->bigInteger('employer_id')->nullable(false); + $table->integer('sort')->default(100); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('employers_mains'); + } +}; diff --git a/database/migrations/2023_09_01_140100_create_place_works_table.php b/database/migrations/2023_09_01_140100_create_place_works_table.php new file mode 100644 index 0000000..9abf478 --- /dev/null +++ b/database/migrations/2023_09_01_140100_create_place_works_table.php @@ -0,0 +1,40 @@ +id(); + $table->string('job_title', 255)->nullable(); + $table->boolean('tanker')->default(false); + $table->string('teplohod', 255)->nullable(); + $table->string('GWT', 255)->nullable(); + $table->string('KBT', 255)->nullable(); + $table->string('begin_work', 255)->nullable(); + $table->string('end_work', 255)->nullable(); + $table->string('name_company')->nullable(); + $table->bigInteger('worker_id')->nullable(false); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('place_works'); + } +}; diff --git a/database/migrations/2023_09_01_140122_create_pages_table.php b/database/migrations/2023_09_01_140122_create_pages_table.php new file mode 100644 index 0000000..e8980e0 --- /dev/null +++ b/database/migrations/2023_09_01_140122_create_pages_table.php @@ -0,0 +1,37 @@ +id(); + $table->string('name', 255)->nullable(); + $table->string('slug', 255)->nullable(false); + $table->text('text')->nullable(); + $table->text('anons')->nullable(); + $table->string('author', 255)->nullable(); + $table->string('image', 255)->nullable(); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('pages'); + } +}; diff --git a/database/migrations/2023_09_04_123922_alter_job_titles2_table.php b/database/migrations/2023_09_04_123922_alter_job_titles2_table.php new file mode 100644 index 0000000..f8782bf --- /dev/null +++ b/database/migrations/2023_09_04_123922_alter_job_titles2_table.php @@ -0,0 +1,32 @@ +integer('parent_id')->default(0); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('job_titles', function (Blueprint $table) { + $table->dropColumn('parent_id'); + }); + } +}; diff --git a/database/migrations/2023_09_04_124712_create_s_e_o_s_table.php b/database/migrations/2023_09_04_124712_create_s_e_o_s_table.php new file mode 100644 index 0000000..7ccf322 --- /dev/null +++ b/database/migrations/2023_09_04_124712_create_s_e_o_s_table.php @@ -0,0 +1,36 @@ +id(); + $table->string('url', 255)->nullable(false); + $table->string('title', 255)->nullable(); + $table->text('description')->nullable(); + $table->text('keywords')->nullable(); + $table->string('name', 255)->nullable(); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('s_e_o_s'); + } +}; diff --git a/resources/views/admin/index.blade.php b/resources/views/admin/index.blade.php index ed66f4d..98578fb 100644 --- a/resources/views/admin/index.blade.php +++ b/resources/views/admin/index.blade.php @@ -214,7 +214,7 @@
-

Категории

+

Категории

Справочник категории (по умолчанию: река, море, река-море)

-- 1.7.10.4