30 lines
		
	
	
		
			737 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			737 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?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('token', 50);
 | |
|             $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');
 | |
|     }
 | |
| };
 |