|
|
|
@ -15,60 +15,61 @@ return new class extends Migration
|
|
|
|
|
Schema::connection('pgsql_rauru')->create('games', function (Blueprint $table) {
|
|
|
|
|
$table->increments('id');
|
|
|
|
|
$table->json('age_ratings');
|
|
|
|
|
$table->string('aggregated_rating');
|
|
|
|
|
$table->integer('aggregated_rating_count');
|
|
|
|
|
$table->string('aggregated_rating')->nullable();
|
|
|
|
|
$table->integer('aggregated_rating_count')->nullable();
|
|
|
|
|
$table->json('alternative_names');
|
|
|
|
|
$table->json('artworks');
|
|
|
|
|
//$table->json('bundles');
|
|
|
|
|
$table->integer('category');//enum
|
|
|
|
|
$table->json('artworks')->nullable();
|
|
|
|
|
$table->json('bundles')->nullable();
|
|
|
|
|
$table->string('category');//enum
|
|
|
|
|
$table->uuid('checksum');
|
|
|
|
|
$table->string('collection');
|
|
|
|
|
$table->string('cover_id');
|
|
|
|
|
$table->string('cover_image_path');
|
|
|
|
|
$table->json('dlcs');
|
|
|
|
|
//$table->json('expanded_games');
|
|
|
|
|
$table->json('expansions');
|
|
|
|
|
$table->json('collection')->nullable();
|
|
|
|
|
//$table->string('cover_id');
|
|
|
|
|
//$table->string('cover_image_path');
|
|
|
|
|
$table->json('cover');
|
|
|
|
|
$table->json('dlcs')->nullable();
|
|
|
|
|
$table->json('expansions')->nullable();
|
|
|
|
|
$table->json('expanded_games')->nullable();
|
|
|
|
|
$table->json('external_games');//IDs on other Platforms
|
|
|
|
|
$table->date('first_release_date');
|
|
|
|
|
//$table->integer('follows');
|
|
|
|
|
//$table->json('forks');
|
|
|
|
|
$table->string('franchise');
|
|
|
|
|
$table->json('franchises');
|
|
|
|
|
$table->json('game_engines');
|
|
|
|
|
$table->json('game_localizations');
|
|
|
|
|
$table->json('game_modes');
|
|
|
|
|
$table->integer('first_release_date'); #Timestamp
|
|
|
|
|
$table->integer('follows')->nullable();
|
|
|
|
|
$table->json('forks')->nullable();
|
|
|
|
|
$table->json('franchise')->nullable();
|
|
|
|
|
$table->json('franchises')->nullable();
|
|
|
|
|
$table->json('game_engines')->nullable();
|
|
|
|
|
$table->json('game_localizations')->nullable();
|
|
|
|
|
$table->json('game_modes')->nullable();
|
|
|
|
|
$table->json('genres');
|
|
|
|
|
//$table->integer('hypes');
|
|
|
|
|
$table->integer('hypes')->nullable();
|
|
|
|
|
$table->json('involved_companies');
|
|
|
|
|
$table->json('keywords');
|
|
|
|
|
$table->json('language_supports');
|
|
|
|
|
$table->json('multiplayer_modes');
|
|
|
|
|
$table->json('language_supports')->nullable();
|
|
|
|
|
$table->json('multiplayer_modes')->nullable();
|
|
|
|
|
$table->string('name');
|
|
|
|
|
$table->string('parent_game');
|
|
|
|
|
$table->string('parent_game')->nullable();
|
|
|
|
|
$table->json('platforms');
|
|
|
|
|
$table->json('player_perspectives');
|
|
|
|
|
$table->json('ports');
|
|
|
|
|
$table->json('player_perspectives')->nullable();
|
|
|
|
|
$table->json('ports')->nullable();
|
|
|
|
|
$table->string('rating');//formated double
|
|
|
|
|
//$table->integer('rating_count');
|
|
|
|
|
$table->json('release_dates');
|
|
|
|
|
$table->json('remakes');
|
|
|
|
|
$table->json('remasters');
|
|
|
|
|
$table->json('screenshots');
|
|
|
|
|
$table->integer('rating_count');
|
|
|
|
|
$table->json('release_dates')->nullable();
|
|
|
|
|
$table->json('remakes')->nullable();
|
|
|
|
|
$table->json('remasters')->nullable();
|
|
|
|
|
$table->json('screenshots')->nullable();
|
|
|
|
|
$table->json('similar_games');
|
|
|
|
|
$table->string('slug');
|
|
|
|
|
$table->json('standalone_expansions');
|
|
|
|
|
$table->integer('status');//enum
|
|
|
|
|
$table->text('storyline');
|
|
|
|
|
$table->json('standalone_expansions')->nullable();
|
|
|
|
|
$table->integer('status')->nullable();//enum
|
|
|
|
|
$table->text('storyline')->nullable();
|
|
|
|
|
$table->text('summary');
|
|
|
|
|
$table->json('tags');
|
|
|
|
|
$table->json('themes');
|
|
|
|
|
$table->string('total_rating');//formated double
|
|
|
|
|
//$table->integer('total_rating_count');
|
|
|
|
|
//$table->date('updated_at');
|
|
|
|
|
$table->double('total_rating');//formated double
|
|
|
|
|
$table->integer('total_rating_count');
|
|
|
|
|
#$table->date('updated_at');
|
|
|
|
|
$table->string('url');//IGDB Url
|
|
|
|
|
$table->string('version_parent');
|
|
|
|
|
$table->string('version_title');
|
|
|
|
|
$table->json('videos');
|
|
|
|
|
$table->string('version_parent')->nullable();
|
|
|
|
|
$table->string('version_title')->nullable();
|
|
|
|
|
$table->json('videos')->nullable();
|
|
|
|
|
$table->json('websites');
|
|
|
|
|
|
|
|
|
|
$table->timestamps();
|
|
|
|
|