23 lines
560 B
PHP
23 lines
560 B
PHP
<?php
|
|
|
|
namespace WoWPress\Database;
|
|
|
|
class CreateCharacterTable extends CreateTable
|
|
{
|
|
|
|
public static $table_name = "characters";
|
|
public static $fields = [
|
|
'name' => 'text NOT NULL',
|
|
'realm' => 'text NOT NULL',
|
|
'class' => "text DEFAULT Adventurer",
|
|
'spec' => "text DEFAULT Brave",
|
|
'id_blizz' => 'mediumint',
|
|
'id_wowaudit' => 'mediumint',
|
|
'raidchar' => 'boolean DEFAULT 0',
|
|
'guild' => "text",
|
|
'rank' => 'tinyint DEFAULT 99',
|
|
'user_id' => 'mediumint',
|
|
];
|
|
|
|
}
|