Elyos Allianz: Legion folgt der Legionsrolle auf Discord (von Siel gemeldet)
Siel meldet über bot_api.php?action=consilium_legions, wer welche Legionsrolle hat. Die Website ordnet diese Mitglieder ohne Login der passenden Legion zu (neue Legionen werden angelegt, Lumina Ascendens übergangen). Im Profil und in der Verwaltung ist die Legion dann gesperrt, bis die Rolle wegfällt. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
74fdf2bbf8
commit
156c681542
7 changed files with 148 additions and 1 deletions
|
|
@ -149,6 +149,10 @@ include __DIR__ . '/../includes/header.php';
|
||||||
</td>
|
</td>
|
||||||
<td class="text-muted"><?= e((string) ($member['discord_username'] ?? '')) ?></td>
|
<td class="text-muted"><?= e((string) ($member['discord_username'] ?? '')) ?></td>
|
||||||
<td>
|
<td>
|
||||||
|
<?php if (!empty($member['consilium_legion_by_role'])): ?>
|
||||||
|
<?php foreach ($legions as $legion): if ((int) $member['consilium_legion_id'] === $legion['id']): ?><?= e($legion['name']) ?><?php endif; endforeach; ?>
|
||||||
|
<span class="text-muted" title="Kommt von der Legionsrolle auf Discord (Siel)"> · Discord-Rolle</span>
|
||||||
|
<?php else: ?>
|
||||||
<form method="post" action="/admin/consilium_action.php" class="inline-form">
|
<form method="post" action="/admin/consilium_action.php" class="inline-form">
|
||||||
<?= csrf_field() ?>
|
<?= csrf_field() ?>
|
||||||
<input type="hidden" name="action" value="member_legion">
|
<input type="hidden" name="action" value="member_legion">
|
||||||
|
|
@ -161,6 +165,7 @@ include __DIR__ . '/../includes/header.php';
|
||||||
</select>
|
</select>
|
||||||
<noscript><button type="submit" class="button-secondary button-small">Speichern</button></noscript>
|
<noscript><button type="submit" class="button-secondary button-small">Speichern</button></noscript>
|
||||||
</form>
|
</form>
|
||||||
|
<?php endif; ?>
|
||||||
</td>
|
</td>
|
||||||
<td class="text-muted"><?= e(last_active_label($member['last_active'] ?? null)) ?></td>
|
<td class="text-muted"><?= e(last_active_label($member['last_active'] ?? null)) ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
|
||||||
|
|
@ -78,6 +78,10 @@ switch ($action) {
|
||||||
set_flash('error', 'Diese Legion gibt es nicht (mehr).');
|
set_flash('error', 'Diese Legion gibt es nicht (mehr).');
|
||||||
redirect($back);
|
redirect($back);
|
||||||
}
|
}
|
||||||
|
if (consilium_legion_by_role($userId)) {
|
||||||
|
set_flash('error', 'Die Legion dieses Mitglieds kommt von seiner Legionsrolle auf Discord – dort ändern.');
|
||||||
|
redirect($back);
|
||||||
|
}
|
||||||
consilium_set_member_legion($userId, $legionId > 0 ? $legionId : null);
|
consilium_set_member_legion($userId, $legionId > 0 ? $legionId : null);
|
||||||
admin_log('🤝 ' . CONSILIUM_NAME . ': Mitglied zugeordnet', [
|
admin_log('🤝 ' . CONSILIUM_NAME . ': Mitglied zugeordnet', [
|
||||||
'Mitglied' => admin_log_user($userId),
|
'Mitglied' => admin_log_user($userId),
|
||||||
|
|
|
||||||
19
bot_api.php
19
bot_api.php
|
|
@ -27,6 +27,10 @@
|
||||||
* GET /bot_api.php?action=legion_accounts -> {"guild_id": "...", "guild_ids": ["...", ...], "discord_ids": ["...", ...]}
|
* GET /bot_api.php?action=legion_accounts -> {"guild_id": "...", "guild_ids": ["...", ...], "discord_ids": ["...", ...]}
|
||||||
* POST /bot_api.php?action=legion_sync {"guild_id": "...", "guilds": ["...", ...], "missing": ["...", ...]}
|
* POST /bot_api.php?action=legion_sync {"guild_id": "...", "guilds": ["...", ...], "missing": ["...", ...]}
|
||||||
* in_guilds: Server, auf denen der Bot die Person noch sieht; guilds: Server, die er fuer "missing" geprueft hat.
|
* in_guilds: Server, auf denen der Bot die Person noch sieht; guilds: Server, die er fuer "missing" geprueft hat.
|
||||||
|
*
|
||||||
|
* Legionen der Elyos Allianz (Siel, features/alliance_overview.py): je Legion eine Rolle auf deren Discord-Server. Wer
|
||||||
|
* die Rolle hat, steht auf der Website bei dieser Legion - ohne Login (consilium_sync_legion_roles()).
|
||||||
|
* POST /bot_api.php?action=consilium_legions {"guild_id": "...", "legions": [{"role_id": "...", "name": "...", "members": ["...", ...]}]}
|
||||||
*/
|
*/
|
||||||
require_once __DIR__ . '/includes/bootstrap.php';
|
require_once __DIR__ . '/includes/bootstrap.php';
|
||||||
require_once __DIR__ . '/includes/raid_attendance.php';
|
require_once __DIR__ . '/includes/raid_attendance.php';
|
||||||
|
|
@ -125,6 +129,21 @@ if (in_array($action, ['member_left', 'member_joined', 'legion_accounts', 'legio
|
||||||
bot_api_reply(503, ['status' => 'error', 'message' => 'Die Website ist dafür noch nicht eingerichtet.']);
|
bot_api_reply(503, ['status' => 'error', 'message' => 'Die Website ist dafür noch nicht eingerichtet.']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if ($action === 'consilium_legions') {
|
||||||
|
// Legionsrollen vom Discord-Server der Elyos Allianz (Siel, features/alliance_overview.py) - siehe
|
||||||
|
// consilium_sync_legion_roles() in includes/consilium.php
|
||||||
|
$body = json_decode((string) file_get_contents('php://input'), true);
|
||||||
|
if (!is_array($body) || (string) ($body['guild_id'] ?? '') !== consilium_guild_id() || consilium_guild_id() === '') {
|
||||||
|
bot_api_reply(200, ['status' => 'success', 'ignored' => true]);
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
bot_api_reply(200, ['status' => 'success', 'result' => consilium_sync_legion_roles(
|
||||||
|
is_array($body['legions'] ?? null) ? $body['legions'] : []
|
||||||
|
)]);
|
||||||
|
} catch (PDOException $e) {
|
||||||
|
bot_api_reply(503, ['status' => 'error', 'message' => 'Die Website ist dafür noch nicht eingerichtet.']);
|
||||||
|
}
|
||||||
|
}
|
||||||
if ($action !== 'attendance_recipients') {
|
if ($action !== 'attendance_recipients') {
|
||||||
bot_api_reply(400, ['status' => 'error', 'message' => 'Unbekannte Aktion.']);
|
bot_api_reply(400, ['status' => 'error', 'message' => 'Unbekannte Aktion.']);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -111,7 +111,7 @@ function consilium_members(bool $withPending = false): array
|
||||||
try {
|
try {
|
||||||
return db()->query(
|
return db()->query(
|
||||||
"SELECT u.id, u.username, u.display_name, u.discord_id, u.discord_username, u.avatar_filename, u.class_name,
|
"SELECT u.id, u.username, u.display_name, u.discord_id, u.discord_username, u.avatar_filename, u.class_name,
|
||||||
u.classes, u.status, u.consilium_legion_id,
|
u.classes, u.status, u.consilium_legion_id, u.consilium_legion_by_role,
|
||||||
COALESCE(u.last_seen_at, u.last_login) AS last_active,
|
COALESCE(u.last_seen_at, u.last_login) AS last_active,
|
||||||
COALESCE(u.discord_joined_at, u.created_at) AS joined_at,
|
COALESCE(u.discord_joined_at, u.created_at) AS joined_at,
|
||||||
" . sql_is_legion_member('u') . " AS is_legion
|
" . sql_is_legion_member('u') . " AS is_legion
|
||||||
|
|
@ -221,3 +221,103 @@ function consilium_set_member_legion(int $userId, ?int $legionId): void
|
||||||
{
|
{
|
||||||
db()->prepare('UPDATE users SET consilium_legion_id = ? WHERE id = ?')->execute([$legionId, $userId]);
|
db()->prepare('UPDATE users SET consilium_legion_id = ? WHERE id = ?')->execute([$legionId, $userId]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Kommt die Legion dieses Kontos von einer Discord-Rolle? Dann laesst sie sich auf der Website nicht aendern. */
|
||||||
|
function consilium_legion_by_role(int $userId): bool
|
||||||
|
{
|
||||||
|
try {
|
||||||
|
$stmt = db()->prepare('SELECT consilium_legion_by_role FROM users WHERE id = ?');
|
||||||
|
$stmt->execute([$userId]);
|
||||||
|
return (int) $stmt->fetchColumn() === 1;
|
||||||
|
} catch (PDOException $e) {
|
||||||
|
return false; // Spalte kommt mit dem naechsten Schema-Abgleich
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Name einer Legionsrolle ohne Emojis und Zeichen davor, z. B. "🏛️ Nachtfalken" -> "Nachtfalken". */
|
||||||
|
function consilium_role_legion_name(string $roleName): string
|
||||||
|
{
|
||||||
|
$name = trim((string) preg_replace('/^[^\p{L}\p{N}]+/u', '', $roleName));
|
||||||
|
return mb_substr($name !== '' ? $name : $roleName, 0, CONSILIUM_LEGION_NAME_MAX);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Legionsrollen vom Discord-Server der Elyos Allianz (von Siel, bot_api.php?action=consilium_legions):
|
||||||
|
* Zu jeder Rolle gehoert eine Legion - gefunden ueber die Rolle, sonst ueber den Namen, sonst neu angelegt. Wer die
|
||||||
|
* Rolle hat, steht bei dieser Legion (users.consilium_legion_by_role = 1); wer keine Legionsrolle mehr hat, verliert
|
||||||
|
* eine so gesetzte Legion wieder. Eine Rolle mit dem Namen unserer Legion (CONSILIUM_HOME_LEGION) wird uebergangen -
|
||||||
|
* unsere Mitglieder stehen dort ohnehin.
|
||||||
|
*
|
||||||
|
* @param array<int, array{role_id: string, name: string, members: array<int, string>}> $legions
|
||||||
|
* @return array{legions: int, created: int, assigned: int, cleared: int}
|
||||||
|
*/
|
||||||
|
function consilium_sync_legion_roles(array $legions): array
|
||||||
|
{
|
||||||
|
$pdo = db();
|
||||||
|
$result = ['legions' => 0, 'created' => 0, 'assigned' => 0, 'cleared' => 0];
|
||||||
|
$existing = $pdo->query('SELECT id, name, discord_role_id FROM consilium_legions')->fetchAll();
|
||||||
|
$byRole = [];
|
||||||
|
$byName = [];
|
||||||
|
foreach ($existing as $row) {
|
||||||
|
if (!empty($row['discord_role_id'])) {
|
||||||
|
$byRole[(string) $row['discord_role_id']] = (int) $row['id'];
|
||||||
|
}
|
||||||
|
$byName[mb_strtolower((string) $row['name'])] = (int) $row['id'];
|
||||||
|
}
|
||||||
|
$memberLegion = [];
|
||||||
|
$seenRoles = [];
|
||||||
|
foreach ($legions as $legion) {
|
||||||
|
$roleId = (string) ($legion['role_id'] ?? '');
|
||||||
|
if (!ctype_digit($roleId)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
$name = consilium_role_legion_name((string) ($legion['name'] ?? ''));
|
||||||
|
if ($name === '' || mb_strtolower($name) === mb_strtolower(CONSILIUM_HOME_LEGION)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
$legionId = $byRole[$roleId] ?? $byName[mb_strtolower($name)] ?? null;
|
||||||
|
if ($legionId === null) {
|
||||||
|
$sort = (int) $pdo->query('SELECT COALESCE(MAX(sort_order), 0) + 1 FROM consilium_legions')->fetchColumn();
|
||||||
|
$pdo->prepare('INSERT INTO consilium_legions (name, sort_order, discord_role_id) VALUES (?, ?, ?)')
|
||||||
|
->execute([$name, $sort, $roleId]);
|
||||||
|
$legionId = (int) $pdo->lastInsertId();
|
||||||
|
$byName[mb_strtolower($name)] = $legionId;
|
||||||
|
$result['created']++;
|
||||||
|
} else {
|
||||||
|
$pdo->prepare('UPDATE consilium_legions SET discord_role_id = ? WHERE id = ?')->execute([$roleId, $legionId]);
|
||||||
|
}
|
||||||
|
$seenRoles[] = $roleId;
|
||||||
|
$result['legions']++;
|
||||||
|
foreach ((array) ($legion['members'] ?? []) as $discordId) {
|
||||||
|
$discordId = (string) $discordId;
|
||||||
|
if (ctype_digit($discordId) && !isset($memberLegion[$discordId])) {
|
||||||
|
$memberLegion[$discordId] = $legionId; // mehrere Legionsrollen: die erste zaehlt
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// Rollen, die nicht mehr als Legion zaehlen: Verknuepfung loesen (die Legion selbst bleibt)
|
||||||
|
if ($seenRoles) {
|
||||||
|
$in = implode(',', array_fill(0, count($seenRoles), '?'));
|
||||||
|
$pdo->prepare("UPDATE consilium_legions SET discord_role_id = NULL WHERE discord_role_id IS NOT NULL AND discord_role_id NOT IN ($in)")
|
||||||
|
->execute($seenRoles);
|
||||||
|
} else {
|
||||||
|
$pdo->exec('UPDATE consilium_legions SET discord_role_id = NULL');
|
||||||
|
}
|
||||||
|
|
||||||
|
$set = $pdo->prepare('UPDATE users SET consilium_legion_id = ?, consilium_legion_by_role = 1
|
||||||
|
WHERE discord_id = ? AND (consilium_legion_id <=> ? = 0 OR consilium_legion_by_role = 0)');
|
||||||
|
foreach ($memberLegion as $discordId => $legionId) {
|
||||||
|
$set->execute([$legionId, $discordId, $legionId]);
|
||||||
|
$result['assigned'] += $set->rowCount();
|
||||||
|
}
|
||||||
|
// Keine Legionsrolle mehr: die per Rolle gesetzte Legion wieder entfernen
|
||||||
|
$rows = $pdo->query('SELECT id, discord_id FROM users WHERE consilium_legion_by_role = 1')->fetchAll();
|
||||||
|
$clear = $pdo->prepare('UPDATE users SET consilium_legion_id = NULL, consilium_legion_by_role = 0 WHERE id = ?');
|
||||||
|
foreach ($rows as $row) {
|
||||||
|
if (!isset($memberLegion[(string) $row['discord_id']])) {
|
||||||
|
$clear->execute([(int) $row['id']]);
|
||||||
|
$result['cleared']++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return $result;
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -905,6 +905,10 @@ function schema_column_upgrades(): array
|
||||||
"UPDATE tactic_shapes SET ref = CONCAT('s', id) WHERE ref = ''",
|
"UPDATE tactic_shapes SET ref = CONCAT('s', id) WHERE ref = ''",
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
// Elyos Allianz: Legionsrolle auf deren Discord-Server (Siel), die zu dieser Legion gehoert
|
||||||
|
'consilium_legions' => [
|
||||||
|
'discord_role_id' => "ALTER TABLE consilium_legions ADD COLUMN discord_role_id VARCHAR(20) NULL AFTER sort_order",
|
||||||
|
],
|
||||||
'users' => [
|
'users' => [
|
||||||
// Zuletzt in der Galerie (gallery.php) - neuere Bilder zaehlen in der Seitenleiste als neu
|
// Zuletzt in der Galerie (gallery.php) - neuere Bilder zaehlen in der Seitenleiste als neu
|
||||||
'gallery_seen_at' => "ALTER TABLE users ADD COLUMN gallery_seen_at DATETIME NULL AFTER patchnotes_seen",
|
'gallery_seen_at' => "ALTER TABLE users ADD COLUMN gallery_seen_at DATETIME NULL AFTER patchnotes_seen",
|
||||||
|
|
@ -943,6 +947,8 @@ function schema_column_upgrades(): array
|
||||||
'left_server_at' => "ALTER TABLE users ADD COLUMN left_server_at DATETIME NULL AFTER discord_joined_at",
|
'left_server_at' => "ALTER TABLE users ADD COLUMN left_server_at DATETIME NULL AFTER discord_joined_at",
|
||||||
// Verbuendete Legion im Consilium Elyseum (consilium_legions, admin/consilium.php)
|
// Verbuendete Legion im Consilium Elyseum (consilium_legions, admin/consilium.php)
|
||||||
'consilium_legion_id' => "ALTER TABLE users ADD COLUMN consilium_legion_id INT UNSIGNED NULL AFTER left_server_at",
|
'consilium_legion_id' => "ALTER TABLE users ADD COLUMN consilium_legion_id INT UNSIGNED NULL AFTER left_server_at",
|
||||||
|
// 1 = die Legion kommt von einer Legionsrolle auf dem Discord-Server der Elyos Allianz (Siel meldet sie)
|
||||||
|
'consilium_legion_by_role' => "ALTER TABLE users ADD COLUMN consilium_legion_by_role TINYINT(1) NOT NULL DEFAULT 0 AFTER consilium_legion_id",
|
||||||
'discord_access_token' => "ALTER TABLE users ADD COLUMN discord_access_token VARCHAR(255) NULL AFTER discord_username",
|
'discord_access_token' => "ALTER TABLE users ADD COLUMN discord_access_token VARCHAR(255) NULL AFTER discord_username",
|
||||||
'discord_refresh_token' => "ALTER TABLE users ADD COLUMN discord_refresh_token VARCHAR(255) NULL AFTER discord_access_token",
|
'discord_refresh_token' => "ALTER TABLE users ADD COLUMN discord_refresh_token VARCHAR(255) NULL AFTER discord_access_token",
|
||||||
'discord_token_expires' => "ALTER TABLE users ADD COLUMN discord_token_expires DATETIME NULL AFTER discord_refresh_token",
|
'discord_token_expires' => "ALTER TABLE users ADD COLUMN discord_token_expires DATETIME NULL AFTER discord_refresh_token",
|
||||||
|
|
|
||||||
|
|
@ -160,6 +160,10 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||||
redirect('/profile.php#kalender-abo');
|
redirect('/profile.php#kalender-abo');
|
||||||
} elseif ($action === 'consilium_legion' && consilium_only()) {
|
} elseif ($action === 'consilium_legion' && consilium_only()) {
|
||||||
// Mitglieder verbuendeter Legionen waehlen selbst, zu welcher sie gehoeren (die Leitung kann es in admin/consilium.php aendern)
|
// Mitglieder verbuendeter Legionen waehlen selbst, zu welcher sie gehoeren (die Leitung kann es in admin/consilium.php aendern)
|
||||||
|
if (consilium_legion_by_role((int) $user['id'])) {
|
||||||
|
set_flash('error', 'Deine Legion kommt von deiner Legionsrolle auf Discord – ändern kann sie die Leitung dort.');
|
||||||
|
redirect('/profile.php#consilium');
|
||||||
|
}
|
||||||
$legionId = (int) ($_POST['legion_id'] ?? 0);
|
$legionId = (int) ($_POST['legion_id'] ?? 0);
|
||||||
if ($legionId > 0 && !consilium_legion_exists($legionId)) {
|
if ($legionId > 0 && !consilium_legion_exists($legionId)) {
|
||||||
set_flash('error', 'Diese Legion gibt es nicht (mehr).');
|
set_flash('error', 'Diese Legion gibt es nicht (mehr).');
|
||||||
|
|
@ -485,6 +489,10 @@ $feedRaids = !empty($user['discord_id']) && user_has_permission('raids.view');
|
||||||
<h2>Deine Legion in <?= e(CONSILIUM_NAME) ?></h2>
|
<h2>Deine Legion in <?= e(CONSILIUM_NAME) ?></h2>
|
||||||
<p class="text-muted">Damit du in der Mitgliederliste bei deiner Legion stehst.</p>
|
<p class="text-muted">Damit du in der Mitgliederliste bei deiner Legion stehst.</p>
|
||||||
</div>
|
</div>
|
||||||
|
<?php if (consilium_legion_by_role((int) $user['id'])): ?>
|
||||||
|
<p class="consilium-legion-pick"><strong><?= e((string) consilium_legion_name((int) $myLegionId)) ?></strong><br>
|
||||||
|
<span class="text-muted">über deine Legionsrolle auf Discord</span></p>
|
||||||
|
<?php else: ?>
|
||||||
<form method="post" action="/profile.php" class="inline-form consilium-legion-pick">
|
<form method="post" action="/profile.php" class="inline-form consilium-legion-pick">
|
||||||
<?= csrf_field() ?>
|
<?= csrf_field() ?>
|
||||||
<input type="hidden" name="action" value="consilium_legion">
|
<input type="hidden" name="action" value="consilium_legion">
|
||||||
|
|
@ -496,6 +504,7 @@ $feedRaids = !empty($user['discord_id']) && user_has_permission('raids.view');
|
||||||
</select>
|
</select>
|
||||||
<button type="submit" class="button button-secondary">Speichern</button>
|
<button type="submit" class="button button-secondary">Speichern</button>
|
||||||
</form>
|
</form>
|
||||||
|
<?php endif; ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
|
||||||
|
|
@ -45,6 +45,8 @@ CREATE TABLE IF NOT EXISTS users (
|
||||||
left_server_at DATETIME NULL,
|
left_server_at DATETIME NULL,
|
||||||
-- Verbuendete Legion im Consilium Elyseum (consilium_legions) - nur bei Mitgliedern des Consiliums
|
-- Verbuendete Legion im Consilium Elyseum (consilium_legions) - nur bei Mitgliedern des Consiliums
|
||||||
consilium_legion_id INT UNSIGNED NULL,
|
consilium_legion_id INT UNSIGNED NULL,
|
||||||
|
-- 1 = consilium_legion_id kommt von einer Legionsrolle auf Discord (Siel, bot_api.php?action=consilium_legions)
|
||||||
|
consilium_legion_by_role TINYINT(1) NOT NULL DEFAULT 0,
|
||||||
-- Einfuehrung im Dashboard abgeschlossen (NULL = Tour wird beim naechsten Besuch gezeigt)
|
-- Einfuehrung im Dashboard abgeschlossen (NULL = Tour wird beim naechsten Besuch gezeigt)
|
||||||
tour_completed_at DATETIME NULL,
|
tour_completed_at DATETIME NULL,
|
||||||
-- Eigene Reihenfolge der Menuepunkte in der Seitenleiste (JSON: {main: [...], admin: [...]})
|
-- Eigene Reihenfolge der Menuepunkte in der Seitenleiste (JSON: {main: [...], admin: [...]})
|
||||||
|
|
@ -1026,5 +1028,7 @@ CREATE TABLE IF NOT EXISTS consilium_legions (
|
||||||
id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY,
|
id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY,
|
||||||
name VARCHAR(80) NOT NULL,
|
name VARCHAR(80) NOT NULL,
|
||||||
sort_order INT NOT NULL DEFAULT 0,
|
sort_order INT NOT NULL DEFAULT 0,
|
||||||
|
-- Legionsrolle auf dem Discord-Server der Elyos Allianz (Siel meldet, wer sie hat)
|
||||||
|
discord_role_id VARCHAR(20) NULL,
|
||||||
created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP
|
created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue