Initial: Laravel 13 setup with multi-tenant schema
This commit is contained in:
commit
a78a50ef0c
69 changed files with 10805 additions and 0 deletions
|
|
@ -0,0 +1,16 @@
|
|||
<?php
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
return new class extends Migration {
|
||||
public function up(): void {
|
||||
Schema::create('tenants', function (Blueprint $t) {
|
||||
$t->id();
|
||||
$t->string('name', 100);
|
||||
$t->string('slug', 50)->unique();
|
||||
$t->string('plan', 20)->default('free');
|
||||
$t->timestamps();
|
||||
});
|
||||
}
|
||||
public function down(): void { Schema::dropIfExists('tenants'); }
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue