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',
|
|
|
|
'class' => "text DEFAULT Adventurer",
|
|
|
|
'spec' => "text DEFAULT Brave",
|
2024-04-22 15:38:22 +02:00
|
|
|
'id_blizz' => 'mediumint',
|
|
|
|
'id_wowaudit' => 'mediumint',
|
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
|
|
|
];
|
|
|
|
|
|
|
|
}
|