merge dev into features/notifications
This commit is contained in:
+2
-1
@@ -49,6 +49,7 @@ PUSHER_APP_CLUSTER="mt1"
|
|||||||
CACHE_STORE=file
|
CACHE_STORE=file
|
||||||
QUEUE_CONNECTION=sync
|
QUEUE_CONNECTION=sync
|
||||||
|
|
||||||
|
FILESYSTEM_DISK=local
|
||||||
# CACHE_PREFIX=
|
# CACHE_PREFIX=
|
||||||
|
|
||||||
MEMCACHED_HOST=127.0.0.1
|
MEMCACHED_HOST=127.0.0.1
|
||||||
@@ -75,6 +76,6 @@ AWS_USE_PATH_STYLE_ENDPOINT=false
|
|||||||
|
|
||||||
VITE_APP_NAME="${APP_NAME}"
|
VITE_APP_NAME="${APP_NAME}"
|
||||||
|
|
||||||
SANCTUM_STATEFUL_DOMAINS=localhost,127.0.0.1,localhost:8000,localhost:5173
|
SANCTUM_STATEFUL_DOMAINS=localhost,127.0.0.1,localhost:8000
|
||||||
|
|
||||||
TYPESENSE_CONNECTION=typesense
|
TYPESENSE_CONNECTION=typesense
|
||||||
|
|||||||
@@ -5,12 +5,12 @@ namespace App\Http\Controllers;
|
|||||||
use App\Events\UserCreated;
|
use App\Events\UserCreated;
|
||||||
use App\Models\Notification;
|
use App\Models\Notification;
|
||||||
use App\Models\User;
|
use App\Models\User;
|
||||||
|
use Illuminate\Database\Eloquent\ModelNotFoundException;
|
||||||
use Illuminate\Http\JsonResponse;
|
use Illuminate\Http\JsonResponse;
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
use Illuminate\Support\Facades\Gate;
|
use Illuminate\Support\Facades\Gate;
|
||||||
use Illuminate\Support\Facades\Hash;
|
use Illuminate\Support\Facades\Hash;
|
||||||
use Illuminate\Support\Facades\Log;
|
use Illuminate\Support\Facades\Log;
|
||||||
use App\Services\GetRole;
|
|
||||||
use App\Services\UserService;
|
use App\Services\UserService;
|
||||||
use Propaganistas\LaravelPhone\PhoneNumber;
|
use Propaganistas\LaravelPhone\PhoneNumber;
|
||||||
|
|
||||||
@@ -90,7 +90,9 @@ class UserController extends Controller
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
return response()->json(UserService::getData($id));
|
return response()->json(UserService::getData($id));
|
||||||
} catch(\Exception $e) {
|
} catch (ModelNotFoundException $e) {
|
||||||
|
return response()->json(['message' => 'Utilisateur non trouvé'], 404);
|
||||||
|
} catch (\Exception $e) {
|
||||||
Log::info($e->getMessage());
|
Log::info($e->getMessage());
|
||||||
return response()->json(['message' => "Server error"], 500);
|
return response()->json(['message' => "Server error"], 500);
|
||||||
}
|
}
|
||||||
@@ -214,4 +216,18 @@ class UserController extends Controller
|
|||||||
return response()->json(['message' => "Server error"], 500);
|
return response()->json(['message' => "Server error"], 500);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getInvalidUsers(Request $request): JsonResponse {
|
||||||
|
|
||||||
|
try {
|
||||||
|
|
||||||
|
$users = User::where('validate', 0)->pluck('id');
|
||||||
|
|
||||||
|
return response()->json($users);
|
||||||
|
|
||||||
|
} catch (\Exception $e) {
|
||||||
|
Log::info($e->getMessage());
|
||||||
|
return response()->json(['message' => "Server error"], 500);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,7 +7,8 @@ class UserService
|
|||||||
{
|
{
|
||||||
public static function getData(int $id) : array {
|
public static function getData(int $id) : array {
|
||||||
|
|
||||||
$user = User::find($id);
|
$user = User::findOrFail($id);
|
||||||
|
|
||||||
return [
|
return [
|
||||||
"id" => $user->id,
|
"id" => $user->id,
|
||||||
"name" => $user->name,
|
"name" => $user->name,
|
||||||
|
|||||||
Generated
+526
-2179
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,19 @@
|
|||||||
|
FROM alpine:latest
|
||||||
|
|
||||||
|
# Installer les dépendances nécessaires
|
||||||
|
RUN apk add --no-cache mariadb-client bash dcron
|
||||||
|
|
||||||
|
# Créer les répertoires nécessaires
|
||||||
|
RUN mkdir -p /backups
|
||||||
|
RUN mkdir -p /etc/periodic/15min
|
||||||
|
|
||||||
|
# Copier les fichiers depuis le dossier `backup/`
|
||||||
|
COPY backup/backup_db.sh /etc/periodic/15min/backup_db
|
||||||
|
COPY backup/entrypoint2.sh /entrypoint.sh
|
||||||
|
|
||||||
|
# Donner les permissions d'exécution
|
||||||
|
RUN chmod +x /etc/periodic/15min/backup_db
|
||||||
|
RUN chmod +x /entrypoint.sh
|
||||||
|
|
||||||
|
# Utiliser le script d'entrée
|
||||||
|
ENTRYPOINT ["/entrypoint.sh"]
|
||||||
Executable
+20
@@ -0,0 +1,20 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Config
|
||||||
|
DB_USER="root"
|
||||||
|
DB_PASS="root"
|
||||||
|
DB_NAME="laravel"
|
||||||
|
BACKUP_DIR="/backups"
|
||||||
|
|
||||||
|
# Créer le répertoire de backup s'il n'existe pas
|
||||||
|
mkdir -p "$BACKUP_DIR"
|
||||||
|
|
||||||
|
# Nom du fichier : "jour du mois" (01.sql à 30.sql)
|
||||||
|
DAY=$(date +%d) # jour actuel 01-31
|
||||||
|
FILE="$BACKUP_DIR/$DAY.sql"
|
||||||
|
|
||||||
|
# Exécuter le dump
|
||||||
|
mysqldump -h mariadb -u "$DB_USER" -p"$DB_PASS" "$DB_NAME" > "$FILE"
|
||||||
|
|
||||||
|
# Log
|
||||||
|
echo "[$(date)] Backup $DB_NAME sauvegardé dans $FILE" >> "$BACKUP_DIR/backup.log"
|
||||||
Executable
+2
@@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
crond -f -l 2
|
||||||
@@ -0,0 +1,359 @@
|
|||||||
|
/*M!999999\- enable the sandbox mode */
|
||||||
|
-- MariaDB dump 10.19-11.4.9-MariaDB, for Linux (x86_64)
|
||||||
|
--
|
||||||
|
-- Host: mariadb Database: laravel
|
||||||
|
-- ------------------------------------------------------
|
||||||
|
-- Server version 12.1.2-MariaDB-ubu2404
|
||||||
|
|
||||||
|
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
|
||||||
|
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
|
||||||
|
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
|
||||||
|
/*!40101 SET NAMES utf8mb4 */;
|
||||||
|
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
|
||||||
|
/*!40103 SET TIME_ZONE='+00:00' */;
|
||||||
|
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
|
||||||
|
/*!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' */;
|
||||||
|
/*M!100616 SET @OLD_NOTE_VERBOSITY=@@NOTE_VERBOSITY, NOTE_VERBOSITY=0 */;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Table structure for table `cache`
|
||||||
|
--
|
||||||
|
|
||||||
|
DROP TABLE IF EXISTS `cache`;
|
||||||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||||
|
/*!40101 SET character_set_client = utf8mb4 */;
|
||||||
|
CREATE TABLE `cache` (
|
||||||
|
`key` varchar(255) NOT NULL,
|
||||||
|
`value` mediumtext NOT NULL,
|
||||||
|
`expiration` int(11) NOT NULL,
|
||||||
|
PRIMARY KEY (`key`)
|
||||||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Dumping data for table `cache`
|
||||||
|
--
|
||||||
|
|
||||||
|
LOCK TABLES `cache` WRITE;
|
||||||
|
/*!40000 ALTER TABLE `cache` DISABLE KEYS */;
|
||||||
|
/*!40000 ALTER TABLE `cache` ENABLE KEYS */;
|
||||||
|
UNLOCK TABLES;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Table structure for table `cache_locks`
|
||||||
|
--
|
||||||
|
|
||||||
|
DROP TABLE IF EXISTS `cache_locks`;
|
||||||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||||
|
/*!40101 SET character_set_client = utf8mb4 */;
|
||||||
|
CREATE TABLE `cache_locks` (
|
||||||
|
`key` varchar(255) NOT NULL,
|
||||||
|
`owner` varchar(255) NOT NULL,
|
||||||
|
`expiration` int(11) NOT NULL,
|
||||||
|
PRIMARY KEY (`key`)
|
||||||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Dumping data for table `cache_locks`
|
||||||
|
--
|
||||||
|
|
||||||
|
LOCK TABLES `cache_locks` WRITE;
|
||||||
|
/*!40000 ALTER TABLE `cache_locks` DISABLE KEYS */;
|
||||||
|
/*!40000 ALTER TABLE `cache_locks` ENABLE KEYS */;
|
||||||
|
UNLOCK TABLES;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Table structure for table `events`
|
||||||
|
--
|
||||||
|
|
||||||
|
DROP TABLE IF EXISTS `events`;
|
||||||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||||
|
/*!40101 SET character_set_client = utf8mb4 */;
|
||||||
|
CREATE TABLE `events` (
|
||||||
|
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
||||||
|
`name` varchar(255) NOT NULL,
|
||||||
|
`description` varchar(255) NOT NULL,
|
||||||
|
`start` datetime DEFAULT NULL,
|
||||||
|
`end` datetime 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;
|
||||||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Dumping data for table `events`
|
||||||
|
--
|
||||||
|
|
||||||
|
LOCK TABLES `events` WRITE;
|
||||||
|
/*!40000 ALTER TABLE `events` DISABLE KEYS */;
|
||||||
|
/*!40000 ALTER TABLE `events` ENABLE KEYS */;
|
||||||
|
UNLOCK TABLES;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Table structure for table `jobs`
|
||||||
|
--
|
||||||
|
|
||||||
|
DROP TABLE IF EXISTS `jobs`;
|
||||||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||||
|
/*!40101 SET character_set_client = utf8mb4 */;
|
||||||
|
CREATE TABLE `jobs` (
|
||||||
|
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
||||||
|
`queue` varchar(255) NOT NULL,
|
||||||
|
`payload` longtext NOT NULL,
|
||||||
|
`attempts` tinyint(3) unsigned NOT NULL,
|
||||||
|
`reserved_at` int(10) unsigned DEFAULT NULL,
|
||||||
|
`available_at` int(10) unsigned NOT NULL,
|
||||||
|
`created_at` int(10) unsigned NOT NULL,
|
||||||
|
PRIMARY KEY (`id`),
|
||||||
|
KEY `jobs_queue_index` (`queue`)
|
||||||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Dumping data for table `jobs`
|
||||||
|
--
|
||||||
|
|
||||||
|
LOCK TABLES `jobs` WRITE;
|
||||||
|
/*!40000 ALTER TABLE `jobs` DISABLE KEYS */;
|
||||||
|
/*!40000 ALTER TABLE `jobs` ENABLE KEYS */;
|
||||||
|
UNLOCK TABLES;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Table structure for table `migrations`
|
||||||
|
--
|
||||||
|
|
||||||
|
DROP TABLE IF EXISTS `migrations`;
|
||||||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||||
|
/*!40101 SET character_set_client = utf8mb4 */;
|
||||||
|
CREATE TABLE `migrations` (
|
||||||
|
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
||||||
|
`migration` varchar(255) NOT NULL,
|
||||||
|
`batch` int(11) NOT NULL,
|
||||||
|
PRIMARY KEY (`id`)
|
||||||
|
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Dumping data for table `migrations`
|
||||||
|
--
|
||||||
|
|
||||||
|
LOCK TABLES `migrations` WRITE;
|
||||||
|
/*!40000 ALTER TABLE `migrations` DISABLE KEYS */;
|
||||||
|
INSERT INTO `migrations` VALUES
|
||||||
|
(1,'2025_10_13_213713_create_jobs_table',1),
|
||||||
|
(2,'2025_10_13_215246_create_users_table',1),
|
||||||
|
(3,'2025_10_14_210658_create_sessions_table',1),
|
||||||
|
(4,'2025_10_14_210940_add_remember_token_to_users_table',1),
|
||||||
|
(5,'2025_10_27_211752_create_events_table',1),
|
||||||
|
(6,'2025_11_07_103448_create_notifications_table',1),
|
||||||
|
(7,'2025_11_09_144248_create_tasks_table',1),
|
||||||
|
(8,'2025_11_14_081656_task_user',1),
|
||||||
|
(9,'2025_11_28_112359_create_cache_table',1),
|
||||||
|
(10,'2025_12_10_092809_notification_user',1);
|
||||||
|
/*!40000 ALTER TABLE `migrations` ENABLE KEYS */;
|
||||||
|
UNLOCK TABLES;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Table structure for table `notification_user`
|
||||||
|
--
|
||||||
|
|
||||||
|
DROP TABLE IF EXISTS `notification_user`;
|
||||||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||||
|
/*!40101 SET character_set_client = utf8mb4 */;
|
||||||
|
CREATE TABLE `notification_user` (
|
||||||
|
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
||||||
|
`notification_id` bigint(20) unsigned NOT NULL,
|
||||||
|
`user_id` bigint(20) unsigned NOT NULL,
|
||||||
|
`created_at` timestamp NULL DEFAULT NULL,
|
||||||
|
`updated_at` timestamp NULL DEFAULT NULL,
|
||||||
|
PRIMARY KEY (`id`),
|
||||||
|
KEY `notification_user_notification_id_foreign` (`notification_id`),
|
||||||
|
KEY `notification_user_user_id_foreign` (`user_id`),
|
||||||
|
CONSTRAINT `notification_user_notification_id_foreign` FOREIGN KEY (`notification_id`) REFERENCES `notifications` (`id`) ON DELETE CASCADE,
|
||||||
|
CONSTRAINT `notification_user_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE
|
||||||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Dumping data for table `notification_user`
|
||||||
|
--
|
||||||
|
|
||||||
|
LOCK TABLES `notification_user` WRITE;
|
||||||
|
/*!40000 ALTER TABLE `notification_user` DISABLE KEYS */;
|
||||||
|
/*!40000 ALTER TABLE `notification_user` ENABLE KEYS */;
|
||||||
|
UNLOCK TABLES;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Table structure for table `notifications`
|
||||||
|
--
|
||||||
|
|
||||||
|
DROP TABLE IF EXISTS `notifications`;
|
||||||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||||
|
/*!40101 SET character_set_client = utf8mb4 */;
|
||||||
|
CREATE TABLE `notifications` (
|
||||||
|
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
||||||
|
`created_at` timestamp NULL DEFAULT NULL,
|
||||||
|
`updated_at` timestamp NULL DEFAULT NULL,
|
||||||
|
`content` varchar(255) NOT NULL,
|
||||||
|
PRIMARY KEY (`id`)
|
||||||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Dumping data for table `notifications`
|
||||||
|
--
|
||||||
|
|
||||||
|
LOCK TABLES `notifications` WRITE;
|
||||||
|
/*!40000 ALTER TABLE `notifications` DISABLE KEYS */;
|
||||||
|
/*!40000 ALTER TABLE `notifications` ENABLE KEYS */;
|
||||||
|
UNLOCK TABLES;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Table structure for table `sessions`
|
||||||
|
--
|
||||||
|
|
||||||
|
DROP TABLE IF EXISTS `sessions`;
|
||||||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||||
|
/*!40101 SET character_set_client = utf8mb4 */;
|
||||||
|
CREATE TABLE `sessions` (
|
||||||
|
`id` varchar(255) NOT NULL,
|
||||||
|
`user_id` bigint(20) unsigned DEFAULT NULL,
|
||||||
|
`ip_address` varchar(45) DEFAULT NULL,
|
||||||
|
`user_agent` text DEFAULT NULL,
|
||||||
|
`payload` longtext NOT NULL,
|
||||||
|
`last_activity` int(11) NOT NULL,
|
||||||
|
PRIMARY KEY (`id`),
|
||||||
|
KEY `sessions_user_id_index` (`user_id`),
|
||||||
|
KEY `sessions_last_activity_index` (`last_activity`)
|
||||||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Dumping data for table `sessions`
|
||||||
|
--
|
||||||
|
|
||||||
|
LOCK TABLES `sessions` WRITE;
|
||||||
|
/*!40000 ALTER TABLE `sessions` DISABLE KEYS */;
|
||||||
|
INSERT INTO `sessions` VALUES
|
||||||
|
('fOfGv56vGFKcMJg1VDjGMMrJEsrCmHWUuc1KR90q',1,'192.168.200.1','Mozilla/5.0 (X11; Linux x86_64; rv:140.0) Gecko/20100101 Firefox/140.0','YTo0OntzOjY6Il90b2tlbiI7czo0MDoidEoyRHJsR2R2MHdIRGVvdXZwaTBsWUZxb1JPUGFBbHZZa1dYYkM5ayI7czo1MDoibG9naW5fd2ViXzU5YmEzNmFkZGMyYjJmOTQwMTU4MGYwMTRjN2Y1OGVhNGUzMDk4OWQiO2k6MTtzOjk6Il9wcmV2aW91cyI7YToyOntzOjM6InVybCI7czoyOToiaHR0cDovL2xvY2FsaG9zdC9hcGkvdXNlcnMvbWUiO3M6NToicm91dGUiO047fXM6NjoiX2ZsYXNoIjthOjI6e3M6Mzoib2xkIjthOjA6e31zOjM6Im5ldyI7YTowOnt9fX0=',1767779264),
|
||||||
|
('UohGNwK6dEqkqfRsteqqWYUFzI2dHrDTZPBIpOo3',1,'192.168.200.1','Mozilla/5.0 (X11; Linux x86_64; rv:140.0) Gecko/20100101 Firefox/140.0','YTo0OntzOjY6Il90b2tlbiI7czo0MDoiYmNlb2JoTkRheDY0blRveXdEVjYxM25McEFNRmxGTXdVdjdCdFpabCI7czo2OiJfZmxhc2giO2E6Mjp7czozOiJvbGQiO2E6MDp7fXM6MzoibmV3IjthOjA6e319czo5OiJfcHJldmlvdXMiO2E6Mjp7czozOiJ1cmwiO3M6Mjg6Imh0dHA6Ly9sb2NhbGhvc3QvYXBpL3VzZXJzLzMiO3M6NToicm91dGUiO047fXM6NTA6ImxvZ2luX3dlYl81OWJhMzZhZGRjMmIyZjk0MDE1ODBmMDE0YzdmNThlYTRlMzA5ODlkIjtpOjE7fQ==',1767785280),
|
||||||
|
('x3RIOoCY2S7bcIzRxSNC0E8TL2O8J3ZvNu8CERSv',NULL,'192.168.200.1','Mozilla/5.0 (X11; Linux x86_64; rv:140.0) Gecko/20100101 Firefox/140.0','YTozOntzOjY6Il90b2tlbiI7czo0MDoiSFBIc21Xa29QQmxiMzhWaE5GVlRqYTRmTlJoWEVlOEM4MTlGcU5KbyI7czo2OiJfZmxhc2giO2E6Mjp7czozOiJvbGQiO2E6MDp7fXM6MzoibmV3IjthOjA6e319czo5OiJfcHJldmlvdXMiO2E6Mjp7czozOiJ1cmwiO3M6MzY6Imh0dHA6Ly9sb2NhbGhvc3Qvc2FuY3R1bS9jc3JmLWNvb2tpZSI7czo1OiJyb3V0ZSI7czoxOToic2FuY3R1bS5jc3JmLWNvb2tpZSI7fX0=',1767798400);
|
||||||
|
/*!40000 ALTER TABLE `sessions` ENABLE KEYS */;
|
||||||
|
UNLOCK TABLES;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Table structure for table `task_user`
|
||||||
|
--
|
||||||
|
|
||||||
|
DROP TABLE IF EXISTS `task_user`;
|
||||||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||||
|
/*!40101 SET character_set_client = utf8mb4 */;
|
||||||
|
CREATE TABLE `task_user` (
|
||||||
|
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
||||||
|
`task_id` bigint(20) unsigned NOT NULL,
|
||||||
|
`user_id` bigint(20) unsigned NOT NULL,
|
||||||
|
`created_at` timestamp NULL DEFAULT NULL,
|
||||||
|
`updated_at` timestamp NULL DEFAULT NULL,
|
||||||
|
PRIMARY KEY (`id`),
|
||||||
|
KEY `task_user_task_id_foreign` (`task_id`),
|
||||||
|
KEY `task_user_user_id_foreign` (`user_id`),
|
||||||
|
CONSTRAINT `task_user_task_id_foreign` FOREIGN KEY (`task_id`) REFERENCES `tasks` (`id`) ON DELETE CASCADE,
|
||||||
|
CONSTRAINT `task_user_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE
|
||||||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Dumping data for table `task_user`
|
||||||
|
--
|
||||||
|
|
||||||
|
LOCK TABLES `task_user` WRITE;
|
||||||
|
/*!40000 ALTER TABLE `task_user` DISABLE KEYS */;
|
||||||
|
/*!40000 ALTER TABLE `task_user` ENABLE KEYS */;
|
||||||
|
UNLOCK TABLES;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Table structure for table `tasks`
|
||||||
|
--
|
||||||
|
|
||||||
|
DROP TABLE IF EXISTS `tasks`;
|
||||||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||||
|
/*!40101 SET character_set_client = utf8mb4 */;
|
||||||
|
CREATE TABLE `tasks` (
|
||||||
|
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
||||||
|
`name` varchar(255) NOT NULL,
|
||||||
|
`description` varchar(255) NOT NULL,
|
||||||
|
`location` varchar(255) NOT NULL,
|
||||||
|
`start` datetime NOT NULL,
|
||||||
|
`end` datetime NOT NULL,
|
||||||
|
`max_participants` int(11) NOT NULL,
|
||||||
|
`events_id` bigint(20) unsigned NOT NULL,
|
||||||
|
`created_at` timestamp NULL DEFAULT NULL,
|
||||||
|
`updated_at` timestamp NULL DEFAULT NULL,
|
||||||
|
PRIMARY KEY (`id`),
|
||||||
|
KEY `tasks_events_id_foreign` (`events_id`),
|
||||||
|
CONSTRAINT `tasks_events_id_foreign` FOREIGN KEY (`events_id`) REFERENCES `events` (`id`) ON DELETE CASCADE
|
||||||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Dumping data for table `tasks`
|
||||||
|
--
|
||||||
|
|
||||||
|
LOCK TABLES `tasks` WRITE;
|
||||||
|
/*!40000 ALTER TABLE `tasks` DISABLE KEYS */;
|
||||||
|
/*!40000 ALTER TABLE `tasks` ENABLE KEYS */;
|
||||||
|
UNLOCK TABLES;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Table structure for table `users`
|
||||||
|
--
|
||||||
|
|
||||||
|
DROP TABLE IF EXISTS `users`;
|
||||||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||||
|
/*!40101 SET character_set_client = utf8mb4 */;
|
||||||
|
CREATE TABLE `users` (
|
||||||
|
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
||||||
|
`name` varchar(255) NOT NULL,
|
||||||
|
`lastname` varchar(255) NOT NULL,
|
||||||
|
`email` varchar(255) NOT NULL,
|
||||||
|
`password` varchar(255) NOT NULL,
|
||||||
|
`phone` varchar(255) DEFAULT NULL,
|
||||||
|
`validate` int(11) NOT NULL,
|
||||||
|
`role` int(11) DEFAULT NULL,
|
||||||
|
`verified_at` datetime DEFAULT NULL,
|
||||||
|
`created_at` timestamp NULL DEFAULT NULL,
|
||||||
|
`updated_at` timestamp NULL DEFAULT NULL,
|
||||||
|
`remember_token` varchar(100) DEFAULT NULL,
|
||||||
|
PRIMARY KEY (`id`),
|
||||||
|
UNIQUE KEY `users_email_unique` (`email`)
|
||||||
|
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Dumping data for table `users`
|
||||||
|
--
|
||||||
|
|
||||||
|
LOCK TABLES `users` WRITE;
|
||||||
|
/*!40000 ALTER TABLE `users` DISABLE KEYS */;
|
||||||
|
INSERT INTO `users` VALUES
|
||||||
|
(1,'Malo','Leblond','a@gmail.com','$2y$12$xbPw0/LtE7w8uzkk/EHxPey0vD8IrgqCwUxl8hYqGDbmrQp5dzF86','+33 7 67 87 11 11',1,NULL,NULL,'2026-01-05 08:35:22','2026-01-05 08:35:22','FsnEvcbRjNXNd2W0JhD535V6OIJKWl6WWHgfNAjwDvwrNKzSX5Wzv5h5J5nq'),
|
||||||
|
(2,'user2','user','b@gmail.com','$2y$12$pg2rdRW3gTw7BMC0l/PVIud719YTuspoGapfNNWmOx1JXb7sVbitq','+33 7 55 55 55 55',1,NULL,NULL,'2026-01-05 10:00:58','2026-01-05 10:00:58',NULL),
|
||||||
|
(3,'user3','user','lejhkdks@gmail.com','$2y$12$4Qt3VW147P.BiFW3qToCU.hpnRGo/KMhv2wKh4OZwhqeAZK0K1N2y','+33 7 88 88 88 88',1,NULL,NULL,'2026-01-05 10:01:38','2026-01-05 10:01:38',NULL),
|
||||||
|
(4,'compte1','sjs','1@gmail.com','$2y$12$ct4u8kOHqKg9ona.KzrjLuHFZfgkSsG3xQPFkAjoLnBy9hoUa/U4O','+33 9 88 88 88 88',1,NULL,NULL,'2026-01-07 15:06:07','2026-01-07 15:06:07',NULL),
|
||||||
|
(5,'compte2','sknssk','2@gmail.com','$2y$12$CsTLO8A0a4nRaiRBNEOn5O5gLas3ortE.zkT/91XX5OjIp.tKBa6q','+33 855 55 55 55',1,NULL,NULL,'2026-01-07 15:06:41','2026-01-07 15:06:41',NULL);
|
||||||
|
/*!40000 ALTER TABLE `users` ENABLE KEYS */;
|
||||||
|
UNLOCK TABLES;
|
||||||
|
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
|
||||||
|
|
||||||
|
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
|
||||||
|
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
|
||||||
|
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
|
||||||
|
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
||||||
|
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
|
||||||
|
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
||||||
|
/*M!100616 SET NOTE_VERBOSITY=@OLD_NOTE_VERBOSITY */;
|
||||||
|
|
||||||
|
-- Dump completed on 2026-01-07 15:23:54
|
||||||
@@ -0,0 +1,356 @@
|
|||||||
|
/*M!999999\- enable the sandbox mode */
|
||||||
|
-- MariaDB dump 10.19-11.4.9-MariaDB, for Linux (x86_64)
|
||||||
|
--
|
||||||
|
-- Host: mariadb Database: laravel
|
||||||
|
-- ------------------------------------------------------
|
||||||
|
-- Server version 12.1.2-MariaDB-ubu2404
|
||||||
|
|
||||||
|
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
|
||||||
|
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
|
||||||
|
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
|
||||||
|
/*!40101 SET NAMES utf8mb4 */;
|
||||||
|
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
|
||||||
|
/*!40103 SET TIME_ZONE='+00:00' */;
|
||||||
|
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
|
||||||
|
/*!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' */;
|
||||||
|
/*M!100616 SET @OLD_NOTE_VERBOSITY=@@NOTE_VERBOSITY, NOTE_VERBOSITY=0 */;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Table structure for table `cache`
|
||||||
|
--
|
||||||
|
|
||||||
|
DROP TABLE IF EXISTS `cache`;
|
||||||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||||
|
/*!40101 SET character_set_client = utf8mb4 */;
|
||||||
|
CREATE TABLE `cache` (
|
||||||
|
`key` varchar(255) NOT NULL,
|
||||||
|
`value` mediumtext NOT NULL,
|
||||||
|
`expiration` int(11) NOT NULL,
|
||||||
|
PRIMARY KEY (`key`)
|
||||||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Dumping data for table `cache`
|
||||||
|
--
|
||||||
|
|
||||||
|
LOCK TABLES `cache` WRITE;
|
||||||
|
/*!40000 ALTER TABLE `cache` DISABLE KEYS */;
|
||||||
|
/*!40000 ALTER TABLE `cache` ENABLE KEYS */;
|
||||||
|
UNLOCK TABLES;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Table structure for table `cache_locks`
|
||||||
|
--
|
||||||
|
|
||||||
|
DROP TABLE IF EXISTS `cache_locks`;
|
||||||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||||
|
/*!40101 SET character_set_client = utf8mb4 */;
|
||||||
|
CREATE TABLE `cache_locks` (
|
||||||
|
`key` varchar(255) NOT NULL,
|
||||||
|
`owner` varchar(255) NOT NULL,
|
||||||
|
`expiration` int(11) NOT NULL,
|
||||||
|
PRIMARY KEY (`key`)
|
||||||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Dumping data for table `cache_locks`
|
||||||
|
--
|
||||||
|
|
||||||
|
LOCK TABLES `cache_locks` WRITE;
|
||||||
|
/*!40000 ALTER TABLE `cache_locks` DISABLE KEYS */;
|
||||||
|
/*!40000 ALTER TABLE `cache_locks` ENABLE KEYS */;
|
||||||
|
UNLOCK TABLES;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Table structure for table `events`
|
||||||
|
--
|
||||||
|
|
||||||
|
DROP TABLE IF EXISTS `events`;
|
||||||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||||
|
/*!40101 SET character_set_client = utf8mb4 */;
|
||||||
|
CREATE TABLE `events` (
|
||||||
|
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
||||||
|
`name` varchar(255) NOT NULL,
|
||||||
|
`description` varchar(255) NOT NULL,
|
||||||
|
`start` datetime DEFAULT NULL,
|
||||||
|
`end` datetime 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;
|
||||||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Dumping data for table `events`
|
||||||
|
--
|
||||||
|
|
||||||
|
LOCK TABLES `events` WRITE;
|
||||||
|
/*!40000 ALTER TABLE `events` DISABLE KEYS */;
|
||||||
|
/*!40000 ALTER TABLE `events` ENABLE KEYS */;
|
||||||
|
UNLOCK TABLES;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Table structure for table `jobs`
|
||||||
|
--
|
||||||
|
|
||||||
|
DROP TABLE IF EXISTS `jobs`;
|
||||||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||||
|
/*!40101 SET character_set_client = utf8mb4 */;
|
||||||
|
CREATE TABLE `jobs` (
|
||||||
|
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
||||||
|
`queue` varchar(255) NOT NULL,
|
||||||
|
`payload` longtext NOT NULL,
|
||||||
|
`attempts` tinyint(3) unsigned NOT NULL,
|
||||||
|
`reserved_at` int(10) unsigned DEFAULT NULL,
|
||||||
|
`available_at` int(10) unsigned NOT NULL,
|
||||||
|
`created_at` int(10) unsigned NOT NULL,
|
||||||
|
PRIMARY KEY (`id`),
|
||||||
|
KEY `jobs_queue_index` (`queue`)
|
||||||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Dumping data for table `jobs`
|
||||||
|
--
|
||||||
|
|
||||||
|
LOCK TABLES `jobs` WRITE;
|
||||||
|
/*!40000 ALTER TABLE `jobs` DISABLE KEYS */;
|
||||||
|
/*!40000 ALTER TABLE `jobs` ENABLE KEYS */;
|
||||||
|
UNLOCK TABLES;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Table structure for table `migrations`
|
||||||
|
--
|
||||||
|
|
||||||
|
DROP TABLE IF EXISTS `migrations`;
|
||||||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||||
|
/*!40101 SET character_set_client = utf8mb4 */;
|
||||||
|
CREATE TABLE `migrations` (
|
||||||
|
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
||||||
|
`migration` varchar(255) NOT NULL,
|
||||||
|
`batch` int(11) NOT NULL,
|
||||||
|
PRIMARY KEY (`id`)
|
||||||
|
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Dumping data for table `migrations`
|
||||||
|
--
|
||||||
|
|
||||||
|
LOCK TABLES `migrations` WRITE;
|
||||||
|
/*!40000 ALTER TABLE `migrations` DISABLE KEYS */;
|
||||||
|
INSERT INTO `migrations` VALUES
|
||||||
|
(1,'2025_10_13_213713_create_jobs_table',1),
|
||||||
|
(2,'2025_10_13_215246_create_users_table',1),
|
||||||
|
(3,'2025_10_14_210658_create_sessions_table',1),
|
||||||
|
(4,'2025_10_14_210940_add_remember_token_to_users_table',1),
|
||||||
|
(5,'2025_10_27_211752_create_events_table',1),
|
||||||
|
(6,'2025_11_07_103448_create_notifications_table',1),
|
||||||
|
(7,'2025_11_09_144248_create_tasks_table',1),
|
||||||
|
(8,'2025_11_14_081656_task_user',1),
|
||||||
|
(9,'2025_11_28_112359_create_cache_table',1),
|
||||||
|
(10,'2025_12_10_092809_notification_user',1);
|
||||||
|
/*!40000 ALTER TABLE `migrations` ENABLE KEYS */;
|
||||||
|
UNLOCK TABLES;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Table structure for table `notification_user`
|
||||||
|
--
|
||||||
|
|
||||||
|
DROP TABLE IF EXISTS `notification_user`;
|
||||||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||||
|
/*!40101 SET character_set_client = utf8mb4 */;
|
||||||
|
CREATE TABLE `notification_user` (
|
||||||
|
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
||||||
|
`notification_id` bigint(20) unsigned NOT NULL,
|
||||||
|
`user_id` bigint(20) unsigned NOT NULL,
|
||||||
|
`created_at` timestamp NULL DEFAULT NULL,
|
||||||
|
`updated_at` timestamp NULL DEFAULT NULL,
|
||||||
|
PRIMARY KEY (`id`),
|
||||||
|
KEY `notification_user_notification_id_foreign` (`notification_id`),
|
||||||
|
KEY `notification_user_user_id_foreign` (`user_id`),
|
||||||
|
CONSTRAINT `notification_user_notification_id_foreign` FOREIGN KEY (`notification_id`) REFERENCES `notifications` (`id`) ON DELETE CASCADE,
|
||||||
|
CONSTRAINT `notification_user_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE
|
||||||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Dumping data for table `notification_user`
|
||||||
|
--
|
||||||
|
|
||||||
|
LOCK TABLES `notification_user` WRITE;
|
||||||
|
/*!40000 ALTER TABLE `notification_user` DISABLE KEYS */;
|
||||||
|
/*!40000 ALTER TABLE `notification_user` ENABLE KEYS */;
|
||||||
|
UNLOCK TABLES;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Table structure for table `notifications`
|
||||||
|
--
|
||||||
|
|
||||||
|
DROP TABLE IF EXISTS `notifications`;
|
||||||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||||
|
/*!40101 SET character_set_client = utf8mb4 */;
|
||||||
|
CREATE TABLE `notifications` (
|
||||||
|
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
||||||
|
`created_at` timestamp NULL DEFAULT NULL,
|
||||||
|
`updated_at` timestamp NULL DEFAULT NULL,
|
||||||
|
`content` varchar(255) NOT NULL,
|
||||||
|
PRIMARY KEY (`id`)
|
||||||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Dumping data for table `notifications`
|
||||||
|
--
|
||||||
|
|
||||||
|
LOCK TABLES `notifications` WRITE;
|
||||||
|
/*!40000 ALTER TABLE `notifications` DISABLE KEYS */;
|
||||||
|
/*!40000 ALTER TABLE `notifications` ENABLE KEYS */;
|
||||||
|
UNLOCK TABLES;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Table structure for table `sessions`
|
||||||
|
--
|
||||||
|
|
||||||
|
DROP TABLE IF EXISTS `sessions`;
|
||||||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||||
|
/*!40101 SET character_set_client = utf8mb4 */;
|
||||||
|
CREATE TABLE `sessions` (
|
||||||
|
`id` varchar(255) NOT NULL,
|
||||||
|
`user_id` bigint(20) unsigned DEFAULT NULL,
|
||||||
|
`ip_address` varchar(45) DEFAULT NULL,
|
||||||
|
`user_agent` text DEFAULT NULL,
|
||||||
|
`payload` longtext NOT NULL,
|
||||||
|
`last_activity` int(11) NOT NULL,
|
||||||
|
PRIMARY KEY (`id`),
|
||||||
|
KEY `sessions_user_id_index` (`user_id`),
|
||||||
|
KEY `sessions_last_activity_index` (`last_activity`)
|
||||||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Dumping data for table `sessions`
|
||||||
|
--
|
||||||
|
|
||||||
|
LOCK TABLES `sessions` WRITE;
|
||||||
|
/*!40000 ALTER TABLE `sessions` DISABLE KEYS */;
|
||||||
|
INSERT INTO `sessions` VALUES
|
||||||
|
('6hFPozHN6KwcsaTCwjLfYBKL1TZN1jh6ViET3Qdw',1,'192.168.200.1','Mozilla/5.0 (X11; Linux x86_64; rv:140.0) Gecko/20100101 Firefox/140.0','YTo0OntzOjY6Il90b2tlbiI7czo0MDoib0MyMTNvSWJSc1U5blVqUDkxQ3I5bW9RcDhZOXBpR2F5ZHdBUGF1USI7czo2OiJfZmxhc2giO2E6Mjp7czozOiJvbGQiO2E6MDp7fXM6MzoibmV3IjthOjA6e319czo5OiJfcHJldmlvdXMiO2E6Mjp7czozOiJ1cmwiO3M6Mjg6Imh0dHA6Ly9sb2NhbGhvc3QvYXBpL3VzZXJzLzUiO3M6NToicm91dGUiO047fXM6NTA6ImxvZ2luX3dlYl81OWJhMzZhZGRjMmIyZjk0MDE1ODBmMDE0YzdmNThlYTRlMzA5ODlkIjtpOjE7fQ==',1767803921);
|
||||||
|
/*!40000 ALTER TABLE `sessions` ENABLE KEYS */;
|
||||||
|
UNLOCK TABLES;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Table structure for table `task_user`
|
||||||
|
--
|
||||||
|
|
||||||
|
DROP TABLE IF EXISTS `task_user`;
|
||||||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||||
|
/*!40101 SET character_set_client = utf8mb4 */;
|
||||||
|
CREATE TABLE `task_user` (
|
||||||
|
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
||||||
|
`task_id` bigint(20) unsigned NOT NULL,
|
||||||
|
`user_id` bigint(20) unsigned NOT NULL,
|
||||||
|
`created_at` timestamp NULL DEFAULT NULL,
|
||||||
|
`updated_at` timestamp NULL DEFAULT NULL,
|
||||||
|
PRIMARY KEY (`id`),
|
||||||
|
KEY `task_user_task_id_foreign` (`task_id`),
|
||||||
|
KEY `task_user_user_id_foreign` (`user_id`),
|
||||||
|
CONSTRAINT `task_user_task_id_foreign` FOREIGN KEY (`task_id`) REFERENCES `tasks` (`id`) ON DELETE CASCADE,
|
||||||
|
CONSTRAINT `task_user_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE
|
||||||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Dumping data for table `task_user`
|
||||||
|
--
|
||||||
|
|
||||||
|
LOCK TABLES `task_user` WRITE;
|
||||||
|
/*!40000 ALTER TABLE `task_user` DISABLE KEYS */;
|
||||||
|
/*!40000 ALTER TABLE `task_user` ENABLE KEYS */;
|
||||||
|
UNLOCK TABLES;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Table structure for table `tasks`
|
||||||
|
--
|
||||||
|
|
||||||
|
DROP TABLE IF EXISTS `tasks`;
|
||||||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||||
|
/*!40101 SET character_set_client = utf8mb4 */;
|
||||||
|
CREATE TABLE `tasks` (
|
||||||
|
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
||||||
|
`name` varchar(255) NOT NULL,
|
||||||
|
`description` varchar(255) NOT NULL,
|
||||||
|
`location` varchar(255) NOT NULL,
|
||||||
|
`start` datetime NOT NULL,
|
||||||
|
`end` datetime NOT NULL,
|
||||||
|
`max_participants` int(11) NOT NULL,
|
||||||
|
`events_id` bigint(20) unsigned NOT NULL,
|
||||||
|
`created_at` timestamp NULL DEFAULT NULL,
|
||||||
|
`updated_at` timestamp NULL DEFAULT NULL,
|
||||||
|
PRIMARY KEY (`id`),
|
||||||
|
KEY `tasks_events_id_foreign` (`events_id`),
|
||||||
|
CONSTRAINT `tasks_events_id_foreign` FOREIGN KEY (`events_id`) REFERENCES `events` (`id`) ON DELETE CASCADE
|
||||||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Dumping data for table `tasks`
|
||||||
|
--
|
||||||
|
|
||||||
|
LOCK TABLES `tasks` WRITE;
|
||||||
|
/*!40000 ALTER TABLE `tasks` DISABLE KEYS */;
|
||||||
|
/*!40000 ALTER TABLE `tasks` ENABLE KEYS */;
|
||||||
|
UNLOCK TABLES;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Table structure for table `users`
|
||||||
|
--
|
||||||
|
|
||||||
|
DROP TABLE IF EXISTS `users`;
|
||||||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||||
|
/*!40101 SET character_set_client = utf8mb4 */;
|
||||||
|
CREATE TABLE `users` (
|
||||||
|
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
||||||
|
`name` varchar(255) NOT NULL,
|
||||||
|
`lastname` varchar(255) NOT NULL,
|
||||||
|
`email` varchar(255) NOT NULL,
|
||||||
|
`password` varchar(255) NOT NULL,
|
||||||
|
`phone` varchar(255) DEFAULT NULL,
|
||||||
|
`validate` int(11) NOT NULL,
|
||||||
|
`role` int(11) DEFAULT NULL,
|
||||||
|
`verified_at` datetime DEFAULT NULL,
|
||||||
|
`created_at` timestamp NULL DEFAULT NULL,
|
||||||
|
`updated_at` timestamp NULL DEFAULT NULL,
|
||||||
|
`remember_token` varchar(100) DEFAULT NULL,
|
||||||
|
PRIMARY KEY (`id`),
|
||||||
|
UNIQUE KEY `users_email_unique` (`email`)
|
||||||
|
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Dumping data for table `users`
|
||||||
|
--
|
||||||
|
|
||||||
|
LOCK TABLES `users` WRITE;
|
||||||
|
/*!40000 ALTER TABLE `users` DISABLE KEYS */;
|
||||||
|
INSERT INTO `users` VALUES
|
||||||
|
(1,'Malo','Leblond','a@gmail.com','$2y$12$xbPw0/LtE7w8uzkk/EHxPey0vD8IrgqCwUxl8hYqGDbmrQp5dzF86','+33 7 67 87 11 11',1,NULL,NULL,'2026-01-05 08:35:22','2026-01-05 08:35:22','FsnEvcbRjNXNd2W0JhD535V6OIJKWl6WWHgfNAjwDvwrNKzSX5Wzv5h5J5nq'),
|
||||||
|
(2,'user2','user','b@gmail.com','$2y$12$pg2rdRW3gTw7BMC0l/PVIud719YTuspoGapfNNWmOx1JXb7sVbitq','+33 7 55 55 55 55',0,NULL,NULL,'2026-01-05 10:00:58','2026-01-05 10:00:58',NULL),
|
||||||
|
(4,'compte1','sjs','1@gmail.com','$2y$12$ct4u8kOHqKg9ona.KzrjLuHFZfgkSsG3xQPFkAjoLnBy9hoUa/U4O','+33 9 88 88 88 88',0,NULL,NULL,'2026-01-07 15:06:07','2026-01-07 15:06:07',NULL),
|
||||||
|
(5,'compte2','sknssk','2@gmail.com','$2y$12$CsTLO8A0a4nRaiRBNEOn5O5gLas3ortE.zkT/91XX5OjIp.tKBa6q','+33 855 55 55 55',0,NULL,NULL,'2026-01-07 15:06:41','2026-01-07 15:06:41',NULL);
|
||||||
|
/*!40000 ALTER TABLE `users` ENABLE KEYS */;
|
||||||
|
UNLOCK TABLES;
|
||||||
|
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
|
||||||
|
|
||||||
|
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
|
||||||
|
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
|
||||||
|
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
|
||||||
|
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
||||||
|
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
|
||||||
|
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
||||||
|
/*M!100616 SET NOTE_VERBOSITY=@OLD_NOTE_VERBOSITY */;
|
||||||
|
|
||||||
|
-- Dump completed on 2026-01-09 8:30:01
|
||||||
@@ -47,6 +47,17 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- typesense-data:/data
|
- typesense-data:/data
|
||||||
command: '--data-dir /data --api-key= --enable-cors'
|
command: '--data-dir /data --api-key= --enable-cors'
|
||||||
|
|
||||||
|
backup:
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: ./backup/Dockerfile
|
||||||
|
container_name: app-backup
|
||||||
|
volumes:
|
||||||
|
- ./backups:/backups
|
||||||
|
depends_on:
|
||||||
|
- mariadb
|
||||||
|
restart: unless-stopped
|
||||||
|
|
||||||
reverb:
|
reverb:
|
||||||
build:
|
build:
|
||||||
|
|||||||
@@ -34,3 +34,5 @@ Route::middleware(['web', 'auth:sanctum'])->get('/users/tasks/{idTask}', [UserCo
|
|||||||
|
|
||||||
Route::middleware(['web', 'auth:sanctum'])->get('/users/search', [SearchController::class, "searchUsers"]);
|
Route::middleware(['web', 'auth:sanctum'])->get('/users/search', [SearchController::class, "searchUsers"]);
|
||||||
|
|
||||||
|
Route::middleware(['web', 'auth:sanctum'])->get('/users/invalid', [UserController::class, "getInvalidUsers"]);
|
||||||
|
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ get {
|
|||||||
}
|
}
|
||||||
|
|
||||||
vars:pre-request {
|
vars:pre-request {
|
||||||
id:
|
id: 2398
|
||||||
}
|
}
|
||||||
|
|
||||||
settings {
|
settings {
|
||||||
|
|||||||
@@ -0,0 +1,16 @@
|
|||||||
|
meta {
|
||||||
|
name: Get invalid user
|
||||||
|
type: http
|
||||||
|
seq: 11
|
||||||
|
}
|
||||||
|
|
||||||
|
get {
|
||||||
|
url: {{url}}/api/users/invalid
|
||||||
|
body: none
|
||||||
|
auth: inherit
|
||||||
|
}
|
||||||
|
|
||||||
|
settings {
|
||||||
|
encodeUrl: true
|
||||||
|
timeout: 0
|
||||||
|
}
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
headers {
|
headers {
|
||||||
Accept: application/json
|
Accept: application/json
|
||||||
X-XSRF-TOKEN: eyJpdiI6IndFcmlWNnVVS2VFaXFHOVhzYS9iUEE9PSIsInZhbHVlIjoidWZHRUdvRy9tMWpRRnVxL0dkc2d4ZDRnTkwvVEtObndORFZpWWpNL0VTOWNOR3NHczV1V1pFUC9MdS9YTE9nMmJpZ1ViOVFmR05QaDZaN251TlNlQnl6MFB6VWNYNjdHT0NqTlBYNjRjaEY2SlhWNHk5WWwrQ09teTRwN2dzdDYiLCJtYWMiOiJhYjY0N2EwMzEzNTk4ODlkMjZkYTE0YTY1NTllN2VkODlhYjU0M2RmYzNjYzI3NDZkYjAwNWU5OTBiNDFjMjc4IiwidGFnIjoiIn0=
|
X-XSRF-TOKEN:
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user