Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 03cecbec

Přidáno uživatelem stepanekp před asi 1 rok

  • ID 03cecbecea722da0ade6ab3a57a8f942b7191e91
  • Rodič ed5f9ceb

small changes

Zobrazit rozdíly:

db/spawn/authspade.sql
1
-- phpMyAdmin SQL Dump
2
-- version 5.2.1
3
-- https://www.phpmyadmin.net/
4
--
5
-- Počítač: 127.0.0.1
6
-- Vytvořeno: Ned 21. dub 2024, 10:34
7
-- Verze serveru: 10.4.32-MariaDB
8
-- Verze PHP: 8.2.12
9

  
10
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
11
START TRANSACTION;
12
SET time_zone = "+00:00";
13

  
14

  
15
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
16
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
17
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
18
/*!40101 SET NAMES utf8mb4 */;
19

  
20
--
21
-- Databáze: `authspade`
22
--
23
CREATE DATABASE IF NOT EXISTS `authspade` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
24
USE `authspade`;
25

  
26
-- --------------------------------------------------------
27

  
28
--
29
-- Struktura tabulky `app_metadata`
30
--
31

  
32
CREATE TABLE `app_metadata` (
33
  `id` int(11) NOT NULL,
34
  `appDataKey` varchar(255) DEFAULT NULL,
35
  `appDataValue` text DEFAULT NULL
36
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
37

  
38
--
39
-- Vypisuji data pro tabulku `app_metadata`
40
--
41

  
42
INSERT INTO `app_metadata` (`id`, `appDataKey`, `appDataValue`) VALUES
43
(1, 'basics', '[{\r\n        \"version\": \"1.0.0\",\r\n        \"authors\": [{\r\n            \"name\": \"Ondřej Váně\",\r\n            \"email\": \"vaneo@students.zcu.cz\"\r\n        }],\r\n        \"description\": \"This application is used to detect presence of anti-patterns in project management tools data. Seven selected anti-patterns are implemented in this application.\"\r\n    }, {\r\n        \"version\": \"1.1.0\",\r\n        \"authors\": [{\r\n            \"name\": \"Ondřej Váně\",\r\n            \"email\": \"vaneo@students.zcu.cz\"\r\n        }],\r\n        \"description\": \"This application is used to detect presence of anti-patterns in project management tools data. Seven selected anti-patterns are implemented in this application.\"\r\n    }, {\r\n        \"version\": \"1.2.0\",\r\n        \"authors\": [{\r\n            \"name\": \"Petr Štěpánek\",\r\n            \"email\": \"petrs1@students.zcu.cz\"\r\n        }],\r\n        \"description\": \"This application is used to detect presence of anti-patterns in project management tools data. Ten selected anti-patterns are implemented in this application.\"\r\n    }, {\r\n        \"version\": \"2.0.0\",\r\n        \"authors\": [{\r\n            \"name\": \"Petr Štěpánek\",\r\n            \"email\": \"petrs1@students.zcu.cz\"\r\n        }, {\r\n            \"name\": \"Petr Urban\",\r\n            \"email\": \"urbanp@students.zcu.cz\"\r\n        }, {\r\n            \"name\": \"Jiří Trefil\",\r\n            \"email\": \"trefil@students.zcu.cz\"\r\n        }, {\r\n            \"name\": \"Václav Hrabík\",\r\n            \"email\": \"hrabikv@students.zcu.cz\"\r\n        }],\r\n        \"description\": \"Experience the next evolution of our application with version 2.0.0, featuring a revamped infrastructure, three distinct apps, MS SQL Server integration, a comprehensive user provider system, and contract testing for enhanced reliability.\"\r\n    }]');
44

  
45
-- --------------------------------------------------------
46

  
47
--
48
-- Struktura tabulky `users`
49
--
50

  
51
CREATE TABLE `users` (
52
  `id` int(11) NOT NULL,
53
  `email` varchar(255) DEFAULT NULL,
54
  `name` varchar(255) NOT NULL,
55
  `password` varchar(255) DEFAULT NULL
56
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
57

  
58
--
59
-- Vypisuji data pro tabulku `users`
60
--
61

  
62
INSERT INTO `users` (`id`, `email`, `name`, `password`) VALUES
63
(1, NULL, 'test', NULL);
64

  
65
--
66
-- Indexy pro exportované tabulky
67
--
68

  
69
--
70
-- Indexy pro tabulku `app_metadata`
71
--
72
ALTER TABLE `app_metadata`
73
  ADD PRIMARY KEY (`id`);
74

  
75
--
76
-- Indexy pro tabulku `users`
77
--
78
ALTER TABLE `users`
79
  ADD PRIMARY KEY (`id`);
80

  
81
--
82
-- AUTO_INCREMENT pro tabulky
83
--
84

  
85
--
86
-- AUTO_INCREMENT pro tabulku `app_metadata`
87
--
88
ALTER TABLE `app_metadata`
89
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
90

  
91
--
92
-- AUTO_INCREMENT pro tabulku `users`
93
--
94
ALTER TABLE `users`
95
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
96
COMMIT;
97

  
98
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
99
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
100
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
db/spawn/create_app_metadata.sql
1
CREATE TABLE app_metadata (
2
    id INT AUTO_INCREMENT PRIMARY KEY,
3
    appDataKey VARCHAR(255),
4
    appDataValue TEXT
5
);
6

  
7
INSERT INTO app_metadata (appDataKey, appDataValue) VALUES
8
    ('basics', '[{
9
        "version": "1.0.0",
10
        "authors": [{
11
            "name": "Ondřej Váně",
12
            "email": "vaneo@students.zcu.cz"
13
        }],
14
        "description": "This application is used to detect presence of anti-patterns in project management tools data. Seven selected anti-patterns are implemented in this application."
15
    }, {
16
        "version": "1.1.0",
17
        "authors": [{
18
            "name": "Ondřej Váně",
19
            "email": "vaneo@students.zcu.cz"
20
        }],
21
        "description": "This application is used to detect presence of anti-patterns in project management tools data. Seven selected anti-patterns are implemented in this application."
22
    }, {
23
        "version": "1.2.0",
24
        "authors": [{
25
            "name": "Petr Štěpánek",
26
            "email": "petrs1@students.zcu.cz"
27
        }],
28
        "description": "This application is used to detect presence of anti-patterns in project management tools data. Ten selected anti-patterns are implemented in this application."
29
    }, {
30
        "version": "2.0.0",
31
        "authors": [{
32
            "name": "Petr Štěpánek",
33
            "email": "petrs1@students.zcu.cz"
34
        }, {
35
            "name": "Petr Urban",
36
            "email": "urbanp@students.zcu.cz"
37
        }, {
38
            "name": "Jiří Trefil",
39
            "email": "trefil@students.zcu.cz"
40
        }, {
41
            "name": "Václav Hrabík",
42
            "email": "hrabikv@students.zcu.cz"
43
        }],
44
        "description": "Experience the next evolution of our application with version 2.0.0, featuring a revamped infrastructure, three distinct apps, MS SQL Server integration, a comprehensive user provider system, and contract testing for enhanced reliability."
45
    }]');
db/spawn/create_users.sql
1
CREATE TABLE IF NOT EXISTS users (
2
    id INT AUTO_INCREMENT PRIMARY KEY,
3
    email VARCHAR(255) NULL,
4
    name VARCHAR(255) NOT NULL,
5
    password VARCHAR(255) NULL
6
);

Také k dispozici: Unified diff