diff --git a/app/Transformers/AccountTransformer.php b/app/Transformers/AccountTransformer.php index 65408f35c7e9..11a6331bc493 100644 --- a/app/Transformers/AccountTransformer.php +++ b/app/Transformers/AccountTransformer.php @@ -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, ]; } diff --git a/database/migrations/2022_01_27_223617_add_client_count_to_accounts_table.php b/database/migrations/2022_01_27_223617_add_client_count_to_accounts_table.php new file mode 100644 index 000000000000..2dc113d5c4ec --- /dev/null +++ b/database/migrations/2022_01_27_223617_add_client_count_to_accounts_table.php @@ -0,0 +1,31 @@ +unsignedInteger('hosted_client_count')->nullable(); + $table->unsignedInteger('hosted_company_count')->nullable(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + + } +}