diff --git a/app/Http/Controllers/Admin/AdminController.php b/app/Http/Controllers/Admin/AdminController.php index a261d8f..30daf91 100644 --- a/app/Http/Controllers/Admin/AdminController.php +++ b/app/Http/Controllers/Admin/AdminController.php @@ -3,11 +3,14 @@ namespace App\Http\Controllers\Admin; use App\Http\Controllers\Controller; +use App\Http\Requests\CompanyRequest; +use App\Models\Company; use App\Models\Employer; use App\Models\User; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\Hash; +use Illuminate\Support\Facades\Storage; use Illuminate\Support\Facades\Validator; class AdminController extends Controller @@ -159,4 +162,49 @@ class AdminController extends Controller } } + public function profile() { + $id = Auth::user()->id; + $user = User::find($id); + + return view('admin.profile', compact('user')); + } + + public function store_profile(Request $request) { + $id = Auth::user()->id; + $user = User::find($id); + + return redirect()->route('admin.profile'); + } + + public function config_form() { + $config = Company::find(1); + return view('admin.config', compact('config')); + } + + public function store_config(CompanyRequest $request) { + $config = Company::find(1); + + $params = $request->all(); + unset($params['logo']); + unset($params['image']); + + if ($request->has('logo')) { + Storage::delete($config->logo); + $params['logo'] = $request->file('logo')->store('config', 'public'); + } + + if ($request->has('image')) { + Storage::delete($config->image); + $params['image'] = $request->file('image')->store('config', 'public'); + } + + if (is_null($config)) { + Company::create($params); + } else { + $config->update($params); + } + + return redirect()->route('admin.config'); + } + } diff --git a/app/Http/Controllers/Admin/CompanyController.php b/app/Http/Controllers/Admin/CompanyController.php new file mode 100644 index 0000000..da215ff --- /dev/null +++ b/app/Http/Controllers/Admin/CompanyController.php @@ -0,0 +1,11 @@ + + */ + public function rules() + { + return [ + 'name' => 'required|min:1|max:255', + 'email' => 'required|email|min:5', + 'logo' => [ + 'mimes:jpeg,jpg,png,ico', + 'max:10000' + ], + 'image' => [ + 'mimes:jpeg,jpg,png', + 'max:10000' + ], + ]; + } + + public function messages() { + return [ + 'required' => 'Поле :attribute обязательно для ввода', + 'min' => [ + 'string' => 'Поле «:attribute» должно быть не меньше :min символов', + 'file' => 'Файл «:attribute» должен быть не меньше :min Кбайт' + ], + 'max' => [ + 'string' => 'Поле «:attribute» должно быть не больше :max символов', + 'file' => 'Файл «:attribute» должен быть не больше :max Кбайт' + ], + 'email' => 'Это поле должно быть формата email', + ]; + } +} diff --git a/app/Models/Answer.php b/app/Models/Answer.php new file mode 100644 index 0000000..c2e96b1 --- /dev/null +++ b/app/Models/Answer.php @@ -0,0 +1,11 @@ +id(); + $table->string('name', 255)->nullable(true); + $table->boolean('is_email')->default(false); + $table->bigInteger('employer_id')->nullable(false); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('contacts'); + } +}; diff --git a/database/migrations/2023_05_22_084651_create_flots_table.php b/database/migrations/2023_05_22_084651_create_flots_table.php new file mode 100644 index 0000000..23e6d81 --- /dev/null +++ b/database/migrations/2023_05_22_084651_create_flots_table.php @@ -0,0 +1,35 @@ +id(); + $table->string('name', 255)->nullable(true); + $table->text('text')->nullable(true); + $table->string('image', 255)->nullable(true); + $table->bigInteger('employer_id')->nullable(false); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('flots'); + } +}; diff --git a/database/migrations/2023_05_22_084739_create_answers_table.php b/database/migrations/2023_05_22_084739_create_answers_table.php new file mode 100644 index 0000000..2c1de7e --- /dev/null +++ b/database/migrations/2023_05_22_084739_create_answers_table.php @@ -0,0 +1,39 @@ +id(); + $table->bigInteger('employer_id')->nullable(false); + $table->integer('plus')->default(0); + $table->integer('minus')->default(0); + $table->integer('rate')->nullable(true); + $table->string('title', 255)->nullable(true); + $table->string('text', 255)->nullable(true); + $table->boolean('is_moderate')->default(false); + $table->bigInteger('user_id')->nullable(false); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('answers'); + } +}; diff --git a/database/migrations/2023_05_22_085010_create_companies_table.php b/database/migrations/2023_05_22_085010_create_companies_table.php new file mode 100644 index 0000000..f02cd40 --- /dev/null +++ b/database/migrations/2023_05_22_085010_create_companies_table.php @@ -0,0 +1,43 @@ +id(); + $table->string('name', 255)->nullable(true); + $table->string('address', 255)->nullable(true); + $table->string('fio_director', 255)->nullable(true); + $table->string('email', 255)->nullable(true); + $table->string('telephone', 255)->nullable(true); + $table->string('site', 255)->nullable(true); + $table->string('telegram', 255)->nullable(true); + $table->string('vkontact', 255)->nullable(true); + $table->string('logo', 255)->nullable(true); + $table->string('image', 255)->nullable(true); + $table->string('map', 255)->nullable(true); + $table->text('text')->nullable(true); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('companies'); + } +}; diff --git a/resources/views/admin/config.blade.php b/resources/views/admin/config.blade.php new file mode 100644 index 0000000..b3b25de --- /dev/null +++ b/resources/views/admin/config.blade.php @@ -0,0 +1,189 @@ +@extends('layout.admin', ['title' => 'Админка - Настройки']) + +@section('content') +

