Skip to content

Commit

Permalink
Create migration for gmb accounts #8
Browse files Browse the repository at this point in the history
  • Loading branch information
drewroberts authored Feb 27, 2021
1 parent cad4ab8 commit 4c8f5ea
Showing 1 changed file with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?php

declare(strict_types=1);

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateGmbAccountsTable extends Migration
{
public function up()
{
Schema::create('gmb_accounts', function (Blueprint $table) {
$table->id();
$table->string('account_number');

$table->foreignIdFor(app('user'), 'creator_id');
$table->foreignIdFor(app('user'), 'updater_id');
$table->timestamps();
});
}
}

0 comments on commit 4c8f5ea

Please sign in to comment.