1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-06 16:14:05 +00:00
This commit is contained in:
Samuel Štancl 2019-08-10 10:20:53 +02:00
parent 401212bd6c
commit 03f233b975
3 changed files with 7 additions and 3 deletions

View file

@ -0,0 +1,32 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateTenantsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('tenants', function (Blueprint $table) {
$table->string('uuid', 36)->primary();
$table->string('domain', 255)->index();
$table->string('data', 1024)->default('{}');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('tenants');
}
}