diff --git a/back/package-lock.json b/back/package-lock.json index 8513c9efcb83bf64d91209c36ecc7fc3631a651e..2ab878915ac0b0018426c5bece75acea0469283f 100644 --- a/back/package-lock.json +++ b/back/package-lock.json @@ -456,6 +456,7 @@ "dependencies": { "anymatch": "~3.1.1", "braces": "~3.0.2", + "fsevents": "~2.1.2", "glob-parent": "~5.1.0", "is-binary-path": "~2.1.0", "is-glob": "~4.0.1", diff --git a/back/yarn.lock b/back/yarn.lock index 23a7ac3924350d713d0934cf2ec99dc4e8e81703..cf9a20174f6b67f359876e181bb20e04b64cb4cb 100644 --- a/back/yarn.lock +++ b/back/yarn.lock @@ -277,6 +277,7 @@ dependencies: "anymatch" "~3.1.1" "braces" "~3.0.2" + "fsevents" "~2.1.2" "glob-parent" "~5.1.0" "is-binary-path" "~2.1.0" "is-glob" "~4.0.1" diff --git a/db/initDatabase.sql b/db/initDatabase.sql new file mode 100644 index 0000000000000000000000000000000000000000..7ec2ee3bf3dc4aa6db7ea4b4ace80e396078c058 --- /dev/null +++ b/db/initDatabase.sql @@ -0,0 +1,155 @@ +-- MySQL dump 10.18 Distrib 10.3.27-MariaDB, for debian-linux-gnu (x86_64) +-- +-- Host: localhost Database: leaderboard +-- ------------------------------------------------------ +-- Server version 10.3.27-MariaDB-0+deb10u1 + +/*!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' */; +/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; + +-- +-- Table structure for table `Admin` +-- + +DROP TABLE IF EXISTS `Admin`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `Admin` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `login` varchar(100) NOT NULL, + `name` varchar(100) DEFAULT NULL, + `password` varchar(100) DEFAULT NULL, + `deleted` int(1) DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `Admin` +-- + +LOCK TABLES `Admin` WRITE; +/*!40000 ALTER TABLE `Admin` DISABLE KEYS */; +INSERT INTO `Admin` VALUES (1,'2019zucchetf','Fabien Zucchet',NULL,0),(2,'2019bouquett','Thomas Bouquet',NULL,0); +/*!40000 ALTER TABLE `Admin` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `Equipe` +-- + +DROP TABLE IF EXISTS `Equipe`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `Equipe` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `name` varchar(100) NOT NULL, + `deleted` int(1) DEFAULT 0, + PRIMARY KEY (`id`), + UNIQUE KEY `name` (`name`) +) ENGINE=InnoDB AUTO_INCREMENT=24 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `Event` +-- + +DROP TABLE IF EXISTS `Event`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `Event` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `name` varchar(100) NOT NULL, + `startDate` datetime NOT NULL, + `endDate` datetime NOT NULL, + `deleted` int(1) DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `Objectif` +-- + +DROP TABLE IF EXISTS `Objectif`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `Objectif` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `name` varchar(100) NOT NULL DEFAULT 'Objectif', + `description` varchar(500) DEFAULT NULL, + `value` int(11) NOT NULL, + `coef` float NOT NULL DEFAULT 1, + `deleted` int(1) DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `Participant` +-- + +DROP TABLE IF EXISTS `Participant`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `Participant` ( + `id` varchar(50) NOT NULL, + `name` varchar(100) NOT NULL, + `deleted` int(1) DEFAULT 0, + PRIMARY KEY (`id`), + UNIQUE KEY `name` (`name`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `Score` +-- + +DROP TABLE IF EXISTS `Score`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `Score` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `participantId` varchar(50) DEFAULT NULL, + `equipeId` int(11) DEFAULT NULL, + `score` bigint(20) NOT NULL, + `createdAt` datetime NOT NULL DEFAULT current_timestamp(), + `deleted` int(1) DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=48 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `Staffeurs` +-- + +DROP TABLE IF EXISTS `Staffeurs`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `Staffeurs` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `login` varchar(100) NOT NULL, + `name` varchar(100) DEFAULT NULL, + `password` varchar(100) DEFAULT NULL, + `deleted` int(1) DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8mb4; +/*!40101 SET character_set_client = @saved_cs_client */; + +/*!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 */; +/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; + +-- Dump completed on 2021-03-03 10:04:57 diff --git a/front/package-lock.json b/front/package-lock.json index 7838af20d6ed537294fd666b422d5dc255e061d0..e9d7c4c651e0c0108fe04a6d1bf2eed4b9e4fb13 100644 --- a/front/package-lock.json +++ b/front/package-lock.json @@ -4067,6 +4067,7 @@ "dependencies": { "anymatch": "~3.1.1", "braces": "~3.0.2", + "fsevents": "~2.3.1", "glob-parent": "~5.1.0", "is-binary-path": "~2.1.0", "is-glob": "~4.0.1", @@ -9002,6 +9003,7 @@ "@jest/types": "^24.9.0", "anymatch": "^2.0.0", "fb-watchman": "^2.0.0", + "fsevents": "^1.2.7", "graceful-fs": "^4.1.15", "invariant": "^2.2.4", "jest-serializer": "^24.9.0", @@ -13446,6 +13448,7 @@ "eslint-plugin-react-hooks": "^1.6.1", "file-loader": "4.3.0", "fs-extra": "^8.1.0", + "fsevents": "2.1.2", "html-webpack-plugin": "4.0.0-beta.11", "identity-obj-proxy": "3.0.0", "jest": "24.9.0", @@ -16168,7 +16171,8 @@ "dependencies": { "chokidar": "^3.4.1", "graceful-fs": "^4.1.2", - "neo-async": "^2.5.0" + "neo-async": "^2.5.0", + "watchpack-chokidar2": "^2.0.1" }, "optionalDependencies": { "watchpack-chokidar2": "^2.0.1" @@ -16446,6 +16450,7 @@ "anymatch": "^2.0.0", "async-each": "^1.0.1", "braces": "^2.3.2", + "fsevents": "^1.2.7", "glob-parent": "^3.1.0", "inherits": "^2.0.3", "is-binary-path": "^1.0.0",