mirror of
https://github.com/rico-vz/HeimerdingerLoL.git
synced 2025-12-06 10:10:48 +01:00
37 lines
998 B
PHP
37 lines
998 B
PHP
<?php
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
return new class() extends Migration
|
|
{
|
|
public function up(): void
|
|
{
|
|
Schema::create('champions', function (Blueprint $table) {
|
|
$table->id();
|
|
|
|
$table->integer('champion_id')->unique();
|
|
$table->string('key')->unique();
|
|
$table->string('name');
|
|
$table->string('title');
|
|
$table->longText('lore');
|
|
$table->json('roles');
|
|
$table->integer('price_be');
|
|
$table->integer('price_rp');
|
|
$table->string('resource_type');
|
|
$table->string('attack_type');
|
|
$table->string('adaptive_type');
|
|
$table->string('release_date');
|
|
$table->string('release_patch');
|
|
|
|
$table->timestamps();
|
|
});
|
|
}
|
|
|
|
public function down(): void
|
|
{
|
|
Schema::dropIfExists('champions');
|
|
}
|
|
};
|