Package Data | |
---|---|
Maintainer Username: | thibauddt |
Maintainer Contact: | thibaud@d-t.fr (Thibaud DELOBELLE TOUSSAINT) |
Package Create Date: | 2016-12-21 |
Package Last Update: | 2019-06-29 |
Language: | PHP |
License: | GPL-3.0 |
Last Refreshed: | 2024-11-29 15:09:07 |
Package Statistics | |
---|---|
Total Downloads: | 163 |
Monthly Downloads: | 9 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 1 |
Total Forks: | 3 |
Total Open Issues: | 1 |
Eloquent Models of TrinityCore 3.3.5 Database.
TrinityCore Database has any relationship between tables. Morever it's split on 3 differents databases : auth, characters and world
composer require thibaud-dt/trinitycore-models
'connections' => [
[...]
'characters' => [
'driver' => 'mysql',
'host' => env('DB_HOST_CHARACTERS', 'localhost'),
'database' => env('DB_DATABASE_CHARACTERS', 'forge'),
'username' => env('DB_USERNAME_CHARACTERS', 'forge'),
'password' => env('DB_PASSWORD_CHARACTERS', ''),
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
'prefix' => '',
'strict' => false,
],
'world' => [
'driver' => 'mysql',
'host' => env('DB_HOST_WORLD', 'localhost'),
'database' => env('DB_DATABASE_WORLD', 'forge'),
'username' => env('DB_USERNAME_WORLD', 'forge'),
'password' => env('DB_PASSWORD_WORLD', ''),
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
'prefix' => '',
'strict' => false,
],
'auth' => [
'driver' => 'mysql',
'host' => env('DB_HOST_AUTH', 'localhost'),
'database' => env('DB_DATABASE_AUTH', 'forge'),
'username' => env('DB_USERNAME_AUTH', 'forge'),
'password' => env('DB_PASSWORD_AUTH', ''),
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
'prefix' => '',
'strict' => false,
]
[...]
],
DB_HOST_WORLD=localhost
DB_DATABASE_WORLD=world
DB_USERNAME_WORLD=root
DB_PASSWORD_WORLD=root
DB_HOST_CHARACTERS=localhost
DB_DATABASE_CHARACTERS=characters
DB_USERNAME_CHARACTERS=root
DB_PASSWORD_CHARACTERS=root
DB_HOST_AUTH=localhost
DB_DATABASE_AUTH=auth
DB_USERNAME_AUTH=root
DB_PASSWORD_AUTH=root
It's done ! You can now use the package
SQL file to create databases : https://github.com/TrinityCore/TrinityCore/releases/tag/TDB335.62
Wiki of Auth database : https://trinitycore.atlassian.net/wiki/display/tc/Auth
Wiki of Characters database : https://trinitycore.atlassian.net/wiki/display/tc/Characters
Wiki of World database : https://trinitycore.atlassian.net/wiki/display/tc/World