WowPress-Tailwind/theme/wowpress/Database/CreateCharacterTable.php

23 lines
527 B
PHP
Raw Normal View History

2024-04-15 16:00:49 +02:00
<?php
namespace WoWPress\Database;
2024-04-16 15:25:22 +02:00
class CreateCharacterTable extends CreateTable
2024-04-15 16:00:49 +02:00
{
public static $table_name = "characters";
public static $fields = [
'name' => 'text NOT NULL',
'realm' => 'text NOT NULL',
2024-04-27 21:21:33 +02:00
'class' => "text",
'spec' => "text",
2024-04-22 15:38:22 +02:00
'id_blizz' => 'mediumint',
'id_wowaudit' => 'mediumint',
2024-04-22 15:46:40 +02:00
'raidchar' => 'boolean DEFAULT 0',
2024-04-15 23:07:29 +02:00
'guild' => "text",
2024-04-15 16:00:49 +02:00
'rank' => 'tinyint DEFAULT 99',
2024-04-22 15:38:22 +02:00
'user_id' => 'mediumint',
2024-04-15 16:00:49 +02:00
];
}