delete docker folder
This commit is contained in:
Generated
+2252
-604
File diff suppressed because it is too large
Load Diff
@@ -1,14 +0,0 @@
|
|||||||
FROM alpine:latest
|
|
||||||
|
|
||||||
RUN apk add --no-cache mariadb-client bash dcron
|
|
||||||
|
|
||||||
RUN mkdir -p /backups
|
|
||||||
RUN mkdir -p /etc/periodic/15min
|
|
||||||
|
|
||||||
COPY backup/backup_db.sh /etc/periodic/15min/backup_db
|
|
||||||
COPY backup/entrypoint2.sh /entrypoint.sh
|
|
||||||
|
|
||||||
RUN chmod +x /etc/periodic/15min/backup_db
|
|
||||||
RUN chmod +x /entrypoint.sh
|
|
||||||
|
|
||||||
ENTRYPOINT ["/entrypoint.sh"]
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
DB_USER="root"
|
|
||||||
DB_PASS="root"
|
|
||||||
DB_NAME="laravel"
|
|
||||||
BACKUP_DIR="/backups"
|
|
||||||
|
|
||||||
mkdir -p "$BACKUP_DIR"
|
|
||||||
|
|
||||||
DAY=$(date +%d)
|
|
||||||
FILE="$BACKUP_DIR/$DAY.sql"
|
|
||||||
|
|
||||||
mysqldump -h mariadb -u "$DB_USER" -p"$DB_PASS" "$DB_NAME" > "$FILE"
|
|
||||||
|
|
||||||
echo "[$(date)] Backup $DB_NAME sauvegardé dans $FILE" >> "$BACKUP_DIR/backup.log"
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
crond -f -l 2
|
|
||||||
@@ -1,359 +0,0 @@
|
|||||||
/*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
|
|
||||||
@@ -1,356 +0,0 @@
|
|||||||
/*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
|
|
||||||
@@ -1,84 +0,0 @@
|
|||||||
version: "3.8"
|
|
||||||
|
|
||||||
services:
|
|
||||||
php:
|
|
||||||
build:
|
|
||||||
context: .
|
|
||||||
dockerfile: ./php/Dockerfile
|
|
||||||
container_name: app-php
|
|
||||||
extra_hosts:
|
|
||||||
- "host.docker.internal:host-gateway"
|
|
||||||
volumes:
|
|
||||||
- ../:/var/www/app
|
|
||||||
environment:
|
|
||||||
- GIT_TOKEN=${GIT_TOKEN}
|
|
||||||
- GIT_REPO=${GIT_REPO}
|
|
||||||
depends_on:
|
|
||||||
- mariadb
|
|
||||||
|
|
||||||
|
|
||||||
nginx:
|
|
||||||
image: nginx
|
|
||||||
container_name: app-nginx
|
|
||||||
volumes:
|
|
||||||
- ../:/var/www/app
|
|
||||||
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf
|
|
||||||
ports:
|
|
||||||
- "80:80"
|
|
||||||
depends_on:
|
|
||||||
- php
|
|
||||||
|
|
||||||
mariadb:
|
|
||||||
image: mariadb:latest
|
|
||||||
environment:
|
|
||||||
MYSQL_ROOT_PASSWORD: root
|
|
||||||
MYSQL_DATABASE: laravel
|
|
||||||
ports:
|
|
||||||
- "3306:3306"
|
|
||||||
volumes:
|
|
||||||
- dbdata:/var/lib/mysql
|
|
||||||
|
|
||||||
|
|
||||||
typesense:
|
|
||||||
image: typesense/typesense:29.0
|
|
||||||
restart: on-failure
|
|
||||||
ports:
|
|
||||||
- "8108:8108"
|
|
||||||
volumes:
|
|
||||||
- typesense-data:/data
|
|
||||||
command: '--data-dir /data --api-key=xyz --enable-cors'
|
|
||||||
|
|
||||||
backup:
|
|
||||||
build:
|
|
||||||
context: .
|
|
||||||
dockerfile: ./backup/Dockerfile
|
|
||||||
container_name: app-backup
|
|
||||||
volumes:
|
|
||||||
- ./backups:/backups
|
|
||||||
depends_on:
|
|
||||||
- mariadb
|
|
||||||
restart: unless-stopped
|
|
||||||
|
|
||||||
reverb:
|
|
||||||
build:
|
|
||||||
context: .
|
|
||||||
dockerfile: ./php/Dockerfile
|
|
||||||
container_name: app-reverb
|
|
||||||
command: php artisan reverb:start --host=0.0.0.0 --port=8080
|
|
||||||
volumes:
|
|
||||||
- ../:/var/www/app
|
|
||||||
ports:
|
|
||||||
- "8080:8080"
|
|
||||||
depends_on:
|
|
||||||
- php
|
|
||||||
- mariadb
|
|
||||||
|
|
||||||
volumes:
|
|
||||||
dbdata:
|
|
||||||
typesense-data:
|
|
||||||
|
|
||||||
networks:
|
|
||||||
default:
|
|
||||||
ipam:
|
|
||||||
config:
|
|
||||||
- subnet: 192.168.200.0/24
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
APP_DIR=/var/www/app
|
|
||||||
|
|
||||||
if [ ! -d "$APP_DIR/.git" ]; then
|
|
||||||
git clone https://oauth2:${GIT_TOKEN}@${GIT_REPO} $APP_DIR
|
|
||||||
else
|
|
||||||
cd $APP_DIR
|
|
||||||
git pull
|
|
||||||
fi
|
|
||||||
|
|
||||||
cd $APP_DIR
|
|
||||||
|
|
||||||
mkdir -p storage bootstrap/cache
|
|
||||||
chown -R www-data:www-data storage bootstrap/cache
|
|
||||||
chmod -R 775 storage bootstrap/cache
|
|
||||||
|
|
||||||
composer install --no-interaction --prefer-dist
|
|
||||||
|
|
||||||
exec "$@"
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
server {
|
|
||||||
listen 80;
|
|
||||||
server_name 127.0.0.1;
|
|
||||||
|
|
||||||
root /var/www/app/public;
|
|
||||||
index index.php index.html;
|
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri $uri/ /index.php?$query_string;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \.php$ {
|
|
||||||
include fastcgi_params;
|
|
||||||
fastcgi_pass php:9000;
|
|
||||||
fastcgi_index index.php;
|
|
||||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
||||||
fastcgi_param SERVER_NAME 127.0.0.1;
|
|
||||||
fastcgi_param HTTPS off;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
FROM php:8.4-fpm
|
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y \
|
|
||||||
git unzip libzip-dev libpng-dev libonig-dev \
|
|
||||||
&& docker-php-ext-install pdo_mysql zip pcntl
|
|
||||||
|
|
||||||
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer
|
|
||||||
|
|
||||||
COPY ./entrypoint.sh /usr/local/bin/entrypoint.sh
|
|
||||||
RUN chmod +x /usr/local/bin/entrypoint.sh
|
|
||||||
|
|
||||||
WORKDIR /var/www/app
|
|
||||||
|
|
||||||
ENTRYPOINT ["entrypoint.sh"]
|
|
||||||
CMD ["php-fpm"]
|
|
||||||
Reference in New Issue
Block a user