Initial Commit; base feats
This commit is contained in:
		
						commit
						9732135e90
					
				
					 137 changed files with 13856 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -0,0 +1,36 @@
 | 
			
		|||
<?php
 | 
			
		||||
 | 
			
		||||
use Illuminate\Database\Migrations\Migration;
 | 
			
		||||
use Illuminate\Database\Schema\Blueprint;
 | 
			
		||||
use Illuminate\Support\Facades\Schema;
 | 
			
		||||
 | 
			
		||||
return new class extends Migration {
 | 
			
		||||
    /**
 | 
			
		||||
     * Run the migrations.
 | 
			
		||||
     *
 | 
			
		||||
     * @return void
 | 
			
		||||
     */
 | 
			
		||||
    public function up()
 | 
			
		||||
    {
 | 
			
		||||
        Schema::create('addresses', function (Blueprint $table) {
 | 
			
		||||
            $table->id('address_id');
 | 
			
		||||
            $table->timestamps();
 | 
			
		||||
            $table->addColumn('string', 'address_street', ['length' => 255]);
 | 
			
		||||
            $table->addColumn('string', 'address_city', ['length' => 255]);
 | 
			
		||||
            $table->addColumn('string', 'address_state', ['length' => 255]);
 | 
			
		||||
            $table->addColumn('string', 'address_zip', ['length' => 255]);
 | 
			
		||||
            $table->addColumn('string', 'address_country', ['length' => 255]);
 | 
			
		||||
            $table->foreignId('user_id')->constrained('users', 'user_id');
 | 
			
		||||
        });
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Reverse the migrations.
 | 
			
		||||
     *
 | 
			
		||||
     * @return void
 | 
			
		||||
     */
 | 
			
		||||
    public function down()
 | 
			
		||||
    {
 | 
			
		||||
        Schema::dropIfExists('addresses');
 | 
			
		||||
    }
 | 
			
		||||
};
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue