Skip to content

Instantly share code, notes, and snippets.

@NandoKstroNet
Created January 12, 2022 19:54
Show Gist options
  • Save NandoKstroNet/a7cfb9dc8bba30796316861e0f943791 to your computer and use it in GitHub Desktop.
Save NandoKstroNet/a7cfb9dc8bba30796316861e0f943791 to your computer and use it in GitHub Desktop.
Campos das migrations do curso Laravel Tenancy - Single Database em https://codeexperts.com.br
<?php
$table->unsignedBigInteger('tenant_id')->nullable();
$table->unsignedBigInteger('store_id')->nullable();
<?php
$table->unsignedBigInteger('store_id');
$table->string('name');
$table->string('description')->nullable();
$table->string('slug');
<?php
$table->unsignedBigInteger('store_id');
$table->string('name');
$table->string('description')->nullable();
$table->text('body');
$table->integer('price');
$table->string('image')->nullable();
$table->string('slug');
<?php
$table->unsignedBigInteger('store_id');
$table->string('name');
$table->integer('price');
<?php
$table->string('name');
$table->string('description')->nullable();
$table->string('logo')->nullable();
$table->string('cover')->nullable();
$table->string('subdomain')->unique();
<?php
$table->uuid('contract');
$table->boolean('is_active');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment