This commit is contained in:
Adrian Hopek
2022-05-09 15:03:09 +02:00
parent 47ad45cb73
commit 37ce3262ac
25 changed files with 1843 additions and 806 deletions

View File

@@ -0,0 +1,30 @@
<?php
declare(strict_types=1);
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
use Toby\Eloquent\Models\User;
return new class() extends Migration {
public function up(): void
{
Schema::create("resumes", function (Blueprint $table): void {
$table->id();
$table->foreignIdFor(User::class)->nullable()->constrained()->cascadeOnDelete();
$table->string("name")->nullable();
$table->string("description")->nullable();
$table->json("education");
$table->json("languages");
$table->json("technologies");
$table->json("projects");
$table->timestamps();
});
}
public function down(): void
{
Schema::dropIfExists("resumes");
}
};

View File

@@ -0,0 +1,23 @@
<?php
declare(strict_types=1);
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("technologies", function (Blueprint $table): void {
$table->id();
$table->string("name")->unique();
$table->timestamps();
});
}
public function down(): void
{
Schema::dropIfExists("technologies");
}
};