Class decorator that defines a composite primary key spanning multiple
fields. Use this when the entity's identity is determined by a combination
of fields rather than a single property.
Parameters
fields: string[]
An ordered array of field names that together form the key.
Class decorator that defines a composite primary key spanning multiple fields. Use this when the entity's identity is determined by a combination of fields rather than a single property.