Skip to content

Commit 6f72c19

Browse files
committed
Admin Activity logs
1 parent 4135b41 commit 6f72c19

File tree

3 files changed

+556
-0
lines changed

3 files changed

+556
-0
lines changed
Lines changed: 259 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,259 @@
1+
-- phpMyAdmin SQL Dump
2+
-- version 5.0.4
3+
-- https://www.phpmyadmin.net/
4+
--
5+
-- Host: localhost
6+
-- Generation Time: Apr 14, 2024 at 11:32 PM
7+
-- Server version: 5.7.43-log
8+
-- PHP Version: 7.4.33
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+
-- Database: `cssbans`
22+
--
23+
24+
-- --------------------------------------------------------
25+
26+
--
27+
-- Table structure for table `failed_jobs`
28+
--
29+
30+
DROP TABLE IF EXISTS `failed_jobs`;
31+
CREATE TABLE IF NOT EXISTS `failed_jobs` (
32+
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
33+
`uuid` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
34+
`connection` text COLLATE utf8mb4_unicode_ci NOT NULL,
35+
`queue` text COLLATE utf8mb4_unicode_ci NOT NULL,
36+
`payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
37+
`exception` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
38+
`failed_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
39+
PRIMARY KEY (`id`),
40+
UNIQUE KEY `failed_jobs_uuid_unique` (`uuid`)
41+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
42+
43+
-- --------------------------------------------------------
44+
45+
--
46+
-- Table structure for table `migrations`
47+
--
48+
49+
DROP TABLE IF EXISTS `migrations`;
50+
CREATE TABLE IF NOT EXISTS `migrations` (
51+
`id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
52+
`migration` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
53+
`batch` int(11) NOT NULL,
54+
PRIMARY KEY (`id`)
55+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
56+
57+
-- --------------------------------------------------------
58+
59+
--
60+
-- Table structure for table `password_reset_tokens`
61+
--
62+
63+
DROP TABLE IF EXISTS `password_reset_tokens`;
64+
CREATE TABLE IF NOT EXISTS `password_reset_tokens` (
65+
`email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
66+
`token` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
67+
`created_at` timestamp NULL DEFAULT NULL,
68+
PRIMARY KEY (`email`)
69+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
70+
71+
-- --------------------------------------------------------
72+
73+
--
74+
-- Table structure for table `permissions`
75+
--
76+
77+
DROP TABLE IF EXISTS `permissions`;
78+
CREATE TABLE IF NOT EXISTS `permissions` (
79+
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
80+
`permission` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
81+
`description` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
82+
`created_at` timestamp NULL DEFAULT NULL,
83+
`updated_at` timestamp NULL DEFAULT NULL,
84+
PRIMARY KEY (`id`)
85+
) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
86+
87+
--
88+
-- Dumping data for table `permissions`
89+
--
90+
91+
INSERT INTO `permissions` (`id`, `permission`, `description`, `created_at`, `updated_at`) VALUES
92+
(1, '@css/reservation', 'Reserved slot access.', '2024-04-14 15:27:44', '2024-04-14 15:27:44'),
93+
(2, '@css/generic', 'Generic admin.', '2024-04-14 15:27:44', '2024-04-14 15:27:44'),
94+
(3, '@css/kick', 'Kick other players.', '2024-04-14 15:27:44', '2024-04-14 15:27:44'),
95+
(4, '@css/ban', 'Ban other players.', '2024-04-14 15:27:44', '2024-04-14 15:27:44'),
96+
(5, '@css/unban', 'Remove bans.', '2024-04-14 15:27:44', '2024-04-14 15:27:44'),
97+
(6, '@css/vip', 'General VIP status.', '2024-04-14 15:27:44', '2024-04-14 15:27:44'),
98+
(7, '@css/slay', 'Slay/harm other players.', '2024-04-14 15:27:44', '2024-04-14 15:27:44'),
99+
(8, '@css/changemap', 'Change the map or major gameplay features.', '2024-04-14 15:27:44', '2024-04-14 15:27:44'),
100+
(9, '@css/cvar', 'Change most cvars.', '2024-04-14 15:27:44', '2024-04-14 15:27:44'),
101+
(10, '@css/config', 'Execute config files.', '2024-04-14 15:27:44', '2024-04-14 15:27:44'),
102+
(11, '@css/chat', 'Special chat privileges.', '2024-04-14 15:27:44', '2024-04-14 15:27:44'),
103+
(12, '@css/vote', 'Start or create votes.', '2024-04-14 15:27:44', '2024-04-14 15:27:44'),
104+
(13, '@css/password', 'Set a password on the server.', '2024-04-14 15:27:44', '2024-04-14 15:27:44'),
105+
(14, '@css/rcon', 'Use RCON commands.', '2024-04-14 15:27:44', '2024-04-14 15:27:44'),
106+
(15, '@css/cheats', 'Change sv_cheats or use cheating commands.', '2024-04-14 15:27:44', '2024-04-14 15:27:44'),
107+
(16, '@css/root', 'Magically enables all flags and ignores immunity values.', '2024-04-14 15:27:44', '2024-04-14 15:27:44'),
108+
(NULL, '@css/permban', 'Ban other players for permanently.', '2024-04-14 15:27:44', '2024-04-14 15:27:44'),
109+
(NULL, '@css/permmute', 'Mute other players for permanently.', '2024-04-14 15:27:44', '2024-04-14 15:27:44'),
110+
(NULL, '@css/showip', 'Show players IP in css_who and css_players commands.', '2024-04-14 15:27:44', '2024-04-14 15:27:44');
111+
112+
INSERT INTO `permissions` (`id`, `permission`, `description`, `created_at`, `updated_at`) VALUES
113+
(NULL, '@web/admin.create', 'Web-only: Permission to create an admin.', '2024-04-14 15:27:44', '2024-04-14 15:27:44'),
114+
(NULL, '@web/admin.edit', 'Web-only: Permission to edit an admin.', '2024-04-14 15:27:44', '2024-04-14 15:27:44'),
115+
(NULL, '@web/admin.delete', 'Web-only: Permission to delete an admin.', '2024-04-14 15:27:44', '2024-04-14 15:27:44'),
116+
(NULL, '@web/ban.add', 'Web-only: Permission to create a ban.', '2024-04-14 15:27:44', '2024-04-14 15:27:44'),
117+
(NULL, '@web/ban.edit', 'Web-only: Permission to edit a ban.', '2024-04-14 15:27:44', '2024-04-14 15:27:44'),
118+
(NULL, '@web/ban.unban', 'Web-only: Permission to unban a user.', '2024-04-14 15:27:44', '2024-04-14 15:27:44'),
119+
(NULL, '@web/group.create', 'Web-only: Permission to create a group.', '2024-04-14 15:27:44', '2024-04-14 15:27:44'),
120+
(NULL, '@web/group.edit', 'Web-only: Permission to edit a group.', '2024-04-14 15:27:44', '2024-04-14 15:27:44'),
121+
(NULL, '@web/group.delete', 'Web-only: Permission to delete a group.', '2024-04-14 15:27:44', '2024-04-14 15:27:44'),
122+
(NULL, '@web/mute.add', 'Web-only: Permission to create a mute.', '2024-04-14 15:27:44', '2024-04-14 15:27:44'),
123+
(NULL, '@web/mute.edit', 'Web-only: Permission to edit a mute.', '2024-04-14 15:27:44', '2024-04-14 15:27:44'),
124+
(NULL, '@web/mute.unmute', 'Web-only: Permission to unmute a user.', '2024-04-14 15:27:44', '2024-04-14 15:27:44'),
125+
(NULL, '@web/group.create', 'Web-only: Permission to create group.', '2024-04-14 15:27:44', '2024-04-14 15:27:44'),
126+
(NULL, '@web/group.edit', 'Web-only: Permission to edit group.', '2024-04-14 15:27:44', '2024-04-14 15:27:44'),
127+
(NULL, '@web/group.delete', 'Web-only: Permission to delete group.', '2024-04-14 15:27:44', '2024-04-14 15:27:44'),
128+
(NULL, '@web/vip.create', 'Web-only: Permission to create vip.', '2024-04-14 15:27:44', '2024-04-14 15:27:44'),
129+
(NULL, '@web/vip.edit', 'Web-only: Permission to edit vip.', '2024-04-14 15:27:44', '2024-04-14 15:27:44'),
130+
(NULL, '@web/vip.delete', 'Web-only: Permission to delete vip.', '2024-04-14 15:27:44', '2024-04-14 15:27:44');
131+
132+
-- --------------------------------------------------------
133+
134+
--
135+
-- Table structure for table `personal_access_tokens`
136+
--
137+
138+
DROP TABLE IF EXISTS `personal_access_tokens`;
139+
CREATE TABLE IF NOT EXISTS `personal_access_tokens` (
140+
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
141+
`tokenable_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
142+
`tokenable_id` bigint(20) UNSIGNED NOT NULL,
143+
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
144+
`token` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL,
145+
`abilities` text COLLATE utf8mb4_unicode_ci,
146+
`last_used_at` timestamp NULL DEFAULT NULL,
147+
`expires_at` timestamp NULL DEFAULT NULL,
148+
`created_at` timestamp NULL DEFAULT NULL,
149+
`updated_at` timestamp NULL DEFAULT NULL,
150+
PRIMARY KEY (`id`),
151+
UNIQUE KEY `personal_access_tokens_token_unique` (`token`),
152+
KEY `personal_access_tokens_tokenable_type_tokenable_id_index` (`tokenable_type`,`tokenable_id`)
153+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
154+
155+
-- --------------------------------------------------------
156+
157+
--
158+
-- Table structure for table `users`
159+
--
160+
161+
DROP TABLE IF EXISTS `users`;
162+
CREATE TABLE IF NOT EXISTS `users` (
163+
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
164+
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
165+
`avatar` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
166+
`steam_id` bigint(20) NOT NULL,
167+
`created_at` timestamp NULL DEFAULT NULL,
168+
`updated_at` timestamp NULL DEFAULT NULL,
169+
PRIMARY KEY (`id`)
170+
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
171+
172+
DROP TABLE IF EXISTS rcons;
173+
CREATE TABLE `rcons` (
174+
`id` bigint unsigned NOT NULL AUTO_INCREMENT,
175+
`server_id` int NOT NULL,
176+
`password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
177+
`created_at` timestamp NULL DEFAULT NULL,
178+
`updated_at` timestamp NULL DEFAULT NULL,
179+
PRIMARY KEY (`id`)
180+
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
181+
182+
DROP TABLE IF EXISTS server_visibility_settings;
183+
CREATE TABLE `server_visibility_settings` (
184+
`id` bigint unsigned NOT NULL AUTO_INCREMENT,
185+
`server_id` bigint unsigned NOT NULL,
186+
`is_visible` tinyint(1) NOT NULL DEFAULT '1',
187+
`created_at` timestamp NULL DEFAULT NULL,
188+
`updated_at` timestamp NULL DEFAULT NULL,
189+
PRIMARY KEY (`id`)
190+
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
191+
192+
DROP TABLE IF EXISTS appeals;
193+
CREATE TABLE `appeals` (
194+
`id` int NOT NULL AUTO_INCREMENT,
195+
`ban_type` varchar(50) COLLATE utf8mb4_general_ci NOT NULL,
196+
`steamid` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL,
197+
`ip` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL,
198+
`name` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
199+
`reason` text COLLATE utf8mb4_general_ci NOT NULL,
200+
`email` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
201+
`status` enum('PENDING','APPROVED','REJECTED') COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'PENDING',
202+
`created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
203+
`updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
204+
PRIMARY KEY (`id`)
205+
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
206+
207+
DROP TABLE IF EXISTS reports;
208+
CREATE TABLE `reports` (
209+
`id` bigint unsigned NOT NULL AUTO_INCREMENT,
210+
`ban_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
211+
`steamid` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
212+
`ip` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
213+
`nickname` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
214+
`comments` text COLLATE utf8mb4_unicode_ci NOT NULL,
215+
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
216+
`email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
217+
`server_id` bigint unsigned NOT NULL,
218+
`media_link` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
219+
`created_at` timestamp NULL DEFAULT NULL,
220+
`updated_at` timestamp NULL DEFAULT NULL,
221+
PRIMARY KEY (`id`)
222+
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
223+
224+
DROP TABLE IF EXISTS server_player_stats;
225+
CREATE TABLE `server_player_stats` (
226+
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
227+
`server_id` bigint(20) unsigned NOT NULL,
228+
`player_count` int(11) NOT NULL,
229+
`map` varchar(50) NOT NULL,
230+
`recorded_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
231+
PRIMARY KEY (`id`)
232+
) ENGINE=InnoDB AUTO_INCREMENT=110 DEFAULT CHARSET=utf8mb4;
233+
234+
DROP TABLE IF EXISTS module_server_settings;
235+
CREATE TABLE `module_server_settings` (
236+
`id` bigint unsigned NOT NULL AUTO_INCREMENT,
237+
`module_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
238+
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
239+
`db_host` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
240+
`db_user` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
241+
`db_pass` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
242+
`port` int NOT NULL DEFAULT '3306',
243+
`db_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
244+
`active` tinyint(1) DEFAULT '1',
245+
`created_at` timestamp NULL DEFAULT NULL,
246+
`updated_at` timestamp NULL DEFAULT NULL,
247+
PRIMARY KEY (`id`)
248+
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
249+
--
250+
-- Dumping data for table `users`
251+
--
252+
253+
INSERT INTO `users` (`id`, `name`, `avatar`, `steam_id`, `created_at`, `updated_at`) VALUES
254+
(1, 'Piko', 'https://avatars.steamstatic.com/483938176623f9bcfc948180a980076667058e24_medium.jpg', 76561199028888055, '2024-04-14 15:25:18', '2024-04-14 15:25:18');
255+
COMMIT;
256+
257+
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
258+
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
259+
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;

0 commit comments

Comments
 (0)