+ Реквизиты сайта (конфигурация) +

+
+ @csrf + +
+
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+
+ +
+
+
+
+@endsection diff --git a/resources/views/admin/profile.blade.php b/resources/views/admin/profile.blade.php new file mode 100644 index 0000000..6175179 --- /dev/null +++ b/resources/views/admin/profile.blade.php @@ -0,0 +1,350 @@ +@extends('layout.admin', ['title' => 'Админка - Профиль']) + +@section('content') +

+ Личные данные +

+
+
+
+ +
+ +
+ +
+ +
+ +
+ +
+ + Тип пользователя + +
+ + +
+

+ +
+
+ + + Сменить пароль + +
+
+
+
+ + + + + + + + + +@endsection diff --git a/resources/views/layout/admin.blade.php b/resources/views/layout/admin.blade.php index d8af2aa..9e04338 100644 --- a/resources/views/layout/admin.blade.php +++ b/resources/views/layout/admin.blade.php @@ -816,7 +816,7 @@
  • name('index'); + // кабинет профиль - форма + Route::get('profile', [AdminController::class, 'profile'])->name('profile'); + // кабинет профиль - сохранение формы + Route::post('profile', [AdminController::class, 'store_profile'])->name('store_profile'); + + // кабинет настройки - форма + Route::get('config', [AdminController::class, 'config_form'])->name('config'); + // кабинет настройки сохранение формы + Route::post('config', [AdminController::class, 'store_config'])->name('store_config'); // кабинет - пользователи Route::get('users', [UsersController::class, 'index'])->name('users'); diff --git a/sql/1.sql b/sql/1.sql new file mode 100644 index 0000000..b7dce8d --- /dev/null +++ b/sql/1.sql @@ -0,0 +1,343 @@ +-- -------------------------------------------------------- +-- Хост: 127.0.0.1 +-- Версия сервера: 8.0.24 - MySQL Community Server - GPL +-- Операционная система: Win64 +-- HeidiSQL Версия: 11.3.0.6295 +-- -------------------------------------------------------- + +/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; +/*!40101 SET NAMES utf8 */; +/*!50503 SET NAMES utf8mb4 */; +/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; +/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; +/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; + + +-- Дамп структуры базы данных laravel_rekamore +--CREATE DATABASE IF NOT EXISTS `laravel_rekamore` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci */ /*!80016 DEFAULT ENCRYPTION='N' */; +--USE `laravel_rekamore`; + +-- Дамп структуры для таблица laravel_rekamore.ad_employers +CREATE TABLE IF NOT EXISTS `ad_employers` ( + `id` bigint unsigned NOT NULL AUTO_INCREMENT, + `employer_id` bigint NOT NULL, + `category_id` int NOT NULL DEFAULT '1', + `telephone` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `email` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `salary` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `text` text COLLATE utf8mb4_unicode_ci, + `city` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `sort` int NOT NULL DEFAULT '1', + `created_at` timestamp NULL DEFAULT NULL, + `updated_at` timestamp NULL DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; + +-- Дамп данных таблицы laravel_rekamore.ad_employers: ~0 rows (приблизительно) +/*!40000 ALTER TABLE `ad_employers` DISABLE KEYS */; +/*!40000 ALTER TABLE `ad_employers` ENABLE KEYS */; + +-- Дамп структуры для таблица laravel_rekamore.ad_jobs +CREATE TABLE IF NOT EXISTS `ad_jobs` ( + `id` bigint unsigned NOT NULL AUTO_INCREMENT, + `ad_employer_id` bigint NOT NULL, + `job_title_id` bigint NOT NULL, + `created_at` timestamp NULL DEFAULT NULL, + `updated_at` timestamp NULL DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; + +-- Дамп данных таблицы laravel_rekamore.ad_jobs: ~0 rows (приблизительно) +/*!40000 ALTER TABLE `ad_jobs` DISABLE KEYS */; +/*!40000 ALTER TABLE `ad_jobs` ENABLE KEYS */; + +-- Дамп структуры для таблица laravel_rekamore.categories +CREATE TABLE IF NOT EXISTS `categories` ( + `id` bigint unsigned NOT NULL AUTO_INCREMENT, + `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `created_at` timestamp NULL DEFAULT NULL, + `updated_at` timestamp NULL DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; + +-- Дамп данных таблицы laravel_rekamore.categories: ~0 rows (приблизительно) +/*!40000 ALTER TABLE `categories` DISABLE KEYS */; +/*!40000 ALTER TABLE `categories` ENABLE KEYS */; + +-- Дамп структуры для таблица laravel_rekamore.employers +CREATE TABLE IF NOT EXISTS `employers` ( + `id` bigint unsigned NOT NULL AUTO_INCREMENT, + `user_id` bigint NOT NULL, + `name_company` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `telephone` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `email` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `logo` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `rate` double(8,2) NOT NULL DEFAULT '0.00', + `text` text COLLATE utf8mb4_unicode_ci, + `city` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `sort` int NOT NULL DEFAULT '1', + `created_at` timestamp NULL DEFAULT NULL, + `updated_at` timestamp NULL DEFAULT NULL, + `address` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `map` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `site` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; + +-- Дамп данных таблицы laravel_rekamore.employers: ~0 rows (приблизительно) +/*!40000 ALTER TABLE `employers` DISABLE KEYS */; +/*!40000 ALTER TABLE `employers` ENABLE KEYS */; + +-- Дамп структуры для таблица laravel_rekamore.failed_jobs +CREATE TABLE IF NOT EXISTS `failed_jobs` ( + `id` bigint unsigned NOT NULL AUTO_INCREMENT, + `uuid` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `connection` text COLLATE utf8mb4_unicode_ci NOT NULL, + `queue` text COLLATE utf8mb4_unicode_ci NOT NULL, + `payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL, + `exception` longtext COLLATE utf8mb4_unicode_ci NOT NULL, + `failed_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, + PRIMARY KEY (`id`), + UNIQUE KEY `failed_jobs_uuid_unique` (`uuid`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; + +-- Дамп данных таблицы laravel_rekamore.failed_jobs: ~0 rows (приблизительно) +/*!40000 ALTER TABLE `failed_jobs` DISABLE KEYS */; +/*!40000 ALTER TABLE `failed_jobs` ENABLE KEYS */; + +-- Дамп структуры для таблица laravel_rekamore.group_users +CREATE TABLE IF NOT EXISTS `group_users` ( + `id` bigint unsigned NOT NULL AUTO_INCREMENT, + `name_group` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `created_at` timestamp NULL DEFAULT NULL, + `updated_at` timestamp NULL DEFAULT NULL, + `user_id` bigint NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; + +-- Дамп данных таблицы laravel_rekamore.group_users: ~0 rows (приблизительно) +/*!40000 ALTER TABLE `group_users` DISABLE KEYS */; +/*!40000 ALTER TABLE `group_users` ENABLE KEYS */; + +-- Дамп структуры для таблица laravel_rekamore.group_works +CREATE TABLE IF NOT EXISTS `group_works` ( + `id` bigint unsigned NOT NULL AUTO_INCREMENT, + `group_user_id` bigint NOT NULL, + `user_id` bigint NOT NULL, + `created_at` timestamp NULL DEFAULT NULL, + `updated_at` timestamp NULL DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; + +-- Дамп данных таблицы laravel_rekamore.group_works: ~0 rows (приблизительно) +/*!40000 ALTER TABLE `group_works` DISABLE KEYS */; +/*!40000 ALTER TABLE `group_works` ENABLE KEYS */; + +-- Дамп структуры для таблица laravel_rekamore.job_titles +CREATE TABLE IF NOT EXISTS `job_titles` ( + `id` bigint unsigned NOT NULL AUTO_INCREMENT, + `name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `created_at` timestamp NULL DEFAULT NULL, + `updated_at` timestamp NULL DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; + +-- Дамп данных таблицы laravel_rekamore.job_titles: ~0 rows (приблизительно) +/*!40000 ALTER TABLE `job_titles` DISABLE KEYS */; +/*!40000 ALTER TABLE `job_titles` ENABLE KEYS */; + +-- Дамп структуры для таблица laravel_rekamore.messages +CREATE TABLE IF NOT EXISTS `messages` ( + `id` bigint unsigned NOT NULL AUTO_INCREMENT, + `user_id` bigint NOT NULL, + `to_user_id` bigint NOT NULL, + `text` text COLLATE utf8mb4_unicode_ci, + `created_at` timestamp NULL DEFAULT NULL, + `updated_at` timestamp NULL DEFAULT NULL, + `title` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `file` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; + +-- Дамп данных таблицы laravel_rekamore.messages: ~0 rows (приблизительно) +/*!40000 ALTER TABLE `messages` DISABLE KEYS */; +/*!40000 ALTER TABLE `messages` ENABLE KEYS */; + +-- Дамп структуры для таблица laravel_rekamore.migrations +CREATE TABLE IF NOT EXISTS `migrations` ( + `id` int unsigned NOT NULL AUTO_INCREMENT, + `migration` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `batch` int NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=23 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; + +-- Дамп данных таблицы laravel_rekamore.migrations: ~21 rows (приблизительно) +/*!40000 ALTER TABLE `migrations` DISABLE KEYS */; +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES + (1, '2014_10_12_000000_create_users_table', 1), + (2, '2014_10_12_100000_create_password_resets_table', 1), + (3, '2019_08_19_000000_create_failed_jobs_table', 1), + (4, '2019_12_14_000001_create_personal_access_tokens_table', 1), + (5, '2023_05_15_102620_alter_users_table', 2), + (6, '2023_05_16_062924_alter_users_table2', 3), + (7, '2023_05_16_080855_create_workers_table', 3), + (8, '2023_05_16_080945_create_employers_table', 3), + (9, '2023_05_16_081048_create_ad_employers_table', 3), + (10, '2023_05_16_081113_create_categories_table', 3), + (11, '2023_05_16_081142_create_group_users_table', 3), + (12, '2023_05_16_081213_create_job_titles_table', 3), + (13, '2023_05_16_081237_create_messages_table', 3), + (14, '2023_05_16_081308_create_static_workers_table', 3), + (15, '2023_05_16_081330_create_static_ads_table', 3), + (16, '2023_05_16_092746_alter_ad_jobs_table', 4), + (17, '2023_05_16_092836_alter_group_work_table', 4), + (18, '2023_05_17_090650_alter_group_users_table', 5), + (19, '2023_05_17_090749_alter_messages_table', 5), + (20, '2023_05_17_090923_alter_employers_table', 5), + (21, '2023_05_17_090944_alter_workers_table', 5), + (22, '2023_05_17_095512_alter_users_table', 6); +/*!40000 ALTER TABLE `migrations` ENABLE KEYS */; + +-- Дамп структуры для таблица laravel_rekamore.password_resets +CREATE TABLE IF NOT EXISTS `password_resets` ( + `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `token` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `created_at` timestamp NULL DEFAULT NULL, + PRIMARY KEY (`email`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; + +-- Дамп данных таблицы laravel_rekamore.password_resets: ~0 rows (приблизительно) +/*!40000 ALTER TABLE `password_resets` DISABLE KEYS */; +/*!40000 ALTER TABLE `password_resets` ENABLE KEYS */; + +-- Дамп структуры для таблица laravel_rekamore.personal_access_tokens +CREATE TABLE IF NOT EXISTS `personal_access_tokens` ( + `id` bigint unsigned NOT NULL AUTO_INCREMENT, + `tokenable_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `tokenable_id` bigint unsigned NOT NULL, + `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `token` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL, + `abilities` text COLLATE utf8mb4_unicode_ci, + `last_used_at` timestamp NULL DEFAULT NULL, + `expires_at` timestamp NULL DEFAULT NULL, + `created_at` timestamp NULL DEFAULT NULL, + `updated_at` timestamp NULL DEFAULT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `personal_access_tokens_token_unique` (`token`), + KEY `personal_access_tokens_tokenable_type_tokenable_id_index` (`tokenable_type`,`tokenable_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; + +-- Дамп данных таблицы laravel_rekamore.personal_access_tokens: ~0 rows (приблизительно) +/*!40000 ALTER TABLE `personal_access_tokens` DISABLE KEYS */; +/*!40000 ALTER TABLE `personal_access_tokens` ENABLE KEYS */; + +-- Дамп структуры для таблица laravel_rekamore.static_ads +CREATE TABLE IF NOT EXISTS `static_ads` ( + `id` bigint unsigned NOT NULL AUTO_INCREMENT, + `ad_employer_id` bigint NOT NULL, + `lookin` int NOT NULL DEFAULT '0', + `month_year` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `message` int NOT NULL DEFAULT '0', + `created_at` timestamp NULL DEFAULT NULL, + `updated_at` timestamp NULL DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; + +-- Дамп данных таблицы laravel_rekamore.static_ads: ~0 rows (приблизительно) +/*!40000 ALTER TABLE `static_ads` DISABLE KEYS */; +/*!40000 ALTER TABLE `static_ads` ENABLE KEYS */; + +-- Дамп структуры для таблица laravel_rekamore.static_workers +CREATE TABLE IF NOT EXISTS `static_workers` ( + `id` bigint unsigned NOT NULL AUTO_INCREMENT, + `user_id` bigint NOT NULL, + `lookin` int NOT NULL DEFAULT '0', + `month_year` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `message` int NOT NULL DEFAULT '0', + `created_at` timestamp NULL DEFAULT NULL, + `updated_at` timestamp NULL DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; + +-- Дамп данных таблицы laravel_rekamore.static_workers: ~0 rows (приблизительно) +/*!40000 ALTER TABLE `static_workers` DISABLE KEYS */; +/*!40000 ALTER TABLE `static_workers` ENABLE KEYS */; + +-- Дамп структуры для таблица laravel_rekamore.users +CREATE TABLE IF NOT EXISTS `users` ( + `id` bigint unsigned NOT NULL AUTO_INCREMENT, + `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `admin` tinyint(1) NOT NULL DEFAULT '0', + `email_verified_at` timestamp NULL DEFAULT NULL, + `password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `created_at` timestamp NULL DEFAULT NULL, + `updated_at` timestamp NULL DEFAULT NULL, + `telephone` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `surname` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `name_man` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `surname2` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `is_worker` tinyint(1) NOT NULL DEFAULT '0', + `is_lookin` tinyint(1) NOT NULL DEFAULT '1', + `is_message` tinyint(1) NOT NULL DEFAULT '1', + `is_public` tinyint(1) NOT NULL DEFAULT '1', + `is_remove` tinyint(1) NOT NULL DEFAULT '0', + `is_ban` tinyint(1) NOT NULL DEFAULT '0', + `is_new` tinyint(1) NOT NULL DEFAULT '1', + PRIMARY KEY (`id`), + UNIQUE KEY `users_email_unique` (`email`) +) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; + +-- Дамп данных таблицы laravel_rekamore.users: ~4 rows (приблизительно) +/*!40000 ALTER TABLE `users` DISABLE KEYS */; +INSERT INTO `users` (`id`, `name`, `email`, `admin`, `email_verified_at`, `password`, `remember_token`, `created_at`, `updated_at`, `telephone`, `surname`, `name_man`, `surname2`, `is_worker`, `is_lookin`, `is_message`, `is_public`, `is_remove`, `is_ban`, `is_new`) VALUES + (1, 'Администратор', 'admin@mail.ru', 1, '2023-05-15 14:46:39', '$2y$10$4LrFVBjWy.Tjl2OJIuvfiOppobeQNA42bzJ5c1AJRgv1vm56N0/Yq', 'TqzY4yyIUyLJYRdSzGLqGTxNKL4E1x3EbCF2OLlI6bugbek0wRnYNThSMfUh', '2023-05-15 07:46:26', '2023-05-17 13:44:10', '+79131340942', NULL, 'Андрей', NULL, 0, 1, 1, 1, 0, 0, 0), + (2, 'integralal', 'integralal@mail.ru', 0, '2023-05-15 20:35:12', '$2y$10$As4bkRP3XXiSZG3rERW4Uee05nD9bO8vABDpakx.xG8tuEuBvK9Qq', '9SuLE4Ig5j20yrJxLd3OcAXZ6AQB8hqbZwLlr6o6E3ld5BuTbwuz92kGK1xW', '2023-05-15 10:16:27', '2023-05-17 13:44:09', NULL, NULL, 'Александр', NULL, 1, 1, 1, 1, 0, 0, 0), + (3, 'менеджер', 'info@renttorg.ru', 0, NULL, '$2y$10$avhr9OwECSHOtRDCE4Qe/uyq8MelzHKRiRT3NqEm/KApe.JcNSkAK', '5cZRhemIWOPFFQUtB0acF6vFvJVfS9WvSRXxxmTkoFiBiy1Gbv4ZbHQhMQWZ', '2023-05-17 06:45:07', '2023-05-17 13:46:17', NULL, NULL, 'Олег', NULL, 0, 1, 1, 1, 0, 0, 0), + (4, 'Админ-менеджер', 'Info@vekprom.ru', 1, '2023-05-17 15:34:57', '$2y$10$9l3vgMBMFlqAt4xyY7v9EuWB0EdCOVTd1scM2a3FIcXzpI.JPCVmq', 'lPwraQgpzNn7uXB72f4jhvRkcORzmownmJEjFGfXfNPGoWHX44M9DDUm67YG', '2023-05-17 08:33:37', '2023-05-17 13:43:40', NULL, NULL, 'Наталья', NULL, 0, 1, 1, 1, 0, 0, 0); +/*!40000 ALTER TABLE `users` ENABLE KEYS */; + +-- Дамп структуры для таблица laravel_rekamore.workers +CREATE TABLE IF NOT EXISTS `workers` ( + `id` bigint unsigned NOT NULL AUTO_INCREMENT, + `user_id` bigint NOT NULL, + `status_work` int NOT NULL DEFAULT '1', + `position_work` int NOT NULL DEFAULT '1', + `telephone` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `telephone2` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `email` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `persent_anketa` int NOT NULL DEFAULT '10', + `photo` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `email_data` tinyint(1) NOT NULL DEFAULT '0', + `status_profile` int NOT NULL DEFAULT '1', + `old_year` int DEFAULT NULL, + `experience` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL, + `en_is` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL, + `interpassport` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL, + `mk` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL, + `vvp` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL, + `vlm` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL, + `reka_diplom` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL, + `more_diplom` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL, + `mpss` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL, + `tanker` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL, + `gmssb` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL, + `resume` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `sort` int NOT NULL, + `created_at` timestamp NULL DEFAULT NULL, + `updated_at` timestamp NULL DEFAULT NULL, + `address` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `city` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `text` text COLLATE utf8mb4_unicode_ci, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; + +-- Дамп данных таблицы laravel_rekamore.workers: ~0 rows (приблизительно) +/*!40000 ALTER TABLE `workers` DISABLE KEYS */; +/*!40000 ALTER TABLE `workers` ENABLE KEYS */; + +/*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */; +/*!40014 SET FOREIGN_KEY_CHECKS=IFNULL(@OLD_FOREIGN_KEY_CHECKS, 1) */; +/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; +/*!40111 SET SQL_NOTES=IFNULL(@OLD_SQL_NOTES, 1) */;