Class LaravelUi5\Sdk\Tms\Attributes\Key

final
readonly

The field of a record class that identifies the record — stable, chosen by the consultant, never a database id: ext_ref for a partner, the code for an account. Exactly one per record class. Other records refer to it, and a record whose key the database already holds is kept as it is.

final readonly class PartnerRecord
{
    public function __construct(
        #[Key] public string $ext_ref,
        public string $name,
    ) {}
}