Created
January 12, 2022 19:54
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$table->unsignedBigInteger('tenant_id')->nullable(); | |
$table->unsignedBigInteger('store_id')->nullable(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$table->unsignedBigInteger('store_id'); | |
$table->string('name'); | |
$table->string('description')->nullable(); | |
$table->string('slug'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$table->unsignedBigInteger('store_id'); | |
$table->string('name'); | |
$table->integer('price'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$table->string('name'); | |
$table->string('description')->nullable(); | |
$table->string('logo')->nullable(); | |
$table->string('cover')->nullable(); | |
$table->string('subdomain')->unique(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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