Amélioration des récompenses

This commit is contained in:
2024-11-24 14:02:32 +01:00
parent 13cbfa3572
commit d73ccf1f1c
5 changed files with 114 additions and 82 deletions

View File

@@ -1,12 +1,9 @@
-- BACKUP DE LA BASE DE DONNÉE
-- phpMyAdmin SQL Dump
-- version 5.2.0
-- https://www.phpmyadmin.net/
--
-- Hôte : localhost
-- Généré le : dim. 24 nov. 2024 à 11:17
-- Généré le : dim. 24 nov. 2024 à 12:36
-- Version du serveur : 10.8.3-MariaDB
-- Version de PHP : 8.1.7
@@ -43,10 +40,15 @@ CREATE TABLE `Rewards` (
--
INSERT INTO `Rewards` (`reward_id`, `name`, `description`, `icon_path`, `is_unlocked`) VALUES
(1, 'Première victoire', 'Gagné après avoir remporté votre première partie.', '/path/to/icon1.png', 1),
(2, 'Maître Stratège', 'Attribué après avoir atteint un score de 200 points.', '/path/to/icon2.png', 0),
(3, 'Explorateur', 'Attribué après avoir découvert tous les territoires.', '/path/to/icon3.png', 0),
(4, 'Champion des Quêtes', 'Débloqué après avoir complété toutes les quêtes.', '/path/to/icon4.png', 1);
(1, 'Première victoire', 'Gagné sa première partie.', 'ressources/images/Recompense/1.png', 1),
(2, 'Première étape', 'Atteint un score de 10 points.', 'ressources/images/Recompense/2.png', 1),
(3, 'Explorateur', 'Atteint un score de 20 points.', 'ressources/images/Recompense/3.png', 0),
(4, 'Expert', 'Atteint un score de 50 points.', 'ressources/images/Recompense/4.png', 0),
(5, 'Champion', 'Atteint un score de 200 points.', 'ressources/images/Recompense/5.png', 0),
(6, 'Maître Stratège', 'Atteint un score de 500 points.', 'ressources/images/Recompense/6.png', 0),
(7, 'Légende', 'Atteint un score de 1000 points.', 'ressources/images/Recompense/7.png', 0),
(8, 'Inarrêtable', 'Atteint un score de 2000 points.', 'ressources/images/Recompense/8.png', 0),
(9, 'Goat du Jeu', 'Atteint un score de 5000 points.', 'ressources/images/Recompense/9.png', 0);
-- --------------------------------------------------------
@@ -45130,7 +45132,8 @@ INSERT INTO `Scores` (`score_id`, `series_id`, `username`, `score`, `submission_
(45119, 103072005, 'Axel', 302, '2024-09-02 11:08:23'),
(45120, 123456789, 'Anonyme', 11, '2024-11-24 00:44:54'),
(45121, 123456789, 'Anonyme', 11, '2024-11-24 01:05:33'),
(45122, 123456789, 'Anonyme', 9, '2024-11-24 01:15:00');
(45122, 123456789, 'Anonyme', 9, '2024-11-24 01:15:00'),
(45123, 123456789, 'Moncef3', 334, '2024-11-24 12:16:24');
-- --------------------------------------------------------
@@ -45176,10 +45179,7 @@ CREATE TABLE `UserRewards` (
--
INSERT INTO `UserRewards` (`user_reward_id`, `username`, `reward_id`, `is_unlocked`) VALUES
(1, 'Moncef', 1, 1),
(2, 'Lenny', 2, 0),
(3, 'Moncef', 3, 1),
(4, 'Lenny', 4, 1);
(1, 'Moncef', 1, 0);
--
-- Index pour les tables déchargées
@@ -45219,13 +45219,13 @@ ALTER TABLE `UserRewards`
-- AUTO_INCREMENT pour la table `Rewards`
--
ALTER TABLE `Rewards`
MODIFY `reward_id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
MODIFY `reward_id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
--
-- AUTO_INCREMENT pour la table `Scores`
--
ALTER TABLE `Scores`
MODIFY `score_id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=45123;
MODIFY `score_id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=45124;
--
-- AUTO_INCREMENT pour la table `Series`