Add hosted parameters

This commit is contained in:
David Bomba 2022-01-28 10:06:07 +11:00
parent e18fb3a6f1
commit 0cffb3d227
2 changed files with 33 additions and 0 deletions

View File

@ -83,6 +83,8 @@ class AccountTransformer extends EntityTransformer
'emails_sent' => (int) $account->emailsSent(),
'email_quota' => (int) $account->getDailyEmailLimit(),
'is_migrated' => (bool) $account->is_migrated,
'hosted_client_count' => (int) $account->hosted_client_count,
'hosted_company_count' => (int) $account->hosted_company_count,
];
}

View File

@ -0,0 +1,31 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddClientCountToAccountsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('accounts', function (Blueprint $table) {
$table->unsignedInteger('hosted_client_count')->nullable();
$table->unsignedInteger('hosted_company_count')->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
}
}