From f3b84c725d3109dbf8420917b48cf0f63b05f7d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Munsch?= Date: Thu, 20 Aug 2026 11:46:46 +0200 Subject: [PATCH] refactor(migration): enhance comments for api_clients table fields Improved clarity of comments for identifier, secret, and is_active fields. --- .../2026_08_10_145347_create_api_clients_table.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/database/migrations/2026_08_10_145347_create_api_clients_table.php b/database/migrations/2026_08_10_145347_create_api_clients_table.php index d67931e..f9642eb 100644 --- a/database/migrations/2026_08_10_145347_create_api_clients_table.php +++ b/database/migrations/2026_08_10_145347_create_api_clients_table.php @@ -18,9 +18,12 @@ return new class () extends Migration $table->string('name'); $table->string('slug')->unique(); - $table->string('identifier')->unique(); - $table->text('secret'); - $table->boolean('is_active'); + $table->string('identifier')->unique() + ->comment('ENCRYPTED, Unique identifier that should not change'); + $table->text('secret') + ->comment('ENCRYPTED, api secret that can be regenerated'); + $table->boolean('is_active') + ->comment('Defines if the client can be used in order to gain access to the system'); $table->timestamp('created_at'); $table->timestamp('updated_at');