33 lines
1,004 B
PHP
33 lines
1,004 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
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('plans', function (Blueprint $table) {
|
|
$table->uuid('id')->primary();
|
|
$table->string('slug')->unique();
|
|
$table->string('name');
|
|
$table->string('stripe_monthly_price_id')->nullable();
|
|
$table->string('stripe_yearly_price_id')->nullable();
|
|
$table->integer('social_account_limit');
|
|
$table->integer('member_limit');
|
|
$table->integer('workspace_limit');
|
|
$table->integer('monthly_credits_limit');
|
|
$table->integer('sort')->default(0);
|
|
$table->boolean('is_archived')->default(false);
|
|
$table->timestamps();
|
|
});
|
|
}
|
|
|
|
public function down(): void
|
|
{
|
|
Schema::dropIfExists('plans');
|
|
}
|
|
};
|