- wip
This commit is contained in:
28
database/migrations/2023_06_15_220540_create_cvs_table.php
Normal file
28
database/migrations/2023_06_15_220540_create_cvs_table.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?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('cvs', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('recipient', 255);
|
||||
$table->string('email', 255);
|
||||
$table->string('phone-number', 15);
|
||||
$table->json('locations');
|
||||
$table->integer('views')->nullable()->default(0);
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('cvs');
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user