Advertisement
AdamJS

demo_game_level_system.sql

Oct 15th, 2022 (edited)
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 1.22 KB | None | 0 0
  1. -- phpMyAdmin SQL Dump
  2. -- version 5.0.2
  3. -- https://www.phpmyadmin.net/
  4. --
  5. -- Wersja serwera: 10.4.11-MariaDB
  6. -- Wersja PHP: 7.4.5
  7.  
  8. SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
  9. START TRANSACTION;
  10. SET time_zone = "+00:00";
  11.  
  12. --
  13. -- Baza danych: `demo_game_level_system`
  14. --
  15. CREATE DATABASE IF NOT EXISTS `demo_game_level_system` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_polish_ci;
  16. USE `demo_game_level_system`;
  17.  
  18. -- --------------------------------------------------------
  19.  
  20. --
  21. -- Struktura tabeli dla tabeli `users`
  22. --
  23.  
  24. DROP TABLE IF EXISTS `users`;
  25. CREATE TABLE `users` (
  26.   `id` int(10) UNSIGNED NOT NULL,
  27.   `level` int(10) UNSIGNED NOT NULL,
  28.   `xp_all` int(10) UNSIGNED NOT NULL,
  29.   `xp_current` int(10) UNSIGNED NOT NULL,
  30.   `xp_needed` int(10) UNSIGNED NOT NULL
  31. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_polish_ci;
  32.  
  33. --
  34. -- Dane początkowe dla tabeli `users`
  35. --
  36.  
  37. INSERT INTO `users` (`id`, `level`, `xp_all`, `xp_current`, `xp_needed`) VALUES(1, 0, 0, 0, 100);
  38.  
  39. --
  40. -- Indeksy dla tabeli `users`
  41. --
  42. ALTER TABLE `users`
  43.   ADD PRIMARY KEY (`id`);
  44.  
  45. --
  46. -- AUTO_INCREMENT dla tabeli `users`
  47. --
  48. ALTER TABLE `users`
  49.   MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
  50. COMMIT;
  51.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement