Skip to content

Commit 35cfbc8

Browse files
committed
Add installation.sql
1 parent 5c643c1 commit 35cfbc8

1 file changed

Lines changed: 276 additions & 0 deletions

File tree

installation.sql

Lines changed: 276 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,276 @@
1+
-- phpMyAdmin SQL Dump
2+
-- version 4.9.5
3+
-- https://www.phpmyadmin.net/
4+
--
5+
-- Hôte : localhost:3306
6+
-- Généré le : mer. 21 avr. 2021 à 15:25
7+
-- Version du serveur : 5.7.24
8+
-- Version de PHP : 7.4.8
9+
10+
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
11+
SET AUTOCOMMIT = 0;
12+
START TRANSACTION;
13+
SET time_zone = "+00:00";
14+
15+
16+
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
17+
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
18+
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
19+
/*!40101 SET NAMES utf8mb4 */;
20+
21+
--
22+
-- Base de données : `otda`
23+
--
24+
25+
-- --------------------------------------------------------
26+
27+
--
28+
-- Structure de la table `cms_news`
29+
--
30+
31+
CREATE TABLE `cms_news` (
32+
`id` int(11) NOT NULL,
33+
`title` text NOT NULL,
34+
`content` text NOT NULL,
35+
`date` date NOT NULL,
36+
`author` text NOT NULL,
37+
`img_url` text NOT NULL,
38+
`slug` varchar(255) NOT NULL,
39+
`is_visible` int(11) NOT NULL DEFAULT '1'
40+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
41+
42+
-- --------------------------------------------------------
43+
44+
--
45+
-- Structure de la table `cms_pages`
46+
--
47+
48+
CREATE TABLE `cms_pages` (
49+
`id` int(11) NOT NULL,
50+
`category` varchar(255) NOT NULL,
51+
`unique_slug` varchar(255) NOT NULL,
52+
`name` text NOT NULL,
53+
`content` text NOT NULL,
54+
`is_visible` int(11) NOT NULL DEFAULT '1'
55+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
56+
57+
--
58+
-- Déchargement des données de la table `cms_pages`
59+
--
60+
61+
INSERT INTO `cms_pages` (`id`, `category`, `unique_slug`, `name`, `content`, `is_visible`) VALUES
62+
(1, 'game', 'download', 'Download', '<p><img style=\"float: left; margin: 0px 10px;\" src=\"https://www.freemmorpgmaker.com/wp-content/uploads/2017/04/dkMSxwUYbOuu-1-1.png\" width=\"313\" height=\"194\" />Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris non nulla vitae erat finibus molestie. Vestibulum sit amet quam. Praesent scelerisque sem ipsum, at hendrerit nisl dapibus a. Quisque vulputate sem eu turpis pharetra. Aenean consectetur sodales leo, at mattis metus dictum quis. Morbi consequat nunc ultricies purus tincidunt, quis mi. Nullam maximus semper arcu, eu mattis enim aliquet eget.</p>\r\n<p>Integer sem tortor, ornare sit amet dui quis, volutpat tristique velit. Nam blandit feugiat nulla a iaculis. Fusce sagittis vel orci eget tempor. Vestibulum ut nunc mattis, ullamcorper velit at, convallis neque. Maecenas sagittis, sem at hendrerit imperdiet, odio urna egestas leo, placerat fermentum sem erat scelerisque purus. Phasellus ultricies est sit amet enim imperdiet, sed tristique nibh porttitor. Nulla molestie libero ac felis accumsan, ac mattis ex venenatis. Nam at lectus tempus, lobortis urna eget, viverra leo. Ut semper et eros eu semper. Sed mattis, magna id vehicula aliquet, dui quam eleifend orci, at molestie justo metus vel enim. Sed vitae urna leo. Nullam dapibus nisl dapibus venenatis tristique. Praesent vel turpis iaculis, laoreet erat non, fringilla augue. In tincidunt ipsum nec ligula lobortis, vitae tempus tortor porta. Aenean gravida eget nibh eget hendrerit. Vivamus eu metus porttitor, mattis erat eu, lobortis magna.</p>\r\n<p>Nunc porttitor varius tellus, a vestibulum massa tristique a. Mauris sit amet est tellus. Curabitur lobortis laoreet faucibus. Cras sem enim, laoreet tempus leo id, sodales convallis tortor. Maecenas quis sapien porttitor, scelerisque tortor in, auctor urna. Ut pretium nisl laoreet ex feugiat sollicitudin. Curabitur aliquam quam lorem, quis consectetur neque hendrerit vitae. Sed pulvinar quam massa, in congue quam interdum at. Aliquam euismod consequat lorem, a malesuada enim dapibus et.</p>\r\n<p style=\"text-align: center;\"><a href=\"https://mega.nz/\" target=\"_blank\" rel=\"noopener\">Download the game</a></p>', 1),
63+
(2, 'wiki', 'test', 'Test', '<p>Test de page :D</p>', 1);
64+
65+
-- --------------------------------------------------------
66+
67+
--
68+
-- Structure de la table `cms_points_history`
69+
--
70+
71+
CREATE TABLE `cms_points_history` (
72+
`id` int(11) NOT NULL,
73+
`date` date NOT NULL,
74+
`user_id` text NOT NULL,
75+
`code` varchar(255) NOT NULL,
76+
`points_amount` int(11) NOT NULL
77+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
78+
79+
-- --------------------------------------------------------
80+
81+
--
82+
-- Structure de la table `cms_settings`
83+
--
84+
85+
CREATE TABLE `cms_settings` (
86+
`id` int(11) NOT NULL,
87+
`setting` varchar(255) NOT NULL,
88+
`default_value` text NOT NULL,
89+
`description` text NOT NULL
90+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
91+
92+
--
93+
-- Déchargement des données de la table `cms_settings`
94+
--
95+
96+
INSERT INTO `cms_settings` (`id`, `setting`, `default_value`, `description`) VALUES
97+
(1, 'api_password', 'f2d81a260dea8a100dd517984e53c56a7523d96942a834b9cdc249bd4e8c7aa9', 'API Password'),
98+
(2, 'api_server', 'http://localhost:5400', 'API Server'),
99+
(3, 'api_token', 'TrB_i2pF3N-HJo6H9-oq9XTMbeYbPQ-XgP440NxAvxCNI-WjU0YaocM0jrh9D09-mKsdcd91CWreMHlYZxGckgqzEmT35PWT8s8VtQpMkBFb2mptsRPusd6fj0KW-eGOwoDZ8TLWlcD-PEw_ABHFKXu2Banfl5w90H8Z1zJpW1Bf_fE05Rm_wuh7PK2FtI6oAIx2trCfz5ebFXJfBvmbea3tKVuH-AKl1x22rCeNXrf-mBfI11hl83G1eo0-FJ0zlYd4h_JNegi6mr6HlVXfa-7EaluyohnNeLUDkGiHt9VeReeJoR4LwurEt_iMtCJM9jPBHPo5ljn9ADn15YU4fqho9QoY-qJmGjDE3w-BjHDbpsOuepjwdWuoSeuh0tZyLBD4qGkGWta9erpKg2CbR43Rh_0iIjrxbQky2kEa-CQx5BZizP21AnMTo0K1deWMh-cel8GxeommM30dbIue5JdSem3IpyMDG3mpKnnu869z0m4UusiXf0JesT9iJdWiaYgcKeGEpVUstJy7bqDu4h9oEkJtDGX7ndhH4X3WKAAPNPRGLGIxSguGhcLbVVL2cAjhfELBKnvuyjvh9mb13w', 'Token API'),
100+
(4, 'api_username', 'apiAccount', 'API User'),
101+
(5, 'base_url', 'http://intersectcms-rework.teste/', 'CMS Base URL'),
102+
(6, 'credit_dedipass_html_data', '<div data-dedipass=\"[this]\" data-dedipass-custom=\"\">', 'Dedipass HTML data-dedipass value'),
103+
(7, 'credit_dedipass_private_key', '$dedipass = file_get_contents(\'http://api.dedipass.com/v1/pay/?public_key=[not this]&private_key=[this]&code=\' . $code);', 'Dedipass private key'),
104+
(8, 'credit_dedipass_public_key', '$dedipass = file_get_contents(\'http://api.dedipass.com/v1/pay/?public_key=[this]&private_key=[not this]&code=\' . $code);', 'Dedipass public key'),
105+
(9, 'current_lang', 'en', 'Lang Used'),
106+
(10, 'game_title', 'My Game', 'Game Name'),
107+
(11, 'seo_description', 'yourdescription', 'Description SEO'),
108+
(12, 'theme', 'Britania', 'Theme Name'),
109+
(13, 'use_custom_game_pages', 'true', 'Use custom game pages'),
110+
(14, 'use_nav_community', 'true', 'Use community nav tab'),
111+
(15, 'use_right_community_button', 'true', 'Display right menu community buttons'),
112+
(16, 'use_wiki', 'true', 'Use custom wiki'),
113+
(33, 'facebook_link', 'sqdqsdqsds', 'Lien Facebook'),
114+
(34, 'twitter_link', '#', 'Lien Twitter'),
115+
(35, 'youtube_link', '#', 'Lien Youtube'),
116+
(36, 'instagram_link', '#', 'Lien Instagram'),
117+
(37, 'discord_link', '#', 'Lien Discord');
118+
119+
-- --------------------------------------------------------
120+
121+
--
122+
-- Structure de la table `cms_shop`
123+
--
124+
125+
CREATE TABLE `cms_shop` (
126+
`id` int(11) NOT NULL,
127+
`id_item` varchar(255) NOT NULL,
128+
`price` int(11) NOT NULL DEFAULT '0',
129+
`forceddescription` text NOT NULL,
130+
`quantity` int(11) NOT NULL DEFAULT '1',
131+
`promotion` int(11) NOT NULL DEFAULT '0',
132+
`visible` int(1) NOT NULL DEFAULT '1',
133+
`name` varchar(255) DEFAULT NULL
134+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
135+
136+
-- --------------------------------------------------------
137+
138+
--
139+
-- Structure de la table `cms_shop_history`
140+
--
141+
142+
CREATE TABLE `cms_shop_history` (
143+
`id` int(11) NOT NULL,
144+
`date` date NOT NULL,
145+
`shop_id` int(11) NOT NULL,
146+
`user_id` text NOT NULL,
147+
`credits_now` int(11) NOT NULL
148+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
149+
150+
-- --------------------------------------------------------
151+
152+
--
153+
-- Structure de la table `cms_users`
154+
--
155+
156+
CREATE TABLE `cms_users` (
157+
`webId` int(11) NOT NULL,
158+
`id` text NOT NULL,
159+
`username` varchar(255) NOT NULL,
160+
`email` text NOT NULL,
161+
`password` varchar(255) NOT NULL,
162+
`points` int(11) NOT NULL DEFAULT '0',
163+
`admin` int(1) NOT NULL DEFAULT '0',
164+
`password_token` varchar(255) DEFAULT NULL,
165+
`roles` json NOT NULL
166+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
167+
168+
--
169+
-- Index pour les tables déchargées
170+
--
171+
172+
--
173+
-- Index pour la table `cms_lang`
174+
--
175+
ALTER TABLE `cms_lang`
176+
ADD PRIMARY KEY (`string_id`);
177+
178+
--
179+
-- Index pour la table `cms_news`
180+
--
181+
ALTER TABLE `cms_news`
182+
ADD PRIMARY KEY (`id`);
183+
184+
--
185+
-- Index pour la table `cms_pages`
186+
--
187+
ALTER TABLE `cms_pages`
188+
ADD PRIMARY KEY (`id`);
189+
190+
--
191+
-- Index pour la table `cms_points_history`
192+
--
193+
ALTER TABLE `cms_points_history`
194+
ADD PRIMARY KEY (`id`);
195+
196+
--
197+
-- Index pour la table `cms_settings`
198+
--
199+
ALTER TABLE `cms_settings`
200+
ADD PRIMARY KEY (`id`),
201+
ADD UNIQUE KEY `setting` (`setting`);
202+
203+
--
204+
-- Index pour la table `cms_shop`
205+
--
206+
ALTER TABLE `cms_shop`
207+
ADD PRIMARY KEY (`id`);
208+
209+
--
210+
-- Index pour la table `cms_shop_history`
211+
--
212+
ALTER TABLE `cms_shop_history`
213+
ADD PRIMARY KEY (`id`);
214+
215+
--
216+
-- Index pour la table `cms_users`
217+
--
218+
ALTER TABLE `cms_users`
219+
ADD PRIMARY KEY (`webId`);
220+
221+
--
222+
-- AUTO_INCREMENT pour les tables déchargées
223+
--
224+
225+
--
226+
-- AUTO_INCREMENT pour la table `cms_lang`
227+
--
228+
ALTER TABLE `cms_lang`
229+
MODIFY `string_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=347;
230+
231+
--
232+
-- AUTO_INCREMENT pour la table `cms_news`
233+
--
234+
ALTER TABLE `cms_news`
235+
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
236+
237+
--
238+
-- AUTO_INCREMENT pour la table `cms_pages`
239+
--
240+
ALTER TABLE `cms_pages`
241+
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
242+
243+
--
244+
-- AUTO_INCREMENT pour la table `cms_points_history`
245+
--
246+
ALTER TABLE `cms_points_history`
247+
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
248+
249+
--
250+
-- AUTO_INCREMENT pour la table `cms_settings`
251+
--
252+
ALTER TABLE `cms_settings`
253+
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=38;
254+
255+
--
256+
-- AUTO_INCREMENT pour la table `cms_shop`
257+
--
258+
ALTER TABLE `cms_shop`
259+
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
260+
261+
--
262+
-- AUTO_INCREMENT pour la table `cms_shop_history`
263+
--
264+
ALTER TABLE `cms_shop_history`
265+
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
266+
267+
--
268+
-- AUTO_INCREMENT pour la table `cms_users`
269+
--
270+
ALTER TABLE `cms_users`
271+
MODIFY `webId` int(11) NOT NULL AUTO_INCREMENT;
272+
COMMIT;
273+
274+
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
275+
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
276+
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;

0 commit comments

Comments
 (0